mirror of
https://github.com/msberends/AMR.git
synced 2026-03-29 14:15:53 +02:00
Built site for AMR@3.0.1.9037: 3d1412e
This commit is contained in:
@@ -306,9 +306,9 @@ head(a)
|
||||
|
||||
# apply EUCAST rules: some results wil be changed
|
||||
b <- eucast_rules(a, overwrite = TRUE)
|
||||
#> Warning: in `eucast_rules()` (`?AMR::eucast_rules()`): not all columns with
|
||||
#> antimicrobial results are of class <sir>. Transform them on beforehand, e.g.: -
|
||||
#> x %>% as.sir(CXM:AMX) - x %>% mutate_if(is_sir_eligible, as.sir) - x %>%
|
||||
#> Warning: in `?eucast_rules()`: not all columns with antimicrobial results are of class
|
||||
#> <sir>. Transform them on beforehand, e.g.: - x %>% as.sir(CXM:AMX) - x %>%
|
||||
#> mutate_if(is_sir_eligible, as.sir) - x %>%
|
||||
#> mutate(across(where(is_sir_eligible), as.sir))
|
||||
|
||||
head(b)
|
||||
@@ -323,9 +323,9 @@ head(b)
|
||||
# do not apply EUCAST rules, but rather get a data.frame
|
||||
# containing all details about the transformations:
|
||||
c <- eucast_rules(a, overwrite = TRUE, verbose = TRUE)
|
||||
#> Warning: in `eucast_rules()` (`?AMR::eucast_rules()`): not all columns with
|
||||
#> antimicrobial results are of class <sir>. Transform them on beforehand, e.g.: -
|
||||
#> x %>% as.sir(CXM:AMX) - x %>% mutate_if(is_sir_eligible, as.sir) - x %>%
|
||||
#> Warning: in `?eucast_rules()`: not all columns with antimicrobial results are of class
|
||||
#> <sir>. Transform them on beforehand, e.g.: - x %>% as.sir(CXM:AMX) - x %>%
|
||||
#> mutate_if(is_sir_eligible, as.sir) - x %>%
|
||||
#> mutate(across(where(is_sir_eligible), as.sir))
|
||||
head(c)
|
||||
#> row col mo_fullname old new rule rule_group
|
||||
|
||||
Reference in New Issue
Block a user