(v1.4.0.9051) ab class

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2020-12-27 23:19:41 +01:00
1 parent afc325c314
commit ccf13dd6c0
17 files changed
+58 -32

No files matched your search

+6 -1
View File
@@ -100,7 +100,12 @@ if (require("dplyr")) {
data.frame(some_column = "some_value",
J01CA01 = "S") \%>\% # ATC code of ampicillin
select(penicillins()) # only the 'J01CA01' column will be selected
# with dplyr 1.0.0 and higher (that adds 'across()'), this is equal:
# (though the row names on the first are more correct)
example_isolates \%>\% filter_carbapenems("R", "all")
example_isolates \%>\% filter(across(carbapenems(), ~. == "R"))
}
}
\seealso{
+1
View File
@@ -105,6 +105,7 @@ if (require("dplyr")) {
filter_fluoroquinolones("R", "all")
# with dplyr 1.0.0 and higher (that adds 'across()'), this is equal:
# (though the row names on the first are more correct)
example_isolates \%>\% filter_carbapenems("R", "all")
example_isolates \%>\% filter(across(carbapenems(), ~. == "R"))
}