(v1.2.0.9034) code cleaning

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2020-07-13 09:17:24 +02:00
1 parent c0cf7ab02b
commit 6ab468362d
36 files changed
+266 -265

No files matched your search

+4 -4
View File
@@ -59,16 +59,16 @@ as.disk <- function(x, na.rm = FALSE) {
x <- x[!is.na(x)]
}
x.bak <- x
na_before <- length(x[is.na(x)])
# force it to be integer
x <- suppressWarnings(as.integer(x))
# disks can never be less than 6 mm (size of smallest disk) or more than 50 mm
x[x < 6 | x > 50] <- NA_integer_
na_after <- length(x[is.na(x)])
if (na_before != na_after) {
list_missing <- x.bak[is.na(x) & !is.na(x.bak)] %>%
unique() %>%