mirror of
https://github.com/msberends/AMR.git
synced 2025-07-10 07:41:57 +02:00
(v2.1.1.9056) example fix
This commit is contained in:
12
R/sir.R
12
R/sir.R
@ -199,13 +199,13 @@
|
||||
#' ab = "antibiotic",
|
||||
#' guideline = "CLSI")))
|
||||
#' df_long %>%
|
||||
#' # given certain columns, e.g. from AMP to TOB
|
||||
#' mutate_at(vars(AMP:TOB), as.sir,
|
||||
#' # given certain columns, e.g. from 'cipro' to 'genta'
|
||||
#' mutate_at(vars(cipro:genta), as.sir,
|
||||
#' mo = "bacteria",
|
||||
#' ab = "antibiotic",
|
||||
#' guideline = "CLSI")
|
||||
#' df_long %>%
|
||||
#' mutate(across(AMP:TOB,
|
||||
#' mutate(across(cipro:genta,
|
||||
#' function(x) as.sir(x,
|
||||
#' mo = "bacteria",
|
||||
#' ab = "antibiotic",
|
||||
@ -229,13 +229,13 @@
|
||||
#' guideline = "CLSI")))
|
||||
#' df_long %>%
|
||||
#' # given certain columns, e.g. from AMP to TOB
|
||||
#' mutate_at(vars(AMP:TOB), as.sir,
|
||||
#' mutate_at(vars(cipro:genta), as.sir,
|
||||
#' mo = "bacteria",
|
||||
#' ab = "antibiotic",
|
||||
#' host = "animal_species",
|
||||
#' guideline = "CLSI")
|
||||
#' df_long %>%
|
||||
#' mutate(across(AMP:TOB,
|
||||
#' mutate(across(cipro:genta,
|
||||
#' function(x) as.sir(x,
|
||||
#' mo = "bacteria",
|
||||
#' ab = "antibiotic",
|
||||
@ -254,7 +254,7 @@
|
||||
#' as.sir() # automatically determines urine isolates
|
||||
#'
|
||||
#' df_wide %>%
|
||||
#' mutate_at(vars(AMP:TOB), as.sir, mo = "E. coli", uti = TRUE)
|
||||
#' mutate_at(vars(cipro:genta), as.sir, mo = "E. coli", uti = TRUE)
|
||||
#' }
|
||||
#'
|
||||
#'
|
||||
|
Reference in New Issue
Block a user