(v1.3.0) small MIC fix

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2020-07-30 12:37:01 +02:00
1 parent ea4e5e5b81
commit 8ff46eefe9
63 files changed
+397 -397

No files matched your search

+2 -2
View File
@@ -71,8 +71,8 @@ as.mic <- function(x, na.rm = FALSE) {
# transform => to >= and =< to <=
x <- gsub("=<", "<=", x, fixed = TRUE)
x <- gsub("=>", ">=", x, fixed = TRUE)
# starting dots must start with 0
x <- gsub("^[.]+", "0.", x)
# dots without a leading zero must start with 0
x <- gsub("([^0-9]|^)[.]", "\\10.", x)
# values like "<=0.2560.512" should be 0.512
x <- gsub(".*[.].*[.]", "0.", x)
# remove ending .0