resistance predict

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2019-01-15 12:45:24 +01:00
1 parent cda7087722
commit 046d195064
16 files changed
+306 -209

No files matched your search

+2 -3
View File
@@ -113,9 +113,8 @@ mdro <- function(tbl,
# try to find columns based on type
# -- mo
if (is.null(col_mo) & "mo" %in% lapply(tbl, class)) {
col_mo <- colnames(tbl)[lapply(tbl, class) == "mo"][1]
message(blue(paste0("NOTE: Using column `", bold(col_mo), "` as input for `col_mo`.")))
if (is.null(col_mo)) {
col_mo <- search_type_in_df(tbl = tbl, type = "mo")
}
if (is.null(col_mo)) {
stop("`col_mo` must be set.", call. = FALSE)