mirror of
https://github.com/msberends/AMR.git
synced 2026-10-01 04:13:33 +02:00
fix for scoped dplyr verbs
This commit is contained in:
1 parent
3102beb241
commit
4bebba3610
5 files changed
+31
-7
No files matched your search
@@ -201,6 +201,18 @@ if (require("dplyr")) {
|
||||
ci_max = rsi_confidence_interval(CIP, side = "max"),
|
||||
)
|
||||
|
||||
}
|
||||
if (require("dplyr")) {
|
||||
|
||||
# scoped dplyr verbs with antibiotic selectors
|
||||
# (you could also use across() of course)
|
||||
example_isolates \%>\%
|
||||
group_by(ward) \%>\%
|
||||
summarise_at(
|
||||
c(aminoglycosides(), carbapenems()),
|
||||
resistance
|
||||
)
|
||||
|
||||
}
|
||||
if (require("dplyr")) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user