AI improvements

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2018-12-07 12:04:55 +01:00
1 parent 87ad6da745
commit 8e8a9cd190
19 files changed
+199 -140

No files matched your search

+6 -6
View File
@@ -200,12 +200,12 @@ summary.mic <- function(object, ...) {
n_total <- x %>% length()
x <- x[!is.na(x)]
n <- x %>% length()
lst <- c('mic',
n_total - n,
sort(x)[1] %>% as.character(),
sort(x)[n] %>% as.character())
names(lst) <- c("Mode", "<NA>", "Min.", "Max.")
lst
c(
"Class" = 'mic',
"<NA>" = n_total - n,
"Min." = sort(x)[1] %>% as.character(),
"Max." = sort(x)[n] %>% as.character()
)
}
#' @exportMethod plot.mic