mirror of
https://github.com/msberends/AMR.git
synced 2025-07-08 16:02:02 +02:00
(v1.0.0.9003) prepare for short update
This commit is contained in:
@ -108,6 +108,8 @@ df <- data.frame(microorganism = "E. coli",
|
||||
NIT = as.mic(32))
|
||||
as.rsi(df)
|
||||
|
||||
\donttest{
|
||||
|
||||
# the dplyr way
|
||||
library(dplyr)
|
||||
df \%>\%
|
||||
@ -129,7 +131,8 @@ data.frame(mo = "E. coli",
|
||||
|
||||
df \%>\%
|
||||
mutate_at(vars(AMP:NIT), as.rsi, mo = "E. coli", uti = TRUE)
|
||||
|
||||
}
|
||||
|
||||
# for single values
|
||||
as.rsi(x = as.mic(2),
|
||||
mo = as.mo("S. pneumoniae"),
|
||||
|
Reference in New Issue
Block a user