(v3.0.1.9021) add guideline to resistance() and susceptibility()

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2026-02-12 20:34:06 +01:00
1 parent 499c830ee7
commit 12cf144b19
14 files changed
+145 -36

No files matched your search

+1 -1
View File
@@ -118,7 +118,7 @@ mean_amr_distance.disk <- function(x, ...) {
mean_amr_distance.sir <- function(x, ..., combine_SI = TRUE) {
meet_criteria(combine_SI, allow_class = "logical", has_length = 1, .call_depth = -1)
if (isTRUE(combine_SI)) {
x[x %in% c("I", "SDD")] <- "S"
x[x %in% c("I", "SDD")] <- "S" # do not acknowledge CLSI/EUCAST guideline here to keep the numeric mean_amr_distance consistent between systems
}
mean_amr_distance(as.double(x))
}