(v1.6.0.9008) unlike, bugfix for col_mo naming

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2021-04-23 09:59:36 +02:00
1 parent c6289c3fc3
commit 70b803dbb6
33 files changed
+269 -137

No files matched your search

+1 -1
View File
@@ -133,7 +133,7 @@ as.mic <- function(x, na.rm = FALSE) {
# keep only one zero before dot
x <- gsub("0+[.]", "0.", x, perl = TRUE)
# starting 00 is probably 0.0 if there's no dot yet
x[!x %like% "[.]"] <- gsub("^00", "0.0", x[!x %like% "[.]"])
x[x %unlike% "[.]"] <- gsub("^00", "0.0", x[!x %like% "[.]"])
# remove last zeroes
x <- gsub("([.].?)0+$", "\\1", x, perl = TRUE)
x <- gsub("(.*[.])0+$", "\\10", x, perl = TRUE)