1
0
mirror of https://github.com/msberends/AMR.git synced 2026-03-30 15:36:04 +02:00

Built site for AMR@3.0.1.9040: 9c95aa4

This commit is contained in:
github-actions
2026-03-24 12:34:17 +00:00
parent 330f1a9dfe
commit d55d073ae9
109 changed files with 762 additions and 777 deletions

View File

@@ -660,10 +660,10 @@ sir_interpretation_history()
#> # A tibble: 4 × 18
#> datetime index method ab_given mo_given host_given input_given
#> <dttm> <int> <chr> <chr> <chr> <chr> <chr>
#> 1 2026-03-22 21:27:17 1 MIC amoxicillin Escherich… human 8
#> 2 2026-03-22 21:27:17 1 MIC cipro Escherich… human 0.256
#> 3 2026-03-22 21:27:18 1 DISK tobra Escherich… human 16
#> 4 2026-03-22 21:27:18 1 DISK genta Escherich… human 18
#> 1 2026-03-24 12:30:17 1 MIC amoxicillin Escherich… human 8
#> 2 2026-03-24 12:30:17 1 MIC cipro Escherich… human 0.256
#> 3 2026-03-24 12:30:18 1 DISK tobra Escherich… human 16
#> 4 2026-03-24 12:30:18 1 DISK genta Escherich… human 18
#> # 11 more variables: ab <ab>, mo <mo>, host <chr>, input <chr>,
#> # outcome <sir>, notes <chr>, guideline <chr>, ref_table <chr>, uti <lgl>,
#> # breakpoint_S_R <chr>, site <chr>
@@ -671,15 +671,14 @@ sir_interpretation_history()
# \donttest{
# using parallel computing, which is available in base R:
as.sir(df_wide, parallel = TRUE, info = TRUE)
#> Returning a previously coerced value for an antimicrobial. Run
#> `?ab_reset_session()` to reset this. This note will be shown once per
#> session.
#> Run `sir_interpretation_history()` afterwards to retrieve a logbook with all
#> details of the breakpoint interpretations.
#>
#> Running in parallel mode using 3 out of 4 cores, on columns 'amoxicillin',
#> 'cipro', 'tobra', 'genta', and 'ERY'...
#> DONE
#> Processing columns:
#>
#> Run `?sir_interpretation_history()` to retrieve a logbook with all details of
#> ­ONE
#>
#> Run `sir_interpretation_history()` to retrieve a logbook with all details of
#> the breakpoint interpretations.
#> microorganism amoxicillin cipro tobra genta ERY
#> 1 Escherichia coli S I S S R
@@ -792,7 +791,7 @@ if (require("dplyr")) {
df_wide %>%
mutate_at(vars(cipro:genta), as.sir, mo = "E. coli", uti = TRUE)
}
#> For `?aminopenicillins()` using column amoxicillin
#> For `aminopenicillins()` using column amoxicillin
#> Warning: There was 1 warning in `mutate()`.
#> In argument: `across(...)`.
#> Caused by warning:
@@ -818,11 +817,6 @@ if (require("dplyr")) {
#> Caused by warning:
#> ! Some MICs were converted to the nearest higher log2 level, following the CLSI
#> interpretation guideline.
#> Interpreting MIC values: 'antibiotic' (TESTAB, test Antibiotic), CLSI 2025...
#> Interpreting disk diffusion zones: 'antibiotic' (TESTAB, test Antibiotic), CLSI
#> 2025...
#> Interpreting disk diffusion zones: 'antibiotic' (TESTAB, test Antibiotic), CLSI
#> 2025...
#> Warning: There was 1 warning in `mutate()`.
#> In argument: `cipro = (function (x, ...) ...`.
#> Caused by warning:
@@ -863,7 +857,7 @@ as.sir(
# For CLEANING existing SIR values -------------------------------------
as.sir(c("S", "SDD", "I", "R", "NI", "A", "B", "C"))
#> Warning: in `?as.sir()`: 3 results truncated (38%) that were invalid antimicrobial
#> Warning: in `as.sir()`: 3 results truncated (38%) that were invalid antimicrobial
#> interpretations: "A", "B", and "C"
#> Class <sir>
#> [1] S SDD I R NI <NA> <NA> <NA>
@@ -872,11 +866,11 @@ as.sir("<= 0.002; S") # will return "S"
#> [1] S
as.sir(c(1, 2, 3))
#> `?as.sir()`: Interpreting input value 1 as "S", 2 as "I", and 3 as "R"
#> `as.sir()`: Interpreting input value 1 as "S", 2 as "I", and 3 as "R"
#> Class <sir>
#> [1] S I R
as.sir(c(1, 2, 3), S = 3, I = 2, R = 1)
#> `?as.sir()`: Interpreting input value 1 as "R", 2 as "I", and 3 as "S"
#> `as.sir()`: Interpreting input value 1 as "R", 2 as "I", and 3 as "S"
#> Class <sir>
#> [1] R I S