(v1.6.0.9062) code consistency

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2021-05-24 00:06:28 +02:00
1 parent 07939b1a14
commit 06302d296a
23 files changed
+48 -45

No files matched your search

+1 -1
View File
@@ -85,7 +85,7 @@ as.disk <- function(x, na.rm = FALSE) {
fixed = TRUE)
x_clean <- gsub(remove, "", x, ignore.case = TRUE, fixed = fixed)
# remove everything that is not a number or dot
as.numeric(gsub("[^0-9.]+", "", x_clean))
as.double(gsub("[^0-9.]+", "", x_clean))
}
# round up and make it an integer