mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 05:50:48 +01:00
improve as.mo()
This commit is contained in:
1 parent
3018fb87a9
commit
0bcf55d3b6
14 files changed
+76
-22
No files matched your search
@@ -759,7 +759,7 @@ as_sir_method <- function(method_short,
|
||||
if (is.null(mo)) {
|
||||
stop_("No information was supplied about the microorganisms (missing argument `mo` and no column of class 'mo' found). See ?as.sir.\n\n",
|
||||
"To transform certain columns with e.g. mutate(), use `data %>% mutate(across(..., as.sir, mo = x))`, where x is your column with microorganisms.\n",
|
||||
"To tranform all ", method_long, " in a data set, use `data %>% as.sir()` or `data %>% mutate_if(is.", method_short, ", as.sir)`.",
|
||||
"To transform all ", method_long, " in a data set, use `data %>% as.sir()` or `data %>% mutate_if(is.", method_short, ", as.sir)`.",
|
||||
call = FALSE
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user