(v1.3.0.9035) mdro() for EUCAST 3.2, examples cleanup

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2020-09-29 23:35:46 +02:00
1 parent 68e6e1e329
commit 4e0374af29
94 files changed
+1143 -1165

No files matched your search

+4 -3
View File
@@ -33,7 +33,7 @@
#' @seealso [as.rsi()]
#' @inheritSection AMR Read more on our website!
#' @examples
#' \dontrun{
#' \donttest{
#' # transform existing disk zones to the `disk` class
#' library(dplyr)
#' df <- data.frame(microorganism = "E. coli",
@@ -41,8 +41,9 @@
#' CIP = 14,
#' GEN = 18,
#' TOB = 16)
#' df <- df %>% mutate_at(vars(AMP:TOB), as.disk)
#' df
#' df[, 2:5] <- lapply(df[, 2:5], as.disk)
#' # same with dplyr:
#' # df %>% mutate(across(AMP:TOB, as.disk))
#'
#' # interpret disk values, see ?as.rsi
#' as.rsi(x = as.disk(18),