(v1.7.1.9002) ab class selectors update

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2021-06-14 22:04:04 +02:00
1 parent 683a0e748a
commit 99be4c7e7e
36 files changed
+416 -198

No files matched your search

+6
View File
@@ -167,6 +167,12 @@ if (require("dplyr")) {
n1 = count_all(CIP), # the actual total; sum of all three
n2 = n_rsi(CIP), # same - analogous to n_distinct
total = n()) # NOT the number of tested isolates!
# Number of available isolates for a whole antibiotic class
# (i.e., in this data set columns GEN, TOB, AMK, KAN)
example_isolates \%>\%
group_by(hospital_id) \%>\%
summarise(across(aminoglycosides(), n_rsi))
# Count co-resistance between amoxicillin/clav acid and gentamicin,
# so we can see that combination therapy does a lot more than mono therapy.