1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 14:01:55 +02:00

(v1.6.0.9047) filter_ab_class() fixes

This commit is contained in:
2021-05-18 11:29:31 +02:00
parent 7028dcfa5b
commit 6920c0be41
29 changed files with 226 additions and 136 deletions

File diff suppressed because one or more lines are too long

View File

@ -178,9 +178,12 @@ If the unlying code needs breaking changes, they will occur gradually. For examp
}
\examples{
filter_aminoglycosides(example_isolates)
x <- filter_carbapenems(example_isolates)
\donttest{
# base R filter options (requires R >= 3.2)
example_isolates[filter_carbapenems(), ]
example_isolates[which(filter_carbapenems() & mo_is_gram_negative()), ]
if (require("dplyr")) {
# filter on isolates that have any result for any aminoglycoside
@ -216,6 +219,7 @@ if (require("dplyr")) {
example_isolates \%>\% filter_carbapenems("R", "all")
example_isolates \%>\% filter(across(carbapenems(), ~. == "R"))
example_isolates \%>\% filter(across(carbapenems(), function(x) x == "R"))
example_isolates \%>\% filter(filter_carbapenems("R", "all"))
}
}
}

File diff suppressed because one or more lines are too long