(v1.4.0.9021) more robust class setting

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2020-11-16 16:57:55 +01:00
1 parent 05fb213a7c
commit deefce9520
29 files changed
+98 -85

No files matched your search

+8 -7
View File
@@ -69,13 +69,14 @@ age_groups(ages, "children")
\donttest{
# resistance of ciprofloxacin per age group
library(dplyr)
example_isolates \%>\%
filter_first_isolate() \%>\%
filter(mo == as.mo("E. coli")) \%>\%
group_by(age_group = age_groups(age)) \%>\%
select(age_group, CIP) \%>\%
ggplot_rsi(x = "age_group", minimum = 0)
if (require("dplyr")) {
example_isolates \%>\%
filter_first_isolate() \%>\%
filter(mo == as.mo("E. coli")) \%>\%
group_by(age_group = age_groups(age)) \%>\%
select(age_group, CIP) \%>\%
ggplot_rsi(x = "age_group", minimum = 0)
}
}
}
\seealso{