mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 04:20:53 +01:00
(v3.0.1.9137) Add the guideline argument to count_df(), proportion_df(), sir_df(), ggplot_sir(), geom_sir(), and labels_sir_count(), so that with CLSI the 'I' category is merged with R, and describe in the documentation of get_AMR_locale() that LANG takes precedence over LANGUAGE
This commit is contained in:
1 parent
46f5de1d36
commit
dbd95ffa46
17 files changed
+118
-40
No files matched your search
@@ -267,7 +267,8 @@ n_sir <- count_all
|
||||
count_df <- function(data,
|
||||
translate_ab = "name",
|
||||
language = get_AMR_locale(),
|
||||
combine_SI = TRUE) {
|
||||
combine_SI = TRUE,
|
||||
guideline = getOption("AMR_guideline", "EUCAST")) {
|
||||
tryCatch(
|
||||
sir_calc_df(
|
||||
type = "count",
|
||||
@@ -275,7 +276,8 @@ count_df <- function(data,
|
||||
translate_ab = translate_ab,
|
||||
language = language,
|
||||
combine_SI = combine_SI,
|
||||
confidence_level = 0.95 # doesn't matter, will be removed
|
||||
confidence_level = 0.95, # doesn't matter, will be removed
|
||||
guideline = guideline
|
||||
),
|
||||
error = function(e) stop_(gsub("in sir_calc_df(): ", "", conditionMessage(e), fixed = TRUE), call = -5)
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user