@@ -1281,9 +1281,9 @@ I (proportion_SI() , equa
own:
our_data_1st %>% resistance ( AMX )
-#> ℹ `?resistance()` assumes the EUCAST guideline and thus considers the 'I'
+#> ℹ `resistance()` assumes the EUCAST guideline and thus considers the 'I'
#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
-#> option to either "CLSI" or "EUCAST", see AMR-options.
+#> option to either "CLSI" or "EUCAST", see `?AMR-options`.
#> ℹ This message will be shown once per session.
#> [1] 0.4203377
Or can be used in conjunction with group_by() and
@@ -1316,15 +1316,15 @@ values for Klebsiella pneumoniae and ciprofloxacin:
#> # A tibble: 100 × 2
#> MIC SIR
#> <mic> <sir>
-#> 1 <= 0.0001 S
-#> 2 0.0160 S
-#> 3 >= 8.0000 R
-#> 4 0.0320 S
-#> 5 0.0080 S
-#> 6 64.0000 R
-#> 7 0.0080 S
-#> 8 0.1250 S
-#> 9 0.0320 S
+#> 1 <= 0.0001 S
+#> 2 0.0160 S
+#> 3 >= 8.0000 R
+#> 4 0.0320 S
+#> 5 0.0080 S
+#> 6 64.0000 R
+#> 7 0.0080 S
+#> 8 0.1250 S
+#> 9 0.0320 S
#> 10 0.0002 S
#> # ℹ 90 more rows
This allows direct interpretation according to EUCAST or CLSI
diff --git a/articles/AMR.md b/articles/AMR.md
index 5304a52c4..d73d32c2f 100644
--- a/articles/AMR.md
+++ b/articles/AMR.md
@@ -3,7 +3,7 @@
**Note:** values on this page will change with every website update
since they are based on randomly created values and the page was written
in [R Markdown](https://rmarkdown.rstudio.com/). However, the
-methodology remains unchanged. This page was generated on 22 March 2026.
+methodology remains unchanged. This page was generated on 24 March 2026.
## Introduction
@@ -51,9 +51,9 @@ structure of your data generally look like this:
| date | patient_id | mo | AMX | CIP |
|:----------:|:----------:|:----------------:|:---:|:---:|
-| 2026-03-22 | abcd | Escherichia coli | S | S |
-| 2026-03-22 | abcd | Escherichia coli | S | R |
-| 2026-03-22 | efgh | Escherichia coli | R | S |
+| 2026-03-24 | abcd | Escherichia coli | S | S |
+| 2026-03-24 | abcd | Escherichia coli | S | R |
+| 2026-03-24 | efgh | Escherichia coli | R | S |
### Needed R packages
@@ -169,8 +169,8 @@ our_data$bacteria <- as.mo(our_data$bacteria, info = TRUE)
#> ℹ Retrieved values from the `microorganisms.codes` data set for "ESCCOL",
#> "KLEPNE", "STAAUR", and "STRPNE".
#> ℹ Microorganism translation was uncertain for four microorganisms. Run
-#> `?mo_uncertainties()` to review these uncertainties, or use
-#> `?add_custom_microorganisms()` to add custom entries.
+#> `mo_uncertainties()` to review these uncertainties, or use
+#> `add_custom_microorganisms()` to add custom entries.
```
Apparently, there was some uncertainty about the translation to
@@ -179,7 +179,7 @@ taxonomic codes. Let’s check this:
``` r
mo_uncertainties()
#> Matching scores are based on the resemblance between the input and the full
-#> taxonomic name, and the pathogenicity in humans. See `?mo_matching_score()`.
+#> taxonomic name, and the pathogenicity in humans. See `mo_matching_score()`.
#> Colour keys: 0.000-0.549 0.550-0.649 0.650-0.749 0.750-1.000
#> -------------------------------------------------------------------------------
#> "E. coli" -> Escherichia coli (B_ESCHR_COLI, 0.688)
@@ -212,8 +212,8 @@ mo_uncertainties()
#> Streptococcus gallolyticus pasteurianus (0.526), Salmonella Portanigra (0.524),
#> and Streptococcus periodonticum (0.519)
#> ℹ Only the first 10 other matches of each record are shown. Run ``
-#> ?`print(mo_uncertainties(), n = ...)` `` to view more entries, or save
-#> `?mo_uncertainties()` to an object.
+#> `print(mo_uncertainties(), n = ...)` `` to view more entries, or save
+#> `mo_uncertainties()` to an object.
```
That’s all good.
@@ -311,11 +311,11 @@ The outcome of the function can easily be added to our data:
our_data <- our_data %>%
mutate(first = first_isolate(info = TRUE))
#> ℹ Determining first isolates using an episode length of 365 days
-#> ℹ Using column 'bacteria' as input for `col_mo`.
-#> ℹ Column 'first' is SIR eligible (despite only having empty values), since it
+#> ℹ Using column bacteria as input for `col_mo`.
+#> ℹ Column first is SIR eligible (despite only having empty values), since it
#> seems to be cefozopran (ZOP)
-#> ℹ Using column 'date' as input for `col_date`.
-#> ℹ Using column 'patient_id' as input for `col_patient_id`.
+#> ℹ Using column date as input for `col_date`.
+#> ℹ Using column patient_id as input for `col_patient_id`.
#> ℹ Basing inclusion on all antimicrobial results, using a points threshold of 2
#> => Found 2,724 'phenotype-based' first isolates (90.8% of total where a
#> microbial ID was available)
@@ -447,7 +447,7 @@ in:
``` r
our_data_1st %>%
select(date, aminoglycosides())
-#> ℹ For `?aminoglycosides()` using column GEN
+#> ℹ For `aminoglycosides()` using column GEN
#> (gentamicin)
#> # A tibble: 2,724 × 2
#> date GEN
@@ -466,7 +466,7 @@ our_data_1st %>%
our_data_1st %>%
select(bacteria, betalactams())
-#> ℹ For `?betalactams()` using columns AMX (amoxicillin) and AMC
+#> ℹ For `betalactams()` using columns AMX (amoxicillin) and AMC
#> (amoxicillin/clavulanic acid)
#> # A tibble: 2,724 × 3
#> bacteria AMX AMC
@@ -503,7 +503,7 @@ our_data_1st %>%
# filtering using AB selectors is also possible:
our_data_1st %>%
filter(any(aminoglycosides() == "R"))
-#> ℹ For `?aminoglycosides()` using column GEN
+#> ℹ For `aminoglycosides()` using column GEN
#> (gentamicin)
#> # A tibble: 981 × 9
#> patient_id hospital date bacteria AMX AMC CIP GEN first
@@ -522,7 +522,7 @@ our_data_1st %>%
our_data_1st %>%
filter(all(betalactams() == "R"))
-#> ℹ For `?betalactams()` using columns AMX (amoxicillin) and AMC
+#> ℹ For `betalactams()` using columns AMX (amoxicillin) and AMC
#> (amoxicillin/clavulanic acid)
#> # A tibble: 462 × 9
#> patient_id hospital date bacteria AMX AMC CIP GEN first
@@ -541,7 +541,7 @@ our_data_1st %>%
# even works in base R (since R 3.0):
our_data_1st[all(betalactams() == "R"), ]
-#> ℹ For `?betalactams()` using columns AMX (amoxicillin) and AMC
+#> ℹ For `betalactams()` using columns AMX (amoxicillin) and AMC
#> (amoxicillin/clavulanic acid)
#> # A tibble: 462 × 9
#> patient_id hospital date bacteria AMX AMC CIP GEN first
@@ -624,9 +624,9 @@ antibiotic class selectors:
``` r
antibiogram(example_isolates,
antibiotics = c(aminoglycosides(), carbapenems()))
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
```
| Pathogen | Amikacin | Gentamicin | Imipenem | Kanamycin | Meropenem | Tobramycin |
@@ -663,8 +663,8 @@ antibiogram(example_isolates,
antibiotics = aminoglycosides(),
ab_transform = "name",
language = "es")
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
```
| Patógeno | Amikacina | Gentamicina | Kanamicina | Tobramicina |
@@ -707,9 +707,9 @@ on certain columns:
antibiogram(example_isolates,
antibiotics = c(aminoglycosides(), carbapenems()),
syndromic_group = "ward")
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
```
| Syndromic Group | Pathogen | Amikacin | Gentamicin | Imipenem | Kanamycin | Meropenem | Tobramycin |
@@ -840,9 +840,9 @@ These functions can be used on their own:
``` r
our_data_1st %>% resistance(AMX)
-#> ℹ `?resistance()` assumes the EUCAST guideline and thus considers the 'I'
+#> ℹ `resistance()` assumes the EUCAST guideline and thus considers the 'I'
#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
-#> option to either "CLSI" or "EUCAST", see AMR-options.
+#> option to either "CLSI" or "EUCAST", see `?AMR-options`.
#> ℹ This message will be shown once per session.
#> [1] 0.4203377
```
diff --git a/articles/AMR_for_Python.html b/articles/AMR_for_Python.html
index f307b7656..89119e6dd 100644
--- a/articles/AMR_for_Python.html
+++ b/articles/AMR_for_Python.html
@@ -30,7 +30,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/articles/AMR_with_tidymodels.html b/articles/AMR_with_tidymodels.html
index b52920a73..f40eb390c 100644
--- a/articles/AMR_with_tidymodels.html
+++ b/articles/AMR_with_tidymodels.html
@@ -30,7 +30,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -147,16 +147,16 @@ package.
#> # A tibble: 2,000 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
+#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
#> # ℹ 1,990 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
@@ -179,9 +179,9 @@ package.
mo = as.factor ( mo_gramstain ( mo ) ) ) %>%
# drop NAs - the ones without a Gramstain (fungi, etc.)
drop_na ( )
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
-#> ℹ For `?betalactams()` using columns PEN (benzylpenicillin), OXA (oxacillin),
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
+#> ℹ For `betalactams()` using columns PEN (benzylpenicillin), OXA (oxacillin),
#> FLC (flucloxacillin), AMX (amoxicillin), AMC (amoxicillin/clavulanic acid),
#> AMP (ampicillin), TZP (piperacillin/tazobactam), CZO (cefazolin), FEP
#> (cefepime), CXM (cefuroxime), FOX (cefoxitin), CTX (cefotaxime), CAZ
@@ -226,9 +226,9 @@ we have with step_corr(), the necessary parameters can be
estimated from a training set using prep():
prep ( resistance_recipe )
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
-#> ℹ For `?betalactams()` using columns PEN (benzylpenicillin), OXA (oxacillin),
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
+#> ℹ For `betalactams()` using columns PEN (benzylpenicillin), OXA (oxacillin),
#> FLC (flucloxacillin), AMX (amoxicillin), AMC (amoxicillin/clavulanic acid),
#> AMP (ampicillin), TZP (piperacillin/tazobactam), CZO (cefazolin), FEP
#> (cefepime), CXM (cefuroxime), FOX (cefoxitin), CTX (cefotaxime), CAZ
@@ -482,16 +482,16 @@ package.
#> # A tibble: 500 × 19
#> esbl genus AMC AMP TZP CXM FOX CTX CAZ GEN TOB TMP SXT
#> <lgl> <chr> <mic> <mic> <mic> <mic> <mic> <mic> <mic> <mic> <mic> <mic> <mic>
-#> 1 FALSE Esch… 32 32 4 64 64 8.00 8.00 1 1 16.0 20
-#> 2 FALSE Esch… 32 32 4 64 64 4.00 8.00 1 1 16.0 320
-#> 3 FALSE Esch… 4 2 64 8 4 8.00 0.12 16 16 0.5 20
-#> 4 FALSE Kleb… 32 32 16 64 64 8.00 8.00 1 1 0.5 20
-#> 5 FALSE Esch… 32 32 4 4 4 0.25 2.00 1 1 16.0 320
-#> 6 FALSE Citr… 32 32 16 64 64 64.00 32.00 1 1 0.5 20
-#> 7 FALSE Morg… 32 32 4 64 64 16.00 2.00 1 1 0.5 20
-#> 8 FALSE Prot… 16 32 4 1 4 8.00 0.12 1 1 16.0 320
-#> 9 FALSE Ente… 32 32 8 64 64 32.00 4.00 1 1 0.5 20
-#> 10 FALSE Citr… 32 32 32 64 64 8.00 64.00 1 1 16.0 320
+#> 1 FALSE Esch… 32 32 4 64 64 8.00 8.00 1 1 16.0 20
+#> 2 FALSE Esch… 32 32 4 64 64 4.00 8.00 1 1 16.0 320
+#> 3 FALSE Esch… 4 2 64 8 4 8.00 0.12 16 16 0.5 20
+#> 4 FALSE Kleb… 32 32 16 64 64 8.00 8.00 1 1 0.5 20
+#> 5 FALSE Esch… 32 32 4 4 4 0.25 2.00 1 1 16.0 320
+#> 6 FALSE Citr… 32 32 16 64 64 64.00 32.00 1 1 0.5 20
+#> 7 FALSE Morg… 32 32 4 64 64 16.00 2.00 1 1 0.5 20
+#> 8 FALSE Prot… 16 32 4 1 4 8.00 0.12 1 1 16.0 320
+#> 9 FALSE Ente… 32 32 8 64 64 32.00 4.00 1 1 0.5 20
+#> 10 FALSE Citr… 32 32 32 64 64 8.00 64.00 1 1 16.0 320
#> # ℹ 490 more rows
#> # ℹ 6 more variables: NIT <mic>, FOS <mic>, CIP <mic>, IPM <mic>, MEM <mic>,
#> # COL <mic>
@@ -746,10 +746,10 @@ into a structured time-series format.
.names = "res_{.col}" ) ,
.groups = "drop" ) %>%
filter ( ! is.na ( res_AMX ) & ! is.na ( res_AMC ) & ! is.na ( res_CIP ) ) # Drop missing values
-#> ℹ Using column 'mo ' as input for `col_mo`.
-#> ℹ `?resistance()` assumes the EUCAST guideline and thus considers the 'I'
+#> ℹ Using column mo as input for `col_mo`.
+#> ℹ `resistance()` assumes the EUCAST guideline and thus considers the 'I'
#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
-#> option to either "CLSI" or "EUCAST", see AMR-options.
+#> option to either "CLSI" or "EUCAST", see `?AMR-options`.
#> ℹ This message will be shown once per session.
data_time
diff --git a/articles/AMR_with_tidymodels.md b/articles/AMR_with_tidymodels.md
index 7cc6ce75a..2808eb205 100644
--- a/articles/AMR_with_tidymodels.md
+++ b/articles/AMR_with_tidymodels.md
@@ -94,9 +94,9 @@ data <- example_isolates %>%
mo = as.factor(mo_gramstain(mo))) %>%
# drop NAs - the ones without a Gramstain (fungi, etc.)
drop_na()
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
-#> ℹ For `?betalactams()` using columns PEN (benzylpenicillin), OXA (oxacillin),
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
+#> ℹ For `betalactams()` using columns PEN (benzylpenicillin), OXA (oxacillin),
#> FLC (flucloxacillin), AMX (amoxicillin), AMC (amoxicillin/clavulanic acid),
#> AMP (ampicillin), TZP (piperacillin/tazobactam), CZO (cefazolin), FEP
#> (cefepime), CXM (cefuroxime), FOX (cefoxitin), CTX (cefotaxime), CAZ
@@ -143,9 +143,9 @@ a training set using `prep()`:
``` r
prep(resistance_recipe)
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
-#> ℹ For `?betalactams()` using columns PEN (benzylpenicillin), OXA (oxacillin),
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
+#> ℹ For `betalactams()` using columns PEN (benzylpenicillin), OXA (oxacillin),
#> FLC (flucloxacillin), AMX (amoxicillin), AMC (amoxicillin/clavulanic acid),
#> AMP (ampicillin), TZP (piperacillin/tazobactam), CZO (cefazolin), FEP
#> (cefepime), CXM (cefuroxime), FOX (cefoxitin), CTX (cefotaxime), CAZ
@@ -644,10 +644,10 @@ data_time <- example_isolates %>%
.names = "res_{.col}"),
.groups = "drop") %>%
filter(!is.na(res_AMX) & !is.na(res_AMC) & !is.na(res_CIP)) # Drop missing values
-#> ℹ Using column 'mo' as input for `col_mo`.
-#> ℹ `?resistance()` assumes the EUCAST guideline and thus considers the 'I'
+#> ℹ Using column mo as input for `col_mo`.
+#> ℹ `resistance()` assumes the EUCAST guideline and thus considers the 'I'
#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
-#> option to either "CLSI" or "EUCAST", see AMR-options.
+#> option to either "CLSI" or "EUCAST", see `?AMR-options`.
#> ℹ This message will be shown once per session.
data_time
diff --git a/articles/EUCAST.html b/articles/EUCAST.html
index a5d207d47..3bcd3939a 100644
--- a/articles/EUCAST.html
+++ b/articles/EUCAST.html
@@ -30,7 +30,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/articles/PCA.html b/articles/PCA.html
index c30951310..74f608397 100644
--- a/articles/PCA.html
+++ b/articles/PCA.html
@@ -30,7 +30,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -163,9 +163,9 @@ per taxonomic order and genus:
order , genus , AMC , CXM , CTX ,
CAZ , GEN , TOB , TMP , SXT
) # and select only relevant columns
-#> ℹ `?resistance()` assumes the EUCAST guideline and thus considers the 'I'
+#> ℹ `resistance()` assumes the EUCAST guideline and thus considers the 'I'
#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
-#> option to either "CLSI" or "EUCAST", see AMR-options.
+#> option to either "CLSI" or "EUCAST", see `?AMR-options`.
#> ℹ This message will be shown once per session.
head ( resistance_data )
diff --git a/articles/PCA.md b/articles/PCA.md
index eed815034..8bc973e2f 100644
--- a/articles/PCA.md
+++ b/articles/PCA.md
@@ -78,9 +78,9 @@ resistance_data <- example_isolates %>%
order, genus, AMC, CXM, CTX,
CAZ, GEN, TOB, TMP, SXT
) # and select only relevant columns
-#> ℹ `?resistance()` assumes the EUCAST guideline and thus considers the 'I'
+#> ℹ `resistance()` assumes the EUCAST guideline and thus considers the 'I'
#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
-#> option to either "CLSI" or "EUCAST", see AMR-options.
+#> option to either "CLSI" or "EUCAST", see `?AMR-options`.
#> ℹ This message will be shown once per session.
head(resistance_data)
diff --git a/articles/WHONET.html b/articles/WHONET.html
index aa3abd965..270c36374 100644
--- a/articles/WHONET.html
+++ b/articles/WHONET.html
@@ -30,7 +30,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -255,9 +255,9 @@ Longest: 40
# our transformed antibiotic columns
# amoxicillin/clavulanic acid (J01CR02) as an example
data %>% freq ( AMC_ND2 )
-#> ℹ `?susceptibility()` assumes the EUCAST guideline and thus considers the 'I'
+#> ℹ `susceptibility()` assumes the EUCAST guideline and thus considers the 'I'
#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
-#> option to either "CLSI" or "EUCAST", see AMR-options.
+#> option to either "CLSI" or "EUCAST", see `?AMR-options`.
#> ℹ This message will be shown once per session.
Frequency table
Class: factor > ordered > sir (numeric)
diff --git a/articles/WHONET.md b/articles/WHONET.md
index 6508986ef..be56ef42d 100644
--- a/articles/WHONET.md
+++ b/articles/WHONET.md
@@ -101,9 +101,9 @@ Longest: 40
# our transformed antibiotic columns
# amoxicillin/clavulanic acid (J01CR02) as an example
data %>% freq(AMC_ND2)
-#> ℹ `?susceptibility()` assumes the EUCAST guideline and thus considers the 'I'
+#> ℹ `susceptibility()` assumes the EUCAST guideline and thus considers the 'I'
#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
-#> option to either "CLSI" or "EUCAST", see AMR-options.
+#> option to either "CLSI" or "EUCAST", see `?AMR-options`.
#> ℹ This message will be shown once per session.
```
diff --git a/articles/WISCA.html b/articles/WISCA.html
index b0e107deb..f43125fde 100644
--- a/articles/WISCA.html
+++ b/articles/WISCA.html
@@ -30,7 +30,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -253,16 +253,16 @@ I (intermediate [CLSI], or susceptible, increased exposure
#> # A tibble: 2,000 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
+#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
#> # ℹ 1,990 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
diff --git a/articles/datasets.html b/articles/datasets.html
index 7eac218f0..f9d3c273b 100644
--- a/articles/datasets.html
+++ b/articles/datasets.html
@@ -30,7 +30,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -80,7 +80,7 @@
-
AMR 3.0.1.9038
+
AMR 3.0.1.9040
-
New
+
New
Integration with the tidymodels framework to allow seamless use of SIR, MIC and disk data in modelling pipelines via recipes
step_mic_log2() to transform <mic> columns with log2, and step_sir_numeric() to convert <sir> columns to numeric
@@ -83,12 +83,14 @@
Function amr_course() , which allows for automated download and unpacking of a GitHub repository for e.g. webinar use
-
Fixes
+
Fixes
Fixed a bug in as.sir() where values that were purely numeric (e.g., "1") and matched the broad SIR-matching regex would be incorrectly stripped of all content by the Unicode letter filter
Fixed a bug in as.mic() where MIC values in scientific notation (e.g., "1e-3") were incorrectly handled because the letter e was removed along with other Unicode letters; scientific notation e is now preserved
Fixed a bug in as.ab() where certain AB codes containing “PH” or “TH” (such as ETH, MTH, PHE, PHN, STH, THA, THI1) would incorrectly return NA when combined in a vector with any untranslatable value (#245 )
Fixed a bug in antibiogram() for when no antimicrobials are set
Fixed a bug in as.sir() where for numeric input the arguments S, I, and R would not be considered (#244 )
+Fixed a bug in plotting MIC values when keep_operators = "all"
+
Fixed some foreign translations of antimicrobial drugs
Fixed a bug for printing column names to the console when using mutate_at(vars(...), as.mic) (#249 )
Fixed a bug to disregard NI for susceptibility proportion functions
@@ -96,7 +98,7 @@
Fixed SIR and MIC coercion of combined values, e.g. as.sir("<= 0.002; S") or as.mic("S; 0.002") (#252 )
-
Updates
+
Updates
Extensive cli integration for better message handling and clickable links in messages and warnings (#191 , #265 )
mdro() now infers resistance for a missing base drug column from an available corresponding drug+inhibitor combination showing resistance (e.g., piperacillin is absent but required, while piperacillin/tazobactam available and resistant). Can be set with the new argument infer_from_combinations, which defaults to TRUE (#209 ). Note that this can yield a higher MDRO detection (which is a good thing as it has become more reliable).
diff --git a/news/index.md b/news/index.md
index ada5a196f..f2481be2c 100644
--- a/news/index.md
+++ b/news/index.md
@@ -1,6 +1,6 @@
# Changelog
-## AMR 3.0.1.9038
+## AMR 3.0.1.9040
#### New
@@ -67,6 +67,7 @@
- Fixed a bug in [`as.sir()`](https://amr-for-r.org/reference/as.sir.md)
where for numeric input the arguments `S`, `I`, and `R` would not be
considered ([\#244](https://github.com/msberends/AMR/issues/244))
+- Fixed a bug in plotting MIC values when `keep_operators = "all"`
- Fixed some foreign translations of antimicrobial drugs
- Fixed a bug for printing column names to the console when using
`mutate_at(vars(...), as.mic)`
diff --git a/pkgdown.yml b/pkgdown.yml
index 83fe84209..cfc8c519f 100644
--- a/pkgdown.yml
+++ b/pkgdown.yml
@@ -10,7 +10,7 @@ articles:
PCA: PCA.html
WHONET: WHONET.html
WISCA: WISCA.html
-last_built: 2026-03-22T21:26Z
+last_built: 2026-03-24T12:29Z
urls:
reference: https://amr-for-r.org/reference
article: https://amr-for-r.org/articles
diff --git a/reference/AMR-deprecated.html b/reference/AMR-deprecated.html
index aa804f38e..7a886f668 100644
--- a/reference/AMR-deprecated.html
+++ b/reference/AMR-deprecated.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/AMR-options.html b/reference/AMR-options.html
index 99c5aa0d5..101ac401f 100644
--- a/reference/AMR-options.html
+++ b/reference/AMR-options.html
@@ -9,7 +9,7 @@ options(AMR_guideline = "CLSI")'> AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/AMR.html b/reference/AMR.html
index e1d5fb715..2f9988ab4 100644
--- a/reference/AMR.html
+++ b/reference/AMR.html
@@ -21,7 +21,7 @@ The AMR package is available in English, Arabic, Bengali, Chinese, Czech, Danish
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/WHOCC.html b/reference/WHOCC.html
index c449f3dea..f876ff1da 100644
--- a/reference/WHOCC.html
+++ b/reference/WHOCC.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/WHONET.html b/reference/WHONET.html
index b21823bc4..7eca89df7 100644
--- a/reference/WHONET.html
+++ b/reference/WHONET.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/ab_from_text.html b/reference/ab_from_text.html
index 0837e18ee..88d6bb09c 100644
--- a/reference/ab_from_text.html
+++ b/reference/ab_from_text.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/ab_property.html b/reference/ab_property.html
index e85e72b5d..429075761 100644
--- a/reference/ab_property.html
+++ b/reference/ab_property.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/add_custom_antimicrobials.html b/reference/add_custom_antimicrobials.html
index 53c60f5dd..dc8e5400c 100644
--- a/reference/add_custom_antimicrobials.html
+++ b/reference/add_custom_antimicrobials.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -197,7 +197,7 @@
#> random_column coflu ampicillin
#> 1 some value S R
x [ , betalactams ( ) ]
-#> ℹ For `?betalactams()` using columns coflu (co-fluampicil) and ampicillin
+#> ℹ For `betalactams()` using columns coflu (co-fluampicil) and ampicillin
#> coflu ampicillin
#> 1 S R
# }
diff --git a/reference/add_custom_antimicrobials.md b/reference/add_custom_antimicrobials.md
index 5c481000d..3ddeca1ac 100644
--- a/reference/add_custom_antimicrobials.md
+++ b/reference/add_custom_antimicrobials.md
@@ -185,7 +185,7 @@ x
#> random_column coflu ampicillin
#> 1 some value S R
x[, betalactams()]
-#> ℹ For `?betalactams()` using columns coflu (co-fluampicil) and ampicillin
+#> ℹ For `betalactams()` using columns coflu (co-fluampicil) and ampicillin
#> coflu ampicillin
#> 1 S R
# }
diff --git a/reference/add_custom_microorganisms.html b/reference/add_custom_microorganisms.html
index f00177d6a..d172c336c 100644
--- a/reference/add_custom_microorganisms.html
+++ b/reference/add_custom_microorganisms.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/age.html b/reference/age.html
index e187a97ad..94fc61063 100644
--- a/reference/age.html
+++ b/reference/age.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -112,16 +112,16 @@
df
#> birth_date age age_exact age_at_y2k
-#> 1 1999-06-30 26 26.72603 0
-#> 2 1968-01-29 58 58.14247 31
-#> 3 1965-12-05 60 60.29315 34
-#> 4 1980-03-01 46 46.05753 19
-#> 5 1949-11-01 76 76.38630 50
-#> 6 1947-02-14 79 79.09863 52
-#> 7 1940-02-19 86 86.08493 59
-#> 8 1988-01-10 38 38.19452 11
-#> 9 1997-08-27 28 28.56712 2
-#> 10 1978-01-26 48 48.15068 21
+#> 1 1999-06-30 26 26.73151 0
+#> 2 1968-01-29 58 58.14795 31
+#> 3 1965-12-05 60 60.29863 34
+#> 4 1980-03-01 46 46.06301 19
+#> 5 1949-11-01 76 76.39178 50
+#> 6 1947-02-14 79 79.10411 52
+#> 7 1940-02-19 86 86.09041 59
+#> 8 1988-01-10 38 38.20000 11
+#> 9 1997-08-27 28 28.57260 2
+#> 10 1978-01-26 48 48.15616 21
On this page
diff --git a/reference/age.md b/reference/age.md
index a94b2cdbb..9bb9870a4 100644
--- a/reference/age.md
+++ b/reference/age.md
@@ -81,14 +81,14 @@ df$age_at_y2k <- age(df$birth_date, "2000-01-01")
df
#> birth_date age age_exact age_at_y2k
-#> 1 1999-06-30 26 26.72603 0
-#> 2 1968-01-29 58 58.14247 31
-#> 3 1965-12-05 60 60.29315 34
-#> 4 1980-03-01 46 46.05753 19
-#> 5 1949-11-01 76 76.38630 50
-#> 6 1947-02-14 79 79.09863 52
-#> 7 1940-02-19 86 86.08493 59
-#> 8 1988-01-10 38 38.19452 11
-#> 9 1997-08-27 28 28.56712 2
-#> 10 1978-01-26 48 48.15068 21
+#> 1 1999-06-30 26 26.73151 0
+#> 2 1968-01-29 58 58.14795 31
+#> 3 1965-12-05 60 60.29863 34
+#> 4 1980-03-01 46 46.06301 19
+#> 5 1949-11-01 76 76.39178 50
+#> 6 1947-02-14 79 79.10411 52
+#> 7 1940-02-19 86 86.09041 59
+#> 8 1988-01-10 38 38.20000 11
+#> 9 1997-08-27 28 28.57260 2
+#> 10 1978-01-26 48 48.15616 21
```
diff --git a/reference/age_groups.html b/reference/age_groups.html
index 80544a39f..23a29bef9 100644
--- a/reference/age_groups.html
+++ b/reference/age_groups.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/amr-tidymodels.html b/reference/amr-tidymodels.html
index 5e73a017b..372f6a9b9 100644
--- a/reference/amr-tidymodels.html
+++ b/reference/amr-tidymodels.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/amr_course.html b/reference/amr_course.html
index 0ad1fb58e..66da7c7f5 100644
--- a/reference/amr_course.html
+++ b/reference/amr_course.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/antibiogram.html b/reference/antibiogram.html
index 4fa661e48..c5f44e7c5 100644
--- a/reference/antibiogram.html
+++ b/reference/antibiogram.html
@@ -9,7 +9,7 @@ Adhering to previously described approaches (see Source) and especially the Baye
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -384,16 +384,16 @@ Adhering to previously described approaches (see Source) and especially the Baye
#> # A tibble: 2,000 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
+#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
#> # ℹ 1,990 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
@@ -408,9 +408,9 @@ Adhering to previously described approaches (see Source) and especially the Baye
antibiogram ( example_isolates ,
antimicrobials = c ( aminoglycosides ( ) , carbapenems ( ) )
)
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> # An Antibiogram: 10 × 7
#> # Type: Non-WISCA with 95% CI
#> Pathogen Amikacin Gentamicin Imipenem Kanamycin Meropenem Tobramycin
@@ -433,8 +433,8 @@ Adhering to previously described approaches (see Source) and especially the Baye
ab_transform = "atc" ,
mo_transform = "gramstain"
)
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
#> # An Antibiogram: 2 × 5
#> # Type: Non-WISCA with 95% CI
#> Pathogen J01GB01 J01GB03 J01GB04 J01GB06
@@ -449,7 +449,7 @@ Adhering to previously described approaches (see Source) and especially the Baye
ab_transform = "name" ,
mo_transform = "name"
)
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> # An Antibiogram: 5 × 3
#> # Type: Non-WISCA with 95% CI
#> Pathogen Imipenem Meropenem
@@ -487,7 +487,7 @@ Adhering to previously described approaches (see Source) and especially the Baye
antimicrobials = ureidopenicillins ( ) + c ( "" , "GEN" , "tobra" ) ,
mo_transform = "gramstain"
)
-#> ℹ For `?ureidopenicillins()` using column TZP (piperacillin/tazobactam)
+#> ℹ For `ureidopenicillins()` using column TZP (piperacillin/tazobactam)
#> # An Antibiogram: 2 × 4
#> # Type: Non-WISCA with 95% CI
#> Pathogen Piperacillin/tazobac…¹ Piperacillin/tazobac…² Piperacillin/tazobac…³
@@ -524,9 +524,9 @@ Adhering to previously described approaches (see Source) and especially the Baye
antimicrobials = c ( aminoglycosides ( ) , carbapenems ( ) ) ,
syndromic_group = "ward"
)
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> # An Antibiogram: 14 × 8
#> # Type: Non-WISCA with 95% CI
#> `Syndromic Group` Pathogen Amikacin Gentamicin Imipenem Kanamycin Meropenem
@@ -551,7 +551,7 @@ Adhering to previously described approaches (see Source) and especially the Baye
# now define a data set with only E. coli
ex1 <- example_isolates [ which ( mo_genus ( ) == "Escherichia" ) , ]
-#> ℹ Using column 'mo ' as input for `?mo_genus()`
+#> ℹ Using column mo as input for `mo_genus()`
# with a custom language, though this will be determined automatically
# (i.e., this table will be in Spanish on Spanish systems)
@@ -563,8 +563,8 @@ Adhering to previously described approaches (see Source) and especially the Baye
) ,
language = "es"
)
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
#> # An Antibiogram: 2 × 5
#> # Type: Non-WISCA with 95% CI
#> `Grupo sindrómico` Patógeno Amikacina Gentamicina Tobramicina
@@ -603,7 +603,7 @@ Adhering to previously described approaches (see Source) and especially the Baye
syndromic_group = "ward" ,
wisca = TRUE
)
-#> ℹ For `?ureidopenicillins()` using column TZP (piperacillin/tazobactam)
+#> ℹ For `ureidopenicillins()` using column TZP (piperacillin/tazobactam)
# in an Rmd file, you would just need to return `ureido` in a chunk,
# but to be explicit here:
diff --git a/reference/antibiogram.md b/reference/antibiogram.md
index 435354edf..5ceba4b2b 100644
--- a/reference/antibiogram.md
+++ b/reference/antibiogram.md
@@ -598,9 +598,9 @@ example_isolates
antibiogram(example_isolates,
antimicrobials = c(aminoglycosides(), carbapenems())
)
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> # An Antibiogram: 10 × 7
#> # Type: Non-WISCA with 95% CI
#> Pathogen Amikacin Gentamicin Imipenem Kanamycin Meropenem Tobramycin
@@ -623,8 +623,8 @@ antibiogram(example_isolates,
ab_transform = "atc",
mo_transform = "gramstain"
)
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
#> # An Antibiogram: 2 × 5
#> # Type: Non-WISCA with 95% CI
#> Pathogen J01GB01 J01GB03 J01GB04 J01GB06
@@ -639,7 +639,7 @@ antibiogram(example_isolates,
ab_transform = "name",
mo_transform = "name"
)
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> # An Antibiogram: 5 × 3
#> # Type: Non-WISCA with 95% CI
#> Pathogen Imipenem Meropenem
@@ -677,7 +677,7 @@ antibiogram(example_isolates,
antimicrobials = ureidopenicillins() + c("", "GEN", "tobra"),
mo_transform = "gramstain"
)
-#> ℹ For `?ureidopenicillins()` using column TZP (piperacillin/tazobactam)
+#> ℹ For `ureidopenicillins()` using column TZP (piperacillin/tazobactam)
#> # An Antibiogram: 2 × 4
#> # Type: Non-WISCA with 95% CI
#> Pathogen Piperacillin/tazobac…¹ Piperacillin/tazobac…² Piperacillin/tazobac…³
@@ -714,9 +714,9 @@ antibiogram(example_isolates,
antimicrobials = c(aminoglycosides(), carbapenems()),
syndromic_group = "ward"
)
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> # An Antibiogram: 14 × 8
#> # Type: Non-WISCA with 95% CI
#> `Syndromic Group` Pathogen Amikacin Gentamicin Imipenem Kanamycin Meropenem
@@ -741,7 +741,7 @@ antibiogram(example_isolates,
# now define a data set with only E. coli
ex1 <- example_isolates[which(mo_genus() == "Escherichia"), ]
-#> ℹ Using column 'mo' as input for `?mo_genus()`
+#> ℹ Using column mo as input for `mo_genus()`
# with a custom language, though this will be determined automatically
# (i.e., this table will be in Spanish on Spanish systems)
@@ -753,8 +753,8 @@ antibiogram(ex1,
),
language = "es"
)
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
#> # An Antibiogram: 2 × 5
#> # Type: Non-WISCA with 95% CI
#> `Grupo sindrómico` Patógeno Amikacina Gentamicina Tobramicina
@@ -793,7 +793,7 @@ ureido <- antibiogram(example_isolates,
syndromic_group = "ward",
wisca = TRUE
)
-#> ℹ For `?ureidopenicillins()` using column TZP (piperacillin/tazobactam)
+#> ℹ For `ureidopenicillins()` using column TZP (piperacillin/tazobactam)
# in an Rmd file, you would just need to return `ureido` in a chunk,
# but to be explicit here:
diff --git a/reference/antimicrobial_selectors.html b/reference/antimicrobial_selectors.html
index 49bdc2ecf..24959aca4 100644
--- a/reference/antimicrobial_selectors.html
+++ b/reference/antimicrobial_selectors.html
@@ -17,7 +17,7 @@ my_data_with_all_these_columns %>%
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -275,16 +275,16 @@ my_data_with_all_these_columns %>%
#> # A tibble: 2,000 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
+#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
#> # ℹ 1,990 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
@@ -296,7 +296,7 @@ my_data_with_all_these_columns %>%
# you can use the selectors separately to retrieve all possible antimicrobials:
carbapenems ( )
-#> ℹ in `?carbapenems()`: Imipenem/EDTA (IPE ) and meropenem/nacubactam (MNC ) are
+#> ℹ in `carbapenems()`: Imipenem/EDTA (IPE ) and meropenem/nacubactam (MNC ) are
#> not included since `only_treatable = TRUE`.
#> ℹ This <ab> vector was retrieved using `carbapenems()`, which should normally
#> be used inside a dplyr verb or <data.frame> call, e.g.:
@@ -404,44 +404,44 @@ my_data_with_all_these_columns %>%
# select columns 'IPM' (imipenem) and 'MEM' (meropenem)
example_isolates [ , carbapenems ( ) ]
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> # A tibble: 2,000 × 2
#> IPM MEM
#> <sir> <sir>
-#> 1 NA NA
-#> 2 NA NA
-#> 3 NA NA
-#> 4 NA NA
-#> 5 NA NA
-#> 6 NA NA
-#> 7 NA NA
-#> 8 NA NA
-#> 9 NA NA
-#> 10 NA NA
+#> 1 NA NA
+#> 2 NA NA
+#> 3 NA NA
+#> 4 NA NA
+#> 5 NA NA
+#> 6 NA NA
+#> 7 NA NA
+#> 8 NA NA
+#> 9 NA NA
+#> 10 NA NA
#> # ℹ 1,990 more rows
# select columns 'mo', 'AMK', 'GEN', 'KAN' and 'TOB'
example_isolates [ , c ( "mo" , aminoglycosides ( ) ) ]
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
#> # A tibble: 2,000 × 5
#> mo GEN TOB AMK KAN
#> <mo> <sir> <sir> <sir> <sir>
-#> 1 B_ ESCHR_ COLI NA NA NA NA
-#> 2 B_ ESCHR_ COLI NA NA NA NA
-#> 3 B_ STPHY_ EPDR NA NA NA NA
-#> 4 B_ STPHY_ EPDR NA NA NA NA
-#> 5 B_ STPHY_ EPDR NA NA NA NA
-#> 6 B_ STPHY_ EPDR NA NA NA NA
-#> 7 B_ STPHY_ AURS NA S NA NA
-#> 8 B_ STPHY_ AURS NA S NA NA
-#> 9 B_ STPHY_ EPDR NA NA NA NA
-#> 10 B_ STPHY_ EPDR NA NA NA NA
+#> 1 B_ ESCHR_ COLI NA NA NA NA
+#> 2 B_ ESCHR_ COLI NA NA NA NA
+#> 3 B_ STPHY_ EPDR NA NA NA NA
+#> 4 B_ STPHY_ EPDR NA NA NA NA
+#> 5 B_ STPHY_ EPDR NA NA NA NA
+#> 6 B_ STPHY_ EPDR NA NA NA NA
+#> 7 B_ STPHY_ AURS NA S NA NA
+#> 8 B_ STPHY_ AURS NA S NA NA
+#> 9 B_ STPHY_ EPDR NA NA NA NA
+#> 10 B_ STPHY_ EPDR NA NA NA NA
#> # ℹ 1,990 more rows
# select only antimicrobials with DDDs for oral treatment
example_isolates [ , administrable_per_os ( ) ]
-#> ℹ For `?administrable_per_os()` using columns OXA (oxacillin), FLC
+#> ℹ For `administrable_per_os()` using columns OXA (oxacillin), FLC
#> (flucloxacillin), AMX (amoxicillin), AMC (amoxicillin/clavulanic acid), AMP
#> (ampicillin), CXM (cefuroxime), KAN (kanamycin), TMP (trimethoprim), NIT
#> (nitrofurantoin), FOS (fosfomycin), LNZ (linezolid), CIP (ciprofloxacin), MFX
@@ -451,36 +451,36 @@ my_data_with_all_these_columns %>%
#> # A tibble: 2,000 × 23
#> OXA FLC AMX AMC AMP CXM KAN TMP NIT FOS LNZ CIP MFX
#> <sir> <sir> <sir> <sir> <sir> <sir> <sir> <sir> <sir> <sir> <sir> <sir> <sir>
-#> 1 NA NA NA I NA I NA R NA NA R NA NA
-#> 2 NA NA NA I NA I NA R NA NA R NA NA
-#> 3 NA R NA NA NA R NA S NA NA NA NA NA
-#> 4 NA R NA NA NA R NA S NA NA NA NA NA
-#> 5 NA R NA NA NA R NA R NA NA NA NA NA
-#> 6 NA R NA NA NA R NA R NA NA NA NA NA
-#> 7 NA S R S R S NA R NA NA NA NA NA
-#> 8 NA S R S R S NA R NA NA NA NA NA
-#> 9 NA R NA NA NA R NA S NA NA NA S NA
-#> 10 NA S NA NA NA S NA S NA NA NA S NA
+#> 1 NA NA NA I NA I NA R NA NA R NA NA
+#> 2 NA NA NA I NA I NA R NA NA R NA NA
+#> 3 NA R NA NA NA R NA S NA NA NA NA NA
+#> 4 NA R NA NA NA R NA S NA NA NA NA NA
+#> 5 NA R NA NA NA R NA R NA NA NA NA NA
+#> 6 NA R NA NA NA R NA R NA NA NA NA NA
+#> 7 NA S R S R S NA R NA NA NA NA NA
+#> 8 NA S R S R S NA R NA NA NA NA NA
+#> 9 NA R NA NA NA R NA S NA NA NA S NA
+#> 10 NA S NA NA NA S NA S NA NA NA S NA
#> # ℹ 1,990 more rows
#> # ℹ 10 more variables: VAN <sir>, TCY <sir>, DOX <sir>, ERY <sir>, CLI <sir>,
#> # AZM <sir>, MTR <sir>, CHL <sir>, COL <sir>, RIF <sir>
# filter using any() or all()
example_isolates [ any ( carbapenems ( ) == "R" ) , ]
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> # A tibble: 55 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2004-06-09 529296 69 M ICU B_ ENTRC_ FACM NA NA NA NA
-#> 2 2004-06-09 529296 69 M ICU B_ ENTRC_ FACM NA NA NA NA
-#> 3 2004-11-03 D65308 80 F ICU B_ STNTR_ MLTP R NA NA R
-#> 4 2005-04-21 452212 82 F ICU B_ ENTRC NA NA NA NA
-#> 5 2005-04-22 452212 82 F ICU B_ ENTRC NA NA NA NA
-#> 6 2005-04-22 452212 82 F ICU B_ ENTRC_ FACM NA NA NA NA
-#> 7 2007-02-21 8BBC46 61 F Clinical B_ ENTRC_ FACM NA NA NA NA
-#> 8 2007-12-15 401043 72 M Clinical B_ ENTRC_ FACM NA NA NA NA
-#> 9 2008-01-22 1710B8 82 M Clinical B_ PROTS_ MRBL R NA NA NA
-#> 10 2008-01-22 1710B8 82 M Clinical B_ PROTS_ MRBL R NA NA NA
+#> 1 2004-06-09 529296 69 M ICU B_ ENTRC_ FACM NA NA NA NA
+#> 2 2004-06-09 529296 69 M ICU B_ ENTRC_ FACM NA NA NA NA
+#> 3 2004-11-03 D65308 80 F ICU B_ STNTR_ MLTP R NA NA R
+#> 4 2005-04-21 452212 82 F ICU B_ ENTRC NA NA NA NA
+#> 5 2005-04-22 452212 82 F ICU B_ ENTRC NA NA NA NA
+#> 6 2005-04-22 452212 82 F ICU B_ ENTRC_ FACM NA NA NA NA
+#> 7 2007-02-21 8BBC46 61 F Clinical B_ ENTRC_ FACM NA NA NA NA
+#> 8 2007-12-15 401043 72 M Clinical B_ ENTRC_ FACM NA NA NA NA
+#> 9 2008-01-22 1710B8 82 M Clinical B_ PROTS_ MRBL R NA NA NA
+#> 10 2008-01-22 1710B8 82 M Clinical B_ PROTS_ MRBL R NA NA NA
#> # ℹ 45 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
@@ -489,20 +489,20 @@ my_data_with_all_these_columns %>%
#> # TCY <sir>, TGC <sir>, DOX <sir>, ERY <sir>, CLI <sir>, AZM <sir>,
#> # IPM <sir>, MEM <sir>, MTR <sir>, CHL <sir>, COL <sir>, MUP <sir>, …
subset ( example_isolates , any ( carbapenems ( ) == "R" ) )
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> # A tibble: 55 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2004-06-09 529296 69 M ICU B_ ENTRC_ FACM NA NA NA NA
-#> 2 2004-06-09 529296 69 M ICU B_ ENTRC_ FACM NA NA NA NA
-#> 3 2004-11-03 D65308 80 F ICU B_ STNTR_ MLTP R NA NA R
-#> 4 2005-04-21 452212 82 F ICU B_ ENTRC NA NA NA NA
-#> 5 2005-04-22 452212 82 F ICU B_ ENTRC NA NA NA NA
-#> 6 2005-04-22 452212 82 F ICU B_ ENTRC_ FACM NA NA NA NA
-#> 7 2007-02-21 8BBC46 61 F Clinical B_ ENTRC_ FACM NA NA NA NA
-#> 8 2007-12-15 401043 72 M Clinical B_ ENTRC_ FACM NA NA NA NA
-#> 9 2008-01-22 1710B8 82 M Clinical B_ PROTS_ MRBL R NA NA NA
-#> 10 2008-01-22 1710B8 82 M Clinical B_ PROTS_ MRBL R NA NA NA
+#> 1 2004-06-09 529296 69 M ICU B_ ENTRC_ FACM NA NA NA NA
+#> 2 2004-06-09 529296 69 M ICU B_ ENTRC_ FACM NA NA NA NA
+#> 3 2004-11-03 D65308 80 F ICU B_ STNTR_ MLTP R NA NA R
+#> 4 2005-04-21 452212 82 F ICU B_ ENTRC NA NA NA NA
+#> 5 2005-04-22 452212 82 F ICU B_ ENTRC NA NA NA NA
+#> 6 2005-04-22 452212 82 F ICU B_ ENTRC_ FACM NA NA NA NA
+#> 7 2007-02-21 8BBC46 61 F Clinical B_ ENTRC_ FACM NA NA NA NA
+#> 8 2007-12-15 401043 72 M Clinical B_ ENTRC_ FACM NA NA NA NA
+#> 9 2008-01-22 1710B8 82 M Clinical B_ PROTS_ MRBL R NA NA NA
+#> 10 2008-01-22 1710B8 82 M Clinical B_ PROTS_ MRBL R NA NA NA
#> # ℹ 45 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
@@ -513,21 +513,21 @@ my_data_with_all_these_columns %>%
# filter on any or all results in the carbapenem columns (i.e., IPM, MEM):
example_isolates [ any ( carbapenems ( ) ) , ]
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> ℹ Filtering any of columns 'IPM ' and 'MEM ' to contain value "S", "I" or "R"
#> # A tibble: 962 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2002-01-19 738003 71 M Clinical B_ ESCHR_ COLI R NA NA NA
-#> 2 2002-01-19 738003 71 M Clinical B_ ESCHR_ COLI R NA NA NA
-#> 3 2002-01-22 F35553 50 M ICU B_ PROTS_ MRBL R NA NA NA
-#> 4 2002-01-22 F35553 50 M ICU B_ PROTS_ MRBL R NA NA NA
-#> 5 2002-02-05 067927 45 F ICU B_ SERRT_ MRCS R NA NA R
-#> 6 2002-02-05 067927 45 F ICU B_ SERRT_ MRCS R NA NA R
-#> 7 2002-02-05 067927 45 F ICU B_ SERRT_ MRCS R NA NA R
-#> 8 2002-02-27 066895 85 F Clinical B_ KLBSL_ PNMN R NA NA R
-#> 9 2002-02-27 066895 85 F Clinical B_ KLBSL_ PNMN R NA NA R
-#> 10 2002-03-08 4FC193 69 M Clinical B_ ESCHR_ COLI R NA NA R
+#> 1 2002-01-19 738003 71 M Clinical B_ ESCHR_ COLI R NA NA NA
+#> 2 2002-01-19 738003 71 M Clinical B_ ESCHR_ COLI R NA NA NA
+#> 3 2002-01-22 F35553 50 M ICU B_ PROTS_ MRBL R NA NA NA
+#> 4 2002-01-22 F35553 50 M ICU B_ PROTS_ MRBL R NA NA NA
+#> 5 2002-02-05 067927 45 F ICU B_ SERRT_ MRCS R NA NA R
+#> 6 2002-02-05 067927 45 F ICU B_ SERRT_ MRCS R NA NA R
+#> 7 2002-02-05 067927 45 F ICU B_ SERRT_ MRCS R NA NA R
+#> 8 2002-02-27 066895 85 F Clinical B_ KLBSL_ PNMN R NA NA R
+#> 9 2002-02-27 066895 85 F Clinical B_ KLBSL_ PNMN R NA NA R
+#> 10 2002-03-08 4FC193 69 M Clinical B_ ESCHR_ COLI R NA NA R
#> # ℹ 952 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
@@ -536,21 +536,21 @@ my_data_with_all_these_columns %>%
#> # TCY <sir>, TGC <sir>, DOX <sir>, ERY <sir>, CLI <sir>, AZM <sir>,
#> # IPM <sir>, MEM <sir>, MTR <sir>, CHL <sir>, COL <sir>, MUP <sir>, …
example_isolates [ all ( carbapenems ( ) ) , ]
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> ℹ Filtering all of columns 'IPM ' and 'MEM ' to contain value "S", "I" or "R"
#> # A tibble: 756 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2002-04-14 F30196 73 M Outpat… B_ STRPT_ GRPB S NA S S
-#> 2 2003-04-08 114570 74 M ICU B_ STRPT_ PYGN S NA S S
-#> 3 2003-04-08 114570 74 M ICU B_ STRPT_ GRPA S NA S S
-#> 4 2003-04-08 114570 74 M ICU B_ STRPT_ GRPA S NA S S
-#> 5 2003-08-14 F71508 0 F Clinic… B_ STRPT_ GRPB S NA S S
-#> 6 2003-10-16 650870 63 F ICU B_ ESCHR_ COLI R NA NA R
-#> 7 2003-10-20 F35553 52 M ICU B_ ENTRBC_ CLOC R NA NA R
-#> 8 2003-10-20 F35553 52 M ICU B_ ENTRBC_ CLOC R NA NA R
-#> 9 2003-11-04 2FC253 87 F ICU B_ ESCHR_ COLI R NA NA NA
-#> 10 2003-11-04 2FC253 87 F ICU B_ ESCHR_ COLI R NA NA NA
+#> 1 2002-04-14 F30196 73 M Outpat… B_ STRPT_ GRPB S NA S S
+#> 2 2003-04-08 114570 74 M ICU B_ STRPT_ PYGN S NA S S
+#> 3 2003-04-08 114570 74 M ICU B_ STRPT_ GRPA S NA S S
+#> 4 2003-04-08 114570 74 M ICU B_ STRPT_ GRPA S NA S S
+#> 5 2003-08-14 F71508 0 F Clinic… B_ STRPT_ GRPB S NA S S
+#> 6 2003-10-16 650870 63 F ICU B_ ESCHR_ COLI R NA NA R
+#> 7 2003-10-20 F35553 52 M ICU B_ ENTRBC_ CLOC R NA NA R
+#> 8 2003-10-20 F35553 52 M ICU B_ ENTRBC_ CLOC R NA NA R
+#> 9 2003-11-04 2FC253 87 F ICU B_ ESCHR_ COLI R NA NA NA
+#> 10 2003-11-04 2FC253 87 F ICU B_ ESCHR_ COLI R NA NA NA
#> # ℹ 746 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
@@ -561,18 +561,18 @@ my_data_with_all_these_columns %>%
# filter with multiple antimicrobial selectors using c()
example_isolates [ all ( c ( carbapenems ( ) , aminoglycosides ( ) ) == "R" ) , ]
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
#> # A tibble: 26 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2004-11-03 D65308 80 F ICU B_ STNTR_ MLTP R NA NA R
-#> 2 2005-04-22 452212 82 F ICU B_ ENTRC_ FACM NA NA NA NA
-#> 3 2007-02-21 8BBC46 61 F Clinical B_ ENTRC_ FACM NA NA NA NA
-#> 4 2007-12-15 401043 72 M Clinical B_ ENTRC_ FACM NA NA NA NA
-#> 5 2008-12-06 501361 43 F Clinical B_ STNTR_ MLTP R NA NA R
-#> 6 2011-05-09 207325 82 F ICU B_ ENTRC_ FACM NA NA NA NA
+#> 1 2004-11-03 D65308 80 F ICU B_ STNTR_ MLTP R NA NA R
+#> 2 2005-04-22 452212 82 F ICU B_ ENTRC_ FACM NA NA NA NA
+#> 3 2007-02-21 8BBC46 61 F Clinical B_ ENTRC_ FACM NA NA NA NA
+#> 4 2007-12-15 401043 72 M Clinical B_ ENTRC_ FACM NA NA NA NA
+#> 5 2008-12-06 501361 43 F Clinical B_ STNTR_ MLTP R NA NA R
+#> 6 2011-05-09 207325 82 F ICU B_ ENTRC_ FACM NA NA NA NA
#> 7 2012-03-12 582258 80 M ICU B_ STPHY_ CONS R R R R
#> 8 2012-05-19 C25552 89 F Outpati… B_ STPHY_ CONS R R R R
#> 9 2012-07-17 F05015 83 M ICU B_ STPHY_ CONS R R R R
@@ -587,23 +587,23 @@ my_data_with_all_these_columns %>%
# filter + select in one go: get penicillins in carbapenem-resistant strains
example_isolates [ any ( carbapenems ( ) == "R" ) , penicillins ( ) ]
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
-#> ℹ For `?penicillins()` using columns PEN (benzylpenicillin), OXA (oxacillin),
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `penicillins()` using columns PEN (benzylpenicillin), OXA (oxacillin),
#> FLC (flucloxacillin), AMX (amoxicillin), AMC (amoxicillin/clavulanic acid),
#> AMP (ampicillin), and TZP (piperacillin/tazobactam)
#> # A tibble: 55 × 7
#> PEN OXA FLC AMX AMC AMP TZP
#> <sir> <sir> <sir> <sir> <sir> <sir> <sir>
-#> 1 NA NA NA NA NA NA NA
-#> 2 NA NA NA NA NA NA NA
-#> 3 R NA NA R R R R
-#> 4 NA NA NA NA NA NA R
-#> 5 NA NA NA NA NA NA R
-#> 6 NA NA NA NA NA NA R
-#> 7 NA NA NA NA NA NA R
-#> 8 NA NA NA NA NA NA R
-#> 9 R NA NA NA S NA S
-#> 10 R NA NA NA S NA S
+#> 1 NA NA NA NA NA NA NA
+#> 2 NA NA NA NA NA NA NA
+#> 3 R NA NA R R R R
+#> 4 NA NA NA NA NA NA R
+#> 5 NA NA NA NA NA NA R
+#> 6 NA NA NA NA NA NA R
+#> 7 NA NA NA NA NA NA R
+#> 8 NA NA NA NA NA NA R
+#> 9 R NA NA NA S NA S
+#> 10 R NA NA NA S NA S
#> # ℹ 45 more rows
# You can combine selectors with '&' to be more specific. For example,
@@ -612,10 +612,10 @@ my_data_with_all_these_columns %>%
# drugs are both omitted since benzylpenicillin is not administrable per os
# and erythromycin is not a penicillin:
example_isolates [ , penicillins ( ) & administrable_per_os ( ) ]
-#> ℹ For `?penicillins()` using columns PEN (benzylpenicillin), OXA (oxacillin),
+#> ℹ For `penicillins()` using columns PEN (benzylpenicillin), OXA (oxacillin),
#> FLC (flucloxacillin), AMX (amoxicillin), AMC (amoxicillin/clavulanic acid),
#> AMP (ampicillin), and TZP (piperacillin/tazobactam)
-#> ℹ For `?administrable_per_os()` using columns OXA (oxacillin), FLC
+#> ℹ For `administrable_per_os()` using columns OXA (oxacillin), FLC
#> (flucloxacillin), AMX (amoxicillin), AMC (amoxicillin/clavulanic acid), AMP
#> (ampicillin), CXM (cefuroxime), KAN (kanamycin), TMP (trimethoprim), NIT
#> (nitrofurantoin), FOS (fosfomycin), LNZ (linezolid), CIP (ciprofloxacin), MFX
@@ -625,23 +625,23 @@ my_data_with_all_these_columns %>%
#> # A tibble: 2,000 × 5
#> OXA FLC AMX AMC AMP
#> <sir> <sir> <sir> <sir> <sir>
-#> 1 NA NA NA I NA
-#> 2 NA NA NA I NA
-#> 3 NA R NA NA NA
-#> 4 NA R NA NA NA
-#> 5 NA R NA NA NA
-#> 6 NA R NA NA NA
-#> 7 NA S R S R
-#> 8 NA S R S R
-#> 9 NA R NA NA NA
-#> 10 NA S NA NA NA
+#> 1 NA NA NA I NA
+#> 2 NA NA NA I NA
+#> 3 NA R NA NA NA
+#> 4 NA R NA NA NA
+#> 5 NA R NA NA NA
+#> 6 NA R NA NA NA
+#> 7 NA S R S R
+#> 8 NA S R S R
+#> 9 NA R NA NA NA
+#> 10 NA S NA NA NA
#> # ℹ 1,990 more rows
# amr_selector() applies a filter in the `antimicrobials` data set and is thus
# very flexible. For instance, to select antimicrobials with an oral DDD
# of at least 1 gram:
example_isolates [ , amr_selector ( oral_ddd > 1 & oral_units == "g" ) ]
-#> ℹ For `?amr_selector(oral_ddd > 1 & oral_units == "g")` using columns OXA
+#> ℹ For `amr_selector(oral_ddd > 1 & oral_units == "g")` using columns OXA
#> (oxacillin), FLC (flucloxacillin), AMX (amoxicillin), AMC
#> (amoxicillin/clavulanic acid), AMP (ampicillin), KAN (kanamycin), FOS
#> (fosfomycin), LNZ (linezolid), VAN (vancomycin), ERY (erythromycin), CLI
@@ -649,16 +649,16 @@ my_data_with_all_these_columns %>%
#> # A tibble: 2,000 × 13
#> OXA FLC AMX AMC AMP KAN FOS LNZ VAN ERY CLI MTR CHL
#> <sir> <sir> <sir> <sir> <sir> <sir> <sir> <sir> <sir> <sir> <sir> <sir> <sir>
-#> 1 NA NA NA I NA NA NA R R R R NA NA
-#> 2 NA NA NA I NA NA NA R R R R NA NA
-#> 3 NA R NA NA NA NA NA NA S R NA NA NA
-#> 4 NA R NA NA NA NA NA NA S R NA NA NA
-#> 5 NA R NA NA NA NA NA NA S R NA NA NA
-#> 6 NA R NA NA NA NA NA NA S R R NA NA
-#> 7 NA S R S R NA NA NA S S NA NA NA
-#> 8 NA S R S R NA NA NA S S NA NA NA
-#> 9 NA R NA NA NA NA NA NA S R NA NA NA
-#> 10 NA S NA NA NA NA NA NA S S NA NA NA
+#> 1 NA NA NA I NA NA NA R R R R NA NA
+#> 2 NA NA NA I NA NA NA R R R R NA NA
+#> 3 NA R NA NA NA NA NA NA S R NA NA NA
+#> 4 NA R NA NA NA NA NA NA S R NA NA NA
+#> 5 NA R NA NA NA NA NA NA S R NA NA NA
+#> 6 NA R NA NA NA NA NA NA S R R NA NA
+#> 7 NA S R S R NA NA NA S S NA NA NA
+#> 8 NA S R S R NA NA NA S S NA NA NA
+#> 9 NA R NA NA NA NA NA NA S R NA NA NA
+#> 10 NA S NA NA NA NA NA NA S S NA NA NA
#> # ℹ 1,990 more rows
@@ -685,17 +685,17 @@ my_data_with_all_these_columns %>%
#> The following objects are masked from ‘package:AMR’:
#>
#> %like%, like
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> Warning: It should never be needed to print an antimicrobial selector class. Are you
#> using data.table ? Then add the argument `with = FALSE`, see our examples at
-#> `?amr_selector()`.
+#> `amr_selector()`.
#> Class <amr_selector>
#> [1] IPM MEM
if ( require ( "data.table" ) ) {
# so `with = FALSE` is required
dt [ , carbapenems ( ) , with = FALSE ]
}
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> IPM MEM
#> <sir> <sir>
#> 1: <NA> <NA>
@@ -714,8 +714,8 @@ my_data_with_all_these_columns %>%
if ( require ( "data.table" ) ) {
dt [ , c ( "mo" , aminoglycosides ( ) ) ]
}
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
#> mo GEN TOB AMK KAN
#> <mo> <sir> <sir> <sir> <sir>
#> 1: B_ESCHR_COLI <NA> <NA> <NA> <NA>
@@ -732,9 +732,9 @@ my_data_with_all_these_columns %>%
if ( require ( "data.table" ) ) {
dt [ , c ( carbapenems ( ) , aminoglycosides ( ) ) ]
}
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
#> IPM MEM GEN TOB AMK KAN
#> <sir> <sir> <sir> <sir> <sir> <sir>
#> 1: <NA> <NA> <NA> <NA> <NA> <NA>
@@ -753,7 +753,7 @@ my_data_with_all_these_columns %>%
if ( require ( "data.table" ) ) {
dt [ any ( carbapenems ( ) == "S" ) , ]
}
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> date patient age gender ward mo PEN OXA FLC
#> <Date> <char> <num> <char> <char> <mo> <sir> <sir> <sir>
#> 1: 2002-01-19 738003 71 M Clinical B_ESCHR_COLI R <NA> <NA>
@@ -822,8 +822,8 @@ my_data_with_all_these_columns %>%
if ( require ( "data.table" ) ) {
dt [ any ( carbapenems ( ) == "S" ) , penicillins ( ) , with = FALSE ]
}
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
-#> ℹ For `?penicillins()` using columns PEN (benzylpenicillin), OXA (oxacillin),
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `penicillins()` using columns PEN (benzylpenicillin), OXA (oxacillin),
#> FLC (flucloxacillin), AMX (amoxicillin), AMC (amoxicillin/clavulanic acid),
#> AMP (ampicillin), and TZP (piperacillin/tazobactam)
#> PEN OXA FLC AMX AMC AMP TZP
diff --git a/reference/antimicrobial_selectors.md b/reference/antimicrobial_selectors.md
index 15997d5bd..9bcbcc6e7 100644
--- a/reference/antimicrobial_selectors.md
+++ b/reference/antimicrobial_selectors.md
@@ -669,7 +669,7 @@ example_isolates
# you can use the selectors separately to retrieve all possible antimicrobials:
carbapenems()
-#> ℹ in `?carbapenems()`: Imipenem/EDTA (IPE) and meropenem/nacubactam (MNC) are
+#> ℹ in `carbapenems()`: Imipenem/EDTA (IPE) and meropenem/nacubactam (MNC) are
#> not included since `only_treatable = TRUE`.
#> ℹ This vector was retrieved using `carbapenems()`, which should normally
#> be used inside a dplyr verb or call, e.g.:
@@ -777,7 +777,7 @@ identical(x, y) && identical(y, z)
# select columns 'IPM' (imipenem) and 'MEM' (meropenem)
example_isolates[, carbapenems()]
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> # A tibble: 2,000 × 2
#> IPM MEM
#>
@@ -795,8 +795,8 @@ example_isolates[, carbapenems()]
# select columns 'mo', 'AMK', 'GEN', 'KAN' and 'TOB'
example_isolates[, c("mo", aminoglycosides())]
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
#> # A tibble: 2,000 × 5
#> mo GEN TOB AMK KAN
#>
@@ -814,7 +814,7 @@ example_isolates[, c("mo", aminoglycosides())]
# select only antimicrobials with DDDs for oral treatment
example_isolates[, administrable_per_os()]
-#> ℹ For `?administrable_per_os()` using columns OXA (oxacillin), FLC
+#> ℹ For `administrable_per_os()` using columns OXA (oxacillin), FLC
#> (flucloxacillin), AMX (amoxicillin), AMC (amoxicillin/clavulanic acid), AMP
#> (ampicillin), CXM (cefuroxime), KAN (kanamycin), TMP (trimethoprim), NIT
#> (nitrofurantoin), FOS (fosfomycin), LNZ (linezolid), CIP (ciprofloxacin), MFX
@@ -840,7 +840,7 @@ example_isolates[, administrable_per_os()]
# filter using any() or all()
example_isolates[any(carbapenems() == "R"), ]
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> # A tibble: 55 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#>
@@ -862,7 +862,7 @@ example_isolates[any(carbapenems() == "R"), ]
#> # TCY , TGC , DOX , ERY , CLI , AZM ,
#> # IPM , MEM , MTR , CHL , COL , MUP , …
subset(example_isolates, any(carbapenems() == "R"))
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> # A tibble: 55 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#>
@@ -886,7 +886,7 @@ subset(example_isolates, any(carbapenems() == "R"))
# filter on any or all results in the carbapenem columns (i.e., IPM, MEM):
example_isolates[any(carbapenems()), ]
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> ℹ Filtering any of columns 'IPM' and 'MEM' to contain value "S", "I" or "R"
#> # A tibble: 962 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
@@ -909,7 +909,7 @@ example_isolates[any(carbapenems()), ]
#> # TCY , TGC , DOX , ERY , CLI , AZM ,
#> # IPM , MEM , MTR , CHL , COL , MUP , …
example_isolates[all(carbapenems()), ]
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> ℹ Filtering all of columns 'IPM' and 'MEM' to contain value "S", "I" or "R"
#> # A tibble: 756 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
@@ -934,9 +934,9 @@ example_isolates[all(carbapenems()), ]
# filter with multiple antimicrobial selectors using c()
example_isolates[all(c(carbapenems(), aminoglycosides()) == "R"), ]
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
#> # A tibble: 26 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#>
@@ -960,8 +960,8 @@ example_isolates[all(c(carbapenems(), aminoglycosides()) == "R"), ]
# filter + select in one go: get penicillins in carbapenem-resistant strains
example_isolates[any(carbapenems() == "R"), penicillins()]
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
-#> ℹ For `?penicillins()` using columns PEN (benzylpenicillin), OXA (oxacillin),
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `penicillins()` using columns PEN (benzylpenicillin), OXA (oxacillin),
#> FLC (flucloxacillin), AMX (amoxicillin), AMC (amoxicillin/clavulanic acid),
#> AMP (ampicillin), and TZP (piperacillin/tazobactam)
#> # A tibble: 55 × 7
@@ -985,10 +985,10 @@ example_isolates[any(carbapenems() == "R"), penicillins()]
# drugs are both omitted since benzylpenicillin is not administrable per os
# and erythromycin is not a penicillin:
example_isolates[, penicillins() & administrable_per_os()]
-#> ℹ For `?penicillins()` using columns PEN (benzylpenicillin), OXA (oxacillin),
+#> ℹ For `penicillins()` using columns PEN (benzylpenicillin), OXA (oxacillin),
#> FLC (flucloxacillin), AMX (amoxicillin), AMC (amoxicillin/clavulanic acid),
#> AMP (ampicillin), and TZP (piperacillin/tazobactam)
-#> ℹ For `?administrable_per_os()` using columns OXA (oxacillin), FLC
+#> ℹ For `administrable_per_os()` using columns OXA (oxacillin), FLC
#> (flucloxacillin), AMX (amoxicillin), AMC (amoxicillin/clavulanic acid), AMP
#> (ampicillin), CXM (cefuroxime), KAN (kanamycin), TMP (trimethoprim), NIT
#> (nitrofurantoin), FOS (fosfomycin), LNZ (linezolid), CIP (ciprofloxacin), MFX
@@ -1014,7 +1014,7 @@ example_isolates[, penicillins() & administrable_per_os()]
# very flexible. For instance, to select antimicrobials with an oral DDD
# of at least 1 gram:
example_isolates[, amr_selector(oral_ddd > 1 & oral_units == "g")]
-#> ℹ For `?amr_selector(oral_ddd > 1 & oral_units == "g")` using columns OXA
+#> ℹ For `amr_selector(oral_ddd > 1 & oral_units == "g")` using columns OXA
#> (oxacillin), FLC (flucloxacillin), AMX (amoxicillin), AMC
#> (amoxicillin/clavulanic acid), AMP (ampicillin), KAN (kanamycin), FOS
#> (fosfomycin), LNZ (linezolid), VAN (vancomycin), ERY (erythromycin), CLI
@@ -1058,17 +1058,17 @@ if (require("data.table")) {
#> The following objects are masked from ‘package:AMR’:
#>
#> %like%, like
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> Warning: It should never be needed to print an antimicrobial selector class. Are you
#> using data.table? Then add the argument `with = FALSE`, see our examples at
-#> `?amr_selector()`.
+#> `amr_selector()`.
#> Class
#> [1] IPM MEM
if (require("data.table")) {
# so `with = FALSE` is required
dt[, carbapenems(), with = FALSE]
}
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> IPM MEM
#>
#> 1:
@@ -1087,8 +1087,8 @@ if (require("data.table")) {
if (require("data.table")) {
dt[, c("mo", aminoglycosides())]
}
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
#> mo GEN TOB AMK KAN
#>
#> 1: B_ESCHR_COLI
@@ -1105,9 +1105,9 @@ if (require("data.table")) {
if (require("data.table")) {
dt[, c(carbapenems(), aminoglycosides())]
}
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
#> IPM MEM GEN TOB AMK KAN
#>
#> 1:
@@ -1126,7 +1126,7 @@ if (require("data.table")) {
if (require("data.table")) {
dt[any(carbapenems() == "S"), ]
}
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> date patient age gender ward mo PEN OXA FLC
#>
#> 1: 2002-01-19 738003 71 M Clinical B_ESCHR_COLI R
@@ -1195,8 +1195,8 @@ if (require("data.table")) {
if (require("data.table")) {
dt[any(carbapenems() == "S"), penicillins(), with = FALSE]
}
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
-#> ℹ For `?penicillins()` using columns PEN (benzylpenicillin), OXA (oxacillin),
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `penicillins()` using columns PEN (benzylpenicillin), OXA (oxacillin),
#> FLC (flucloxacillin), AMX (amoxicillin), AMC (amoxicillin/clavulanic acid),
#> AMP (ampicillin), and TZP (piperacillin/tazobactam)
#> PEN OXA FLC AMX AMC AMP TZP
diff --git a/reference/antimicrobials.html b/reference/antimicrobials.html
index 34a24b0d0..ea8abf99f 100644
--- a/reference/antimicrobials.html
+++ b/reference/antimicrobials.html
@@ -9,7 +9,7 @@ The antibiotics data set has been renamed to antimicrobials. The old name will b
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/as.ab.html b/reference/as.ab.html
index f9b48de1f..99443a4ca 100644
--- a/reference/as.ab.html
+++ b/reference/as.ab.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -191,16 +191,16 @@
#> # A tibble: 2,000 × 46
#> date patient age gender ward mo J01CE01 J01CF04 J01CF05
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir>
-#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA
-#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA
-#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R
-#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R
-#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R
-#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R
-#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S
-#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S
-#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R
-#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S
+#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA
+#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA
+#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R
+#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R
+#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R
+#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R
+#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S
+#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S
+#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R
+#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S
#> # ℹ 1,990 more rows
#> # ℹ 37 more variables: J01CA04 <sir>, J01CR02 <sir>, J01CA01 <sir>,
#> # J01CR05 <sir>, J01DB04 <sir>, J01DE01 <sir>, J01DC02 <sir>, J01DC01 <sir>,
diff --git a/reference/as.av.html b/reference/as.av.html
index 33c9da6b6..a3540f14e 100644
--- a/reference/as.av.html
+++ b/reference/as.av.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/as.disk.html b/reference/as.disk.html
index 7ef525246..e7b9ef326 100644
--- a/reference/as.disk.html
+++ b/reference/as.disk.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/as.mic.html b/reference/as.mic.html
index aa36d5f73..c1d850424 100644
--- a/reference/as.mic.html
+++ b/reference/as.mic.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/as.mo.html b/reference/as.mo.html
index 049b31cf6..29027bf23 100644
--- a/reference/as.mo.html
+++ b/reference/as.mo.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/as.sir.html b/reference/as.sir.html
index ad35d576a..7c88d20df 100644
--- a/reference/as.sir.html
+++ b/reference/as.sir.html
@@ -9,7 +9,7 @@ Breakpoints are currently implemented from EUCAST 2011-2025 and CLSI 2011-2025,
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -351,16 +351,16 @@ Breakpoints are currently implemented from EUCAST 2011-2025 and CLSI 2011-2025,
#> # A tibble: 2,000 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
+#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
#> # ℹ 1,990 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
@@ -424,10 +424,10 @@ Breakpoints are currently implemented from EUCAST 2011-2025 and CLSI 2011-2025,
#> # 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>
@@ -435,15 +435,14 @@ Breakpoints are currently implemented from EUCAST 2011-2025 and CLSI 2011-2025,
# \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
@@ -556,7 +555,7 @@ Breakpoints are currently implemented from EUCAST 2011-2025 and CLSI 2011-2025,
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:
@@ -582,11 +581,6 @@ Breakpoints are currently implemented from EUCAST 2011-2025 and CLSI 2011-2025,
#> 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:
@@ -627,7 +621,7 @@ Breakpoints are currently implemented from EUCAST 2011-2025 and CLSI 2011-2025,
# 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>
@@ -636,11 +630,11 @@ Breakpoints are currently implemented from EUCAST 2011-2025 and CLSI 2011-2025,
#> [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
@@ -679,16 +673,16 @@ Breakpoints are currently implemented from EUCAST 2011-2025 and CLSI 2011-2025,
#> # A tibble: 2,000 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
+#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
#> # ℹ 1,990 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
diff --git a/reference/as.sir.md b/reference/as.sir.md
index d46dad1dc..50f03a59c 100644
--- a/reference/as.sir.md
+++ b/reference/as.sir.md
@@ -660,10 +660,10 @@ sir_interpretation_history()
#> # A tibble: 4 × 18
#> datetime index method ab_given mo_given host_given input_given
#>
-#> 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 , mo , host , input ,
#> # outcome , notes , guideline , ref_table , uti ,
#> # breakpoint_S_R , site
@@ -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
#> [1] S SDD I R NI
@@ -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
#> [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
#> [1] R I S
diff --git a/reference/atc_online.html b/reference/atc_online.html
index d152d510f..d5cdf56ea 100644
--- a/reference/atc_online.html
+++ b/reference/atc_online.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -135,10 +135,10 @@
atc_online_property ( "J01CA04" , property = "groups" ) # search hierarchical groups of amoxicillin
}
#> Loading required namespace: rvest
-#> ℹ `?atc_online_property()`: no properties found for ATC QG51AA03. Please check
+#> ℹ `atc_online_property()`: no properties found for ATC QG51AA03. Please check
#> <https://atcddd.fhi.no/atcvet/atcvet_index/?code=QG51AA03&showdescription=no
#> this WHOCC webpage> .
-#> ℹ `?atc_online_property()`: no properties found for ATC QJ01CA04. Please check
+#> ℹ `atc_online_property()`: no properties found for ATC QJ01CA04. Please check
#> <https://atcddd.fhi.no/atcvet/atcvet_index/?code=QJ01CA04&showdescription=no
#> this WHOCC webpage> .
#> [1] "ANTIINFECTIVES FOR SYSTEMIC USE"
diff --git a/reference/atc_online.md b/reference/atc_online.md
index b331c8ad6..16ebfd9bf 100644
--- a/reference/atc_online.md
+++ b/reference/atc_online.md
@@ -117,10 +117,10 @@ if (requireNamespace("curl") && requireNamespace("rvest") && requireNamespace("x
atc_online_property("J01CA04", property = "groups") # search hierarchical groups of amoxicillin
}
#> Loading required namespace: rvest
-#> ℹ `?atc_online_property()`: no properties found for ATC QG51AA03. Please check
+#> ℹ `atc_online_property()`: no properties found for ATC QG51AA03. Please check
#> this WHOCC webpage>.
-#> ℹ `?atc_online_property()`: no properties found for ATC QJ01CA04. Please check
+#> ℹ `atc_online_property()`: no properties found for ATC QJ01CA04. Please check
#> this WHOCC webpage>.
#> [1] "ANTIINFECTIVES FOR SYSTEMIC USE"
diff --git a/reference/av_from_text.html b/reference/av_from_text.html
index 2700b5ac6..b35c8ca2b 100644
--- a/reference/av_from_text.html
+++ b/reference/av_from_text.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/av_property.html b/reference/av_property.html
index a9b06c535..6b06e0872 100644
--- a/reference/av_property.html
+++ b/reference/av_property.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/availability.html b/reference/availability.html
index b4f215a76..935dc6a43 100644
--- a/reference/availability.html
+++ b/reference/availability.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -82,9 +82,9 @@
Examples
availability ( example_isolates )
-#> ℹ `?resistance()` assumes the EUCAST guideline and thus considers the 'I'
+#> ℹ `resistance()` assumes the EUCAST guideline and thus considers the 'I'
#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
-#> option to either "CLSI" or "EUCAST", see AMR-options.
+#> option to either "CLSI" or "EUCAST", see `?AMR-options`.
#> ℹ This message will be shown once per session.
#> count available visual_availabilty resistant visual_resistance
#> date 2000 100.0% |####################|
diff --git a/reference/availability.md b/reference/availability.md
index 42f878232..7514d1305 100644
--- a/reference/availability.md
+++ b/reference/availability.md
@@ -41,9 +41,9 @@ calculated with
``` r
availability(example_isolates)
-#> ℹ `?resistance()` assumes the EUCAST guideline and thus considers the 'I'
+#> ℹ `resistance()` assumes the EUCAST guideline and thus considers the 'I'
#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
-#> option to either "CLSI" or "EUCAST", see AMR-options.
+#> option to either "CLSI" or "EUCAST", see `?AMR-options`.
#> ℹ This message will be shown once per session.
#> count available visual_availabilty resistant visual_resistance
#> date 2000 100.0% |####################|
diff --git a/reference/bug_drug_combinations.html b/reference/bug_drug_combinations.html
index 0bb420103..6386897a9 100644
--- a/reference/bug_drug_combinations.html
+++ b/reference/bug_drug_combinations.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -142,16 +142,16 @@
#> # A tibble: 2,000 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
+#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
#> # ℹ 1,990 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
diff --git a/reference/clinical_breakpoints.html b/reference/clinical_breakpoints.html
index 4357d696d..fd02954f9 100644
--- a/reference/clinical_breakpoints.html
+++ b/reference/clinical_breakpoints.html
@@ -21,7 +21,7 @@ Use as.sir() to transform MICs or disks measurements to SIR values."> AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/count.html b/reference/count.html
index 445a2ca44..10d7a94d1 100644
--- a/reference/count.html
+++ b/reference/count.html
@@ -9,7 +9,7 @@ count_resistant() should be used to count resistant isolates, count_susceptible(
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -174,15 +174,15 @@ count_resistant() should be used to count resistant isolates, count_susceptible(
# base R ------------------------------------------------------------
count_resistant ( example_isolates $ AMX ) # counts "R"
-#> ℹ `?count_resistant()` assumes the EUCAST guideline and thus considers the 'I'
+#> ℹ `count_resistant()` assumes the EUCAST guideline and thus considers the 'I'
#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
-#> option to either "CLSI" or "EUCAST", see AMR-options.
+#> option to either "CLSI" or "EUCAST", see `?AMR-options`.
#> ℹ This message will be shown once per session.
#> [1] 804
count_susceptible ( example_isolates $ AMX ) # counts "S" and "I"
-#> ℹ `?count_susceptible()` assumes the EUCAST guideline and thus considers the
-#> 'I' category susceptible. Set the `guideline` argument or the `AMR_guideline`
-#> option to either "CLSI" or "EUCAST", see AMR-options.
+#> ℹ `count_susceptible()` assumes the EUCAST guideline and thus considers the 'I'
+#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
+#> option to either "CLSI" or "EUCAST", see `?AMR-options`.
#> ℹ This message will be shown once per session.
#> [1] 546
count_all ( example_isolates $ AMX ) # counts "S", "I" and "R"
@@ -213,9 +213,9 @@ count_resistant() should be used to count resistant isolates, count_susceptible(
count_susceptible ( example_isolates $ AMX )
#> [1] 546
susceptibility ( example_isolates $ AMX ) * n_sir ( example_isolates $ AMX )
-#> ℹ `?susceptibility()` assumes the EUCAST guideline and thus considers the 'I'
+#> ℹ `susceptibility()` assumes the EUCAST guideline and thus considers the 'I'
#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
-#> option to either "CLSI" or "EUCAST", see AMR-options.
+#> option to either "CLSI" or "EUCAST", see `?AMR-options`.
#> ℹ This message will be shown once per session.
#> [1] 546
@@ -262,8 +262,8 @@ count_resistant() should be used to count resistant isolates, count_susceptible(
group_by ( ward ) %>%
count_df ( translate = FALSE )
}
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
#> # A tibble: 12 × 4
#> ward antibiotic interpretation value
#> <chr> <chr> <ord> <int>
diff --git a/reference/count.md b/reference/count.md
index 5fd093e77..61edc7d9d 100644
--- a/reference/count.md
+++ b/reference/count.md
@@ -188,15 +188,15 @@ calculate microbial resistance and susceptibility.
# base R ------------------------------------------------------------
count_resistant(example_isolates$AMX) # counts "R"
-#> ℹ `?count_resistant()` assumes the EUCAST guideline and thus considers the 'I'
+#> ℹ `count_resistant()` assumes the EUCAST guideline and thus considers the 'I'
#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
-#> option to either "CLSI" or "EUCAST", see AMR-options.
+#> option to either "CLSI" or "EUCAST", see `?AMR-options`.
#> ℹ This message will be shown once per session.
#> [1] 804
count_susceptible(example_isolates$AMX) # counts "S" and "I"
-#> ℹ `?count_susceptible()` assumes the EUCAST guideline and thus considers the
-#> 'I' category susceptible. Set the `guideline` argument or the `AMR_guideline`
-#> option to either "CLSI" or "EUCAST", see AMR-options.
+#> ℹ `count_susceptible()` assumes the EUCAST guideline and thus considers the 'I'
+#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
+#> option to either "CLSI" or "EUCAST", see `?AMR-options`.
#> ℹ This message will be shown once per session.
#> [1] 546
count_all(example_isolates$AMX) # counts "S", "I" and "R"
@@ -227,9 +227,9 @@ n_sir(example_isolates$AMX)
count_susceptible(example_isolates$AMX)
#> [1] 546
susceptibility(example_isolates$AMX) * n_sir(example_isolates$AMX)
-#> ℹ `?susceptibility()` assumes the EUCAST guideline and thus considers the 'I'
+#> ℹ `susceptibility()` assumes the EUCAST guideline and thus considers the 'I'
#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
-#> option to either "CLSI" or "EUCAST", see AMR-options.
+#> option to either "CLSI" or "EUCAST", see `?AMR-options`.
#> ℹ This message will be shown once per session.
#> [1] 546
@@ -276,8 +276,8 @@ if (require("dplyr")) {
group_by(ward) %>%
count_df(translate = FALSE)
}
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
#> # A tibble: 12 × 4
#> ward antibiotic interpretation value
#>
diff --git a/reference/custom_eucast_rules.html b/reference/custom_eucast_rules.html
index 0d351a9da..b56f83619 100644
--- a/reference/custom_eucast_rules.html
+++ b/reference/custom_eucast_rules.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/custom_mdro_guideline.html b/reference/custom_mdro_guideline.html
index 25e648efd..565d2e5b1 100644
--- a/reference/custom_mdro_guideline.html
+++ b/reference/custom_mdro_guideline.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -245,8 +245,7 @@
#> Results will be of class 'factor', with ordered levels: Negative < Custom MDRO 1 < Custom MDRO 2
out <- mdro ( example_isolates , guideline = my_guideline )
-#> ℹ For `?cephalosporins_2nd()` using columns CXM (cefuroxime) and FOX
-#> (cefoxitin)
+#> ℹ For `cephalosporins_2nd()` using columns CXM (cefuroxime) and FOX (cefoxitin)
#> ℹ Assuming a filter on all 2 cephalosporins_2nd. Wrap around `all()` or `any()`
#> to prevent this note.
table ( out )
diff --git a/reference/custom_mdro_guideline.md b/reference/custom_mdro_guideline.md
index 4001e47b5..be83b2236 100644
--- a/reference/custom_mdro_guideline.md
+++ b/reference/custom_mdro_guideline.md
@@ -526,8 +526,7 @@ my_guideline
#> Results will be of class 'factor', with ordered levels: Negative < Custom MDRO 1 < Custom MDRO 2
out <- mdro(example_isolates, guideline = my_guideline)
-#> ℹ For `?cephalosporins_2nd()` using columns CXM (cefuroxime) and FOX
-#> (cefoxitin)
+#> ℹ For `cephalosporins_2nd()` using columns CXM (cefuroxime) and FOX (cefoxitin)
#> ℹ Assuming a filter on all 2 cephalosporins_2nd. Wrap around `all()` or `any()`
#> to prevent this note.
table(out)
diff --git a/reference/dosage.html b/reference/dosage.html
index a0ad0b7a7..f741755ca 100644
--- a/reference/dosage.html
+++ b/reference/dosage.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/esbl_isolates.html b/reference/esbl_isolates.html
index cfd40ed8d..025954901 100644
--- a/reference/esbl_isolates.html
+++ b/reference/esbl_isolates.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -75,16 +75,16 @@
#> # A tibble: 500 × 19
#> esbl genus AMC AMP TZP CXM FOX CTX CAZ GEN TOB TMP SXT
#> <lgl> <chr> <mic> <mic> <mic> <mic> <mic> <mic> <mic> <mic> <mic> <mic> <mic>
-#> 1 FALSE Esch… 32 32 4 64 64 8.00 8.00 1 1 16.0 20
-#> 2 FALSE Esch… 32 32 4 64 64 4.00 8.00 1 1 16.0 320
-#> 3 FALSE Esch… 4 2 64 8 4 8.00 0.12 16 16 0.5 20
-#> 4 FALSE Kleb… 32 32 16 64 64 8.00 8.00 1 1 0.5 20
-#> 5 FALSE Esch… 32 32 4 4 4 0.25 2.00 1 1 16.0 320
-#> 6 FALSE Citr… 32 32 16 64 64 64.00 32.00 1 1 0.5 20
-#> 7 FALSE Morg… 32 32 4 64 64 16.00 2.00 1 1 0.5 20
-#> 8 FALSE Prot… 16 32 4 1 4 8.00 0.12 1 1 16.0 320
-#> 9 FALSE Ente… 32 32 8 64 64 32.00 4.00 1 1 0.5 20
-#> 10 FALSE Citr… 32 32 32 64 64 8.00 64.00 1 1 16.0 320
+#> 1 FALSE Esch… 32 32 4 64 64 8.00 8.00 1 1 16.0 20
+#> 2 FALSE Esch… 32 32 4 64 64 4.00 8.00 1 1 16.0 320
+#> 3 FALSE Esch… 4 2 64 8 4 8.00 0.12 16 16 0.5 20
+#> 4 FALSE Kleb… 32 32 16 64 64 8.00 8.00 1 1 0.5 20
+#> 5 FALSE Esch… 32 32 4 4 4 0.25 2.00 1 1 16.0 320
+#> 6 FALSE Citr… 32 32 16 64 64 64.00 32.00 1 1 0.5 20
+#> 7 FALSE Morg… 32 32 4 64 64 16.00 2.00 1 1 0.5 20
+#> 8 FALSE Prot… 16 32 4 1 4 8.00 0.12 1 1 16.0 320
+#> 9 FALSE Ente… 32 32 8 64 64 32.00 4.00 1 1 0.5 20
+#> 10 FALSE Citr… 32 32 32 64 64 8.00 64.00 1 1 16.0 320
#> # ℹ 490 more rows
#> # ℹ 6 more variables: NIT <mic>, FOS <mic>, CIP <mic>, IPM <mic>, MEM <mic>,
#> # COL <mic>
diff --git a/reference/example_isolates.html b/reference/example_isolates.html
index 43afa1993..90a7c8dd3 100644
--- a/reference/example_isolates.html
+++ b/reference/example_isolates.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -83,16 +83,16 @@
#> # A tibble: 2,000 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
+#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
#> # ℹ 1,990 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
diff --git a/reference/example_isolates_unclean.html b/reference/example_isolates_unclean.html
index 7a340932e..164cedbbd 100644
--- a/reference/example_isolates_unclean.html
+++ b/reference/example_isolates_unclean.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/export_ncbi_biosample.html b/reference/export_ncbi_biosample.html
index f4d846e8d..d4a01faae 100644
--- a/reference/export_ncbi_biosample.html
+++ b/reference/export_ncbi_biosample.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/first_isolate.html b/reference/first_isolate.html
index 615dd8340..7082e0e98 100644
--- a/reference/first_isolate.html
+++ b/reference/first_isolate.html
@@ -9,7 +9,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -211,25 +211,25 @@
example_isolates [ first_isolate ( info = TRUE ) , ]
#> ℹ Determining first isolates using an episode length of 365 days
-#> ℹ Using column 'date ' as input for `col_date`.
-#> ℹ Using column 'patient ' as input for `col_patient_id`.
+#> ℹ Using column date as input for `col_date`.
+#> ℹ Using column patient as input for `col_patient_id`.
#> ℹ Basing inclusion on all antimicrobial results, using a points threshold of 2
-#> ℹ Excluding 16 isolates with a microbial ID 'UNKNOWN' (in column 'mo ')
+#> ℹ Excluding 16 isolates with a microbial ID 'UNKNOWN' (in column mo )
#> => Found 1,387 'phenotype-based' first isolates (69.4% of total where a
#> microbial ID was available)
#> # A tibble: 1,387 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 2 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 3 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 4 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 5 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
-#> 6 2002-01-17 495616 67 M Clinical B_ STPHY_ EPDR R NA S NA
-#> 7 2002-01-19 738003 71 M Clinical B_ ESCHR_ COLI R NA NA NA
-#> 8 2002-01-21 462081 75 F Clinical B_ CTRBC_ FRND R NA NA R
-#> 9 2002-01-22 F35553 50 M ICU B_ PROTS_ MRBL R NA NA NA
-#> 10 2002-02-03 481442 76 M ICU B_ STPHY_ CONS R NA S NA
+#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 2 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 3 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 4 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 5 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
+#> 6 2002-01-17 495616 67 M Clinical B_ STPHY_ EPDR R NA S NA
+#> 7 2002-01-19 738003 71 M Clinical B_ ESCHR_ COLI R NA NA NA
+#> 8 2002-01-21 462081 75 F Clinical B_ CTRBC_ FRND R NA NA R
+#> 9 2002-01-22 F35553 50 M ICU B_ PROTS_ MRBL R NA NA NA
+#> 10 2002-02-03 481442 76 M ICU B_ STPHY_ CONS R NA S NA
#> # ℹ 1,377 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
@@ -240,20 +240,20 @@
# \donttest{
# get all first Gram-negatives
example_isolates [ which ( first_isolate ( info = FALSE ) & mo_is_gram_negative ( ) ) , ]
-#> ℹ Using column 'mo ' as input for `?mo_is_gram_negative()`
+#> ℹ Using column mo as input for `mo_is_gram_negative()`
#> # A tibble: 441 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 2 2002-01-19 738003 71 M Clinical B_ ESCHR_ COLI R NA NA NA
-#> 3 2002-01-21 462081 75 F Clinical B_ CTRBC_ FRND R NA NA R
-#> 4 2002-01-22 F35553 50 M ICU B_ PROTS_ MRBL R NA NA NA
-#> 5 2002-02-05 067927 45 F ICU B_ SERRT_ MRCS R NA NA R
-#> 6 2002-02-27 066895 85 F Clinical B_ KLBSL_ PNMN R NA NA R
-#> 7 2002-03-08 4FC193 69 M Clinical B_ ESCHR_ COLI R NA NA R
-#> 8 2002-03-16 4FC193 69 M Clinical B_ PSDMN_ AERG R NA NA R
-#> 9 2002-04-01 496896 46 F ICU B_ ESCHR_ COLI R NA NA NA
-#> 10 2002-04-23 EE2510 69 F ICU B_ ESCHR_ COLI R NA NA NA
+#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 2 2002-01-19 738003 71 M Clinical B_ ESCHR_ COLI R NA NA NA
+#> 3 2002-01-21 462081 75 F Clinical B_ CTRBC_ FRND R NA NA R
+#> 4 2002-01-22 F35553 50 M ICU B_ PROTS_ MRBL R NA NA NA
+#> 5 2002-02-05 067927 45 F ICU B_ SERRT_ MRCS R NA NA R
+#> 6 2002-02-27 066895 85 F Clinical B_ KLBSL_ PNMN R NA NA R
+#> 7 2002-03-08 4FC193 69 M Clinical B_ ESCHR_ COLI R NA NA R
+#> 8 2002-03-16 4FC193 69 M Clinical B_ PSDMN_ AERG R NA NA R
+#> 9 2002-04-01 496896 46 F ICU B_ ESCHR_ COLI R NA NA NA
+#> 10 2002-04-23 EE2510 69 F ICU B_ ESCHR_ COLI R NA NA NA
#> # ℹ 431 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
@@ -269,22 +269,22 @@
}
#> ℹ Determining first isolates using an episode length of 365 days
#> ℹ Basing inclusion on all antimicrobial results, using a points threshold of 2
-#> ℹ Excluding 16 isolates with a microbial ID 'UNKNOWN' (in column 'mo ')
+#> ℹ Excluding 16 isolates with a microbial ID 'UNKNOWN' (in column mo )
#> => Found 1,387 'phenotype-based' first isolates (69.4% of total where a
#> microbial ID was available)
#> # A tibble: 1,387 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 2 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 3 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 4 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 5 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
-#> 6 2002-01-17 495616 67 M Clinical B_ STPHY_ EPDR R NA S NA
-#> 7 2002-01-19 738003 71 M Clinical B_ ESCHR_ COLI R NA NA NA
-#> 8 2002-01-21 462081 75 F Clinical B_ CTRBC_ FRND R NA NA R
-#> 9 2002-01-22 F35553 50 M ICU B_ PROTS_ MRBL R NA NA NA
-#> 10 2002-02-03 481442 76 M ICU B_ STPHY_ CONS R NA S NA
+#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 2 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 3 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 4 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 5 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
+#> 6 2002-01-17 495616 67 M Clinical B_ STPHY_ EPDR R NA S NA
+#> 7 2002-01-19 738003 71 M Clinical B_ ESCHR_ COLI R NA NA NA
+#> 8 2002-01-21 462081 75 F Clinical B_ CTRBC_ FRND R NA NA R
+#> 9 2002-01-22 F35553 50 M ICU B_ PROTS_ MRBL R NA NA NA
+#> 10 2002-02-03 481442 76 M ICU B_ STPHY_ CONS R NA S NA
#> # ℹ 1,377 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
@@ -300,16 +300,16 @@
#> # A tibble: 1,387 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 2 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 3 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 4 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 5 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
-#> 6 2002-01-17 495616 67 M Clinical B_ STPHY_ EPDR R NA S NA
-#> 7 2002-01-19 738003 71 M Clinical B_ ESCHR_ COLI R NA NA NA
-#> 8 2002-01-21 462081 75 F Clinical B_ CTRBC_ FRND R NA NA R
-#> 9 2002-01-22 F35553 50 M ICU B_ PROTS_ MRBL R NA NA NA
-#> 10 2002-02-03 481442 76 M ICU B_ STPHY_ CONS R NA S NA
+#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 2 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 3 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 4 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 5 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
+#> 6 2002-01-17 495616 67 M Clinical B_ STPHY_ EPDR R NA S NA
+#> 7 2002-01-19 738003 71 M Clinical B_ ESCHR_ COLI R NA NA NA
+#> 8 2002-01-21 462081 75 F Clinical B_ CTRBC_ FRND R NA NA R
+#> 9 2002-01-22 F35553 50 M ICU B_ PROTS_ MRBL R NA NA NA
+#> 10 2002-02-03 481442 76 M ICU B_ STPHY_ CONS R NA S NA
#> # ℹ 1,377 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
@@ -327,15 +327,15 @@
#> ℹ Determining first isolates using an episode length of 365 days
#> ℹ Basing inclusion on all antimicrobial results, using a points threshold of 2
#> Group: ward = "Clinical"
-#> ℹ Excluding 9 isolates with a microbial ID 'UNKNOWN' (in column 'mo ')
+#> ℹ Excluding 9 isolates with a microbial ID 'UNKNOWN' (in column mo )
#> => Found 865 'phenotype-based' first isolates (70.1% of total where a microbial
#> ID was available)
#> Group: ward = "ICU"
-#> ℹ Excluding 6 isolates with a microbial ID 'UNKNOWN' (in column 'mo ')
+#> ℹ Excluding 6 isolates with a microbial ID 'UNKNOWN' (in column mo )
#> => Found 452 'phenotype-based' first isolates (70.0% of total where a microbial
#> ID was available)
#> Group: ward = "Outpatient"
-#> ℹ Excluding 1 isolates with a microbial ID 'UNKNOWN' (in column 'mo ')
+#> ℹ Excluding 1 isolates with a microbial ID 'UNKNOWN' (in column mo )
#> => Found 99 'phenotype-based' first isolates (82.5% of total where a microbial
#> ID was available)
#> # A tibble: 2,000 × 5
diff --git a/reference/first_isolate.md b/reference/first_isolate.md
index 75f74819a..76d8930e5 100644
--- a/reference/first_isolate.md
+++ b/reference/first_isolate.md
@@ -330,10 +330,10 @@ method is applied at default.
example_isolates[first_isolate(info = TRUE), ]
#> ℹ Determining first isolates using an episode length of 365 days
-#> ℹ Using column 'date' as input for `col_date`.
-#> ℹ Using column 'patient' as input for `col_patient_id`.
+#> ℹ Using column date as input for `col_date`.
+#> ℹ Using column patient as input for `col_patient_id`.
#> ℹ Basing inclusion on all antimicrobial results, using a points threshold of 2
-#> ℹ Excluding 16 isolates with a microbial ID 'UNKNOWN' (in column 'mo')
+#> ℹ Excluding 16 isolates with a microbial ID 'UNKNOWN' (in column mo)
#> => Found 1,387 'phenotype-based' first isolates (69.4% of total where a
#> microbial ID was available)
#> # A tibble: 1,387 × 46
@@ -359,7 +359,7 @@ example_isolates[first_isolate(info = TRUE), ]
# \donttest{
# get all first Gram-negatives
example_isolates[which(first_isolate(info = FALSE) & mo_is_gram_negative()), ]
-#> ℹ Using column 'mo' as input for `?mo_is_gram_negative()`
+#> ℹ Using column mo as input for `mo_is_gram_negative()`
#> # A tibble: 441 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#>
@@ -388,7 +388,7 @@ if (require("dplyr")) {
}
#> ℹ Determining first isolates using an episode length of 365 days
#> ℹ Basing inclusion on all antimicrobial results, using a points threshold of 2
-#> ℹ Excluding 16 isolates with a microbial ID 'UNKNOWN' (in column 'mo')
+#> ℹ Excluding 16 isolates with a microbial ID 'UNKNOWN' (in column mo)
#> => Found 1,387 'phenotype-based' first isolates (69.4% of total where a
#> microbial ID was available)
#> # A tibble: 1,387 × 46
@@ -446,15 +446,15 @@ if (require("dplyr")) {
#> ℹ Determining first isolates using an episode length of 365 days
#> ℹ Basing inclusion on all antimicrobial results, using a points threshold of 2
#> Group: ward = "Clinical"
-#> ℹ Excluding 9 isolates with a microbial ID 'UNKNOWN' (in column 'mo')
+#> ℹ Excluding 9 isolates with a microbial ID 'UNKNOWN' (in column mo)
#> => Found 865 'phenotype-based' first isolates (70.1% of total where a microbial
#> ID was available)
#> Group: ward = "ICU"
-#> ℹ Excluding 6 isolates with a microbial ID 'UNKNOWN' (in column 'mo')
+#> ℹ Excluding 6 isolates with a microbial ID 'UNKNOWN' (in column mo)
#> => Found 452 'phenotype-based' first isolates (70.0% of total where a microbial
#> ID was available)
#> Group: ward = "Outpatient"
-#> ℹ Excluding 1 isolates with a microbial ID 'UNKNOWN' (in column 'mo')
+#> ℹ Excluding 1 isolates with a microbial ID 'UNKNOWN' (in column mo)
#> => Found 99 'phenotype-based' first isolates (82.5% of total where a microbial
#> ID was available)
#> # A tibble: 2,000 × 5
diff --git a/reference/g.test.html b/reference/g.test.html
index c2348d893..17e2fecb8 100644
--- a/reference/g.test.html
+++ b/reference/g.test.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/get_episode.html b/reference/get_episode.html
index 1b48f60b6..6c51a4149 100644
--- a/reference/get_episode.html
+++ b/reference/get_episode.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -174,7 +174,7 @@
#> # A tibble: 1 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2003-01-06 894506 83 M ICU B_ STRPT_ PNMN S NA NA S
+#> 1 2003-01-06 894506 83 M ICU B_ STRPT_ PNMN S NA NA S
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
#> # TOB <sir>, AMK <sir>, KAN <sir>, TMP <sir>, SXT <sir>, NIT <sir>,
diff --git a/reference/ggplot_pca.html b/reference/ggplot_pca.html
index 0621d2b6f..e1fe748ee 100644
--- a/reference/ggplot_pca.html
+++ b/reference/ggplot_pca.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/ggplot_sir.html b/reference/ggplot_sir.html
index af8951a23..cb6dd1a92 100644
--- a/reference/ggplot_sir.html
+++ b/reference/ggplot_sir.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -285,7 +285,7 @@
datalabels = FALSE
)
}
-#> ℹ Using column 'mo ' as input for `?mo_is_gram_negative()`
+#> ℹ Using column mo as input for `mo_is_gram_negative()`
# }
diff --git a/reference/ggplot_sir.md b/reference/ggplot_sir.md
index 8e5ebf9ac..b3ad606d2 100644
--- a/reference/ggplot_sir.md
+++ b/reference/ggplot_sir.md
@@ -295,7 +295,7 @@ if (require("ggplot2") && require("dplyr")) {
datalabels = FALSE
)
}
-#> ℹ Using column 'mo' as input for `?mo_is_gram_negative()`
+#> ℹ Using column mo as input for `mo_is_gram_negative()`
# }
```
diff --git a/reference/guess_ab_col.html b/reference/guess_ab_col.html
index 806047472..344a74364 100644
--- a/reference/guess_ab_col.html
+++ b/reference/guess_ab_col.html
@@ -7,7 +7,7 @@
AMR (for R)
-
3.0.1.9038
+
3.0.1.9040
@@ -101,12 +101,10 @@
#> [1] "tetr"
guess_ab_col ( df , "J01AA07" , verbose = TRUE )
-#> Auto-guessing columns suitable for analysis
-#> ...
#> OK.
-#> ℹ Using column 'amox ' as input for AMX (amoxicillin).
-#> ℹ Using column 'tetr ' as input for TCY (tetracycline).
-#> ℹ Using column 'tetr ' as input for J01AA07 (tetracycline).
+#> ℹ Using column amox as input for AMX (amoxicillin).
+#> ℹ Using column tetr as input for TCY (tetracycline).
+#> ℹ Using column tetr as input for J01AA07 (tetracycline).
#> [1] "tetr"
# WHONET codes
diff --git a/reference/guess_ab_col.md b/reference/guess_ab_col.md
index db49e87e6..753762944 100644
--- a/reference/guess_ab_col.md
+++ b/reference/guess_ab_col.md
@@ -61,12 +61,10 @@ guess_ab_col(df, "J01AA07") # ATC code of tetracycline
#> [1] "tetr"
guess_ab_col(df, "J01AA07", verbose = TRUE)
-#> Auto-guessing columns suitable for analysis
-#> ...
#> OK.
-#> ℹ Using column 'amox' as input for AMX (amoxicillin).
-#> ℹ Using column 'tetr' as input for TCY (tetracycline).
-#> ℹ Using column 'tetr' as input for J01AA07 (tetracycline).
+#> ℹ Using column amox as input for AMX (amoxicillin).
+#> ℹ Using column tetr as input for TCY (tetracycline).
+#> ℹ Using column tetr as input for J01AA07 (tetracycline).
#> [1] "tetr"
# WHONET codes
diff --git a/reference/index.html b/reference/index.html
index c6c597395..1f9961aca 100644
--- a/reference/index.html
+++ b/reference/index.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/interpretive_rules.html b/reference/interpretive_rules.html
index e5786e1b7..c122caf2e 100644
--- a/reference/interpretive_rules.html
+++ b/reference/interpretive_rules.html
@@ -9,7 +9,7 @@ To improve the interpretation of the antibiogram before CLSI/EUCAST interpretive
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -228,7 +228,7 @@ Leclercq et al. EUCAST expert rules in antimicrobial susceptibility test
# apply EUCAST rules: some results wil be changed
b <- eucast_rules ( a , overwrite = TRUE )
-#> Warning: in `?eucast_rules()`: not all columns with antimicrobial results are of class
+#> Warning: in `eucast_rules()`: not all columns with antimicrobial results are of class
#> <sir> . Transform them on beforehand, e.g.: - x %>% as.sir ( CXM: AMX) - x %>%
#> mutate_if ( is_sir_eligible, as.sir) - x %>%
#> mutate ( across ( where ( is_sir_eligible) , as.sir) )
@@ -245,7 +245,7 @@ Leclercq et al. EUCAST expert rules in antimicrobial susceptibility test
# do not apply EUCAST rules, but rather get a data.frame
# containing all details about the transformations:
c <- eucast_rules ( a , overwrite = TRUE , verbose = TRUE )
-#> Warning: in `?eucast_rules()`: not all columns with antimicrobial results are of class
+#> Warning: in `eucast_rules()`: not all columns with antimicrobial results are of class
#> <sir> . Transform them on beforehand, e.g.: - x %>% as.sir ( CXM: AMX) - x %>%
#> mutate_if ( is_sir_eligible, as.sir) - x %>%
#> mutate ( across ( where ( is_sir_eligible) , as.sir) )
diff --git a/reference/interpretive_rules.md b/reference/interpretive_rules.md
index 8fa954c73..a9440eb91 100644
--- a/reference/interpretive_rules.md
+++ b/reference/interpretive_rules.md
@@ -306,7 +306,7 @@ head(a)
# apply EUCAST rules: some results wil be changed
b <- eucast_rules(a, overwrite = TRUE)
-#> Warning: in `?eucast_rules()`: not all columns with antimicrobial results are of class
+#> Warning: in `eucast_rules()`: not all columns with antimicrobial results are of class
#> . Transform them on beforehand, e.g.: - x %>% as.sir(CXM:AMX) - x %>%
#> mutate_if(is_sir_eligible, as.sir) - x %>%
#> mutate(across(where(is_sir_eligible), as.sir))
@@ -323,7 +323,7 @@ head(b)
# do not apply EUCAST rules, but rather get a data.frame
# containing all details about the transformations:
c <- eucast_rules(a, overwrite = TRUE, verbose = TRUE)
-#> Warning: in `?eucast_rules()`: not all columns with antimicrobial results are of class
+#> Warning: in `eucast_rules()`: not all columns with antimicrobial results are of class
#> . Transform them on beforehand, e.g.: - x %>% as.sir(CXM:AMX) - x %>%
#> mutate_if(is_sir_eligible, as.sir) - x %>%
#> mutate(across(where(is_sir_eligible), as.sir))
diff --git a/reference/intrinsic_resistant.html b/reference/intrinsic_resistant.html
index 3997b04e6..464339f99 100644
--- a/reference/intrinsic_resistant.html
+++ b/reference/intrinsic_resistant.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/italicise_taxonomy.html b/reference/italicise_taxonomy.html
index d6fb2cb0b..30b849baf 100644
--- a/reference/italicise_taxonomy.html
+++ b/reference/italicise_taxonomy.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/join.html b/reference/join.html
index 21cf68c55..153fae526 100644
--- a/reference/join.html
+++ b/reference/join.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/key_antimicrobials.html b/reference/key_antimicrobials.html
index 11bb71594..1c960e522 100644
--- a/reference/key_antimicrobials.html
+++ b/reference/key_antimicrobials.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/kurtosis.html b/reference/kurtosis.html
index aa1589f14..947b4d853 100644
--- a/reference/kurtosis.html
+++ b/reference/kurtosis.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/like.html b/reference/like.html
index dbdf813b7..940db2c16 100644
--- a/reference/like.html
+++ b/reference/like.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -133,20 +133,20 @@
# \donttest{
# get isolates whose name start with 'Entero' (case-insensitive)
example_isolates [ which ( mo_name ( ) %like% "^entero" ) , ]
-#> ℹ Using column 'mo ' as input for `?mo_name()`
+#> ℹ Using column mo as input for `mo_name()`
#> # A tibble: 106 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2002-02-21 4FC193 69 M Clinic… B_ ENTRC_ FACM NA NA NA NA
-#> 2 2002-04-08 130252 78 M ICU B_ ENTRC_ FCLS NA NA NA NA
-#> 3 2002-06-23 798871 82 M Clinic… B_ ENTRC_ FCLS NA NA NA NA
-#> 4 2002-06-23 798871 82 M Clinic… B_ ENTRC_ FCLS NA NA NA NA
-#> 5 2003-04-20 6BC362 62 M ICU B_ ENTRC NA NA NA NA
-#> 6 2003-04-21 6BC362 62 M ICU B_ ENTRC NA NA NA NA
-#> 7 2003-08-13 F35553 52 M ICU B_ ENTRBC_ CLOC R NA NA R
-#> 8 2003-08-13 F35553 52 M ICU B_ ENTRC_ FCLS NA NA NA NA
-#> 9 2003-09-05 F35553 52 M ICU B_ ENTRC NA NA NA NA
-#> 10 2003-09-05 F35553 52 M ICU B_ ENTRBC_ CLOC R NA NA R
+#> 1 2002-02-21 4FC193 69 M Clinic… B_ ENTRC_ FACM NA NA NA NA
+#> 2 2002-04-08 130252 78 M ICU B_ ENTRC_ FCLS NA NA NA NA
+#> 3 2002-06-23 798871 82 M Clinic… B_ ENTRC_ FCLS NA NA NA NA
+#> 4 2002-06-23 798871 82 M Clinic… B_ ENTRC_ FCLS NA NA NA NA
+#> 5 2003-04-20 6BC362 62 M ICU B_ ENTRC NA NA NA NA
+#> 6 2003-04-21 6BC362 62 M ICU B_ ENTRC NA NA NA NA
+#> 7 2003-08-13 F35553 52 M ICU B_ ENTRBC_ CLOC R NA NA R
+#> 8 2003-08-13 F35553 52 M ICU B_ ENTRC_ FCLS NA NA NA NA
+#> 9 2003-09-05 F35553 52 M ICU B_ ENTRC NA NA NA NA
+#> 10 2003-09-05 F35553 52 M ICU B_ ENTRBC_ CLOC R NA NA R
#> # ℹ 96 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
@@ -159,20 +159,20 @@
example_isolates %>%
filter ( mo_name ( ) %like% "^ent" )
}
-#> ℹ Using column 'mo ' as input for `?mo_name()`
+#> ℹ Using column mo as input for `mo_name()`
#> # A tibble: 106 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2002-02-21 4FC193 69 M Clinic… B_ ENTRC_ FACM NA NA NA NA
-#> 2 2002-04-08 130252 78 M ICU B_ ENTRC_ FCLS NA NA NA NA
-#> 3 2002-06-23 798871 82 M Clinic… B_ ENTRC_ FCLS NA NA NA NA
-#> 4 2002-06-23 798871 82 M Clinic… B_ ENTRC_ FCLS NA NA NA NA
-#> 5 2003-04-20 6BC362 62 M ICU B_ ENTRC NA NA NA NA
-#> 6 2003-04-21 6BC362 62 M ICU B_ ENTRC NA NA NA NA
-#> 7 2003-08-13 F35553 52 M ICU B_ ENTRBC_ CLOC R NA NA R
-#> 8 2003-08-13 F35553 52 M ICU B_ ENTRC_ FCLS NA NA NA NA
-#> 9 2003-09-05 F35553 52 M ICU B_ ENTRC NA NA NA NA
-#> 10 2003-09-05 F35553 52 M ICU B_ ENTRBC_ CLOC R NA NA R
+#> 1 2002-02-21 4FC193 69 M Clinic… B_ ENTRC_ FACM NA NA NA NA
+#> 2 2002-04-08 130252 78 M ICU B_ ENTRC_ FCLS NA NA NA NA
+#> 3 2002-06-23 798871 82 M Clinic… B_ ENTRC_ FCLS NA NA NA NA
+#> 4 2002-06-23 798871 82 M Clinic… B_ ENTRC_ FCLS NA NA NA NA
+#> 5 2003-04-20 6BC362 62 M ICU B_ ENTRC NA NA NA NA
+#> 6 2003-04-21 6BC362 62 M ICU B_ ENTRC NA NA NA NA
+#> 7 2003-08-13 F35553 52 M ICU B_ ENTRBC_ CLOC R NA NA R
+#> 8 2003-08-13 F35553 52 M ICU B_ ENTRC_ FCLS NA NA NA NA
+#> 9 2003-09-05 F35553 52 M ICU B_ ENTRC NA NA NA NA
+#> 10 2003-09-05 F35553 52 M ICU B_ ENTRBC_ CLOC R NA NA R
#> # ℹ 96 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
diff --git a/reference/like.md b/reference/like.md
index 79978ea07..7ffe1650b 100644
--- a/reference/like.md
+++ b/reference/like.md
@@ -114,7 +114,7 @@ a %like% b[1]
# \donttest{
# get isolates whose name start with 'Entero' (case-insensitive)
example_isolates[which(mo_name() %like% "^entero"), ]
-#> ℹ Using column 'mo' as input for `?mo_name()`
+#> ℹ Using column mo as input for `mo_name()`
#> # A tibble: 106 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#>
@@ -140,7 +140,7 @@ if (require("dplyr")) {
example_isolates %>%
filter(mo_name() %like% "^ent")
}
-#> ℹ Using column 'mo' as input for `?mo_name()`
+#> ℹ Using column mo as input for `mo_name()`
#> # A tibble: 106 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#>
diff --git a/reference/mdro.html b/reference/mdro.html
index 936d9be6b..ced5a3c54 100644
--- a/reference/mdro.html
+++ b/reference/mdro.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -210,7 +210,7 @@ Ordered
Examples
out <- mdro ( example_isolates )
-#> Warning: in `?mdro()`: NA introduced for isolates where the available percentage of
+#> Warning: in `mdro()`: NA introduced for isolates where the available percentage of
#> antimicrobial classes was below 50% (set with `pct_required_classes`)
str ( out )
#> Ord.factor w/ 4 levels "Negative"<"Multi-drug-resistant (MDR)"<..: NA NA 1 1 1 1 NA NA 1 1 ...
@@ -237,7 +237,7 @@ Ordered #> Warning: There was 1 warning in `mutate()`.
#> ℹ In argument: `MDRO = mdro()`.
#> Caused by warning:
-#> ! in `?mdro()`: NA introduced for isolates where the available percentage of
+#> ! in `mdro()`: NA introduced for isolates where the available percentage of
#> antimicrobial classes was below 50% (set with `pct_required_classes`)
#> # A tibble: 3 × 2
#> MDRO n
diff --git a/reference/mdro.md b/reference/mdro.md
index c56911c7b..3e7433502 100644
--- a/reference/mdro.md
+++ b/reference/mdro.md
@@ -297,7 +297,7 @@ susceptible isolates.
``` r
out <- mdro(example_isolates)
-#> Warning: in `?mdro()`: NA introduced for isolates where the available percentage of
+#> Warning: in `mdro()`: NA introduced for isolates where the available percentage of
#> antimicrobial classes was below 50% (set with `pct_required_classes`)
str(out)
#> Ord.factor w/ 4 levels "Negative"<"Multi-drug-resistant (MDR)"<..: NA NA 1 1 1 1 NA NA 1 1 ...
@@ -324,7 +324,7 @@ if (require("dplyr")) {
#> Warning: There was 1 warning in `mutate()`.
#> ℹ In argument: `MDRO = mdro()`.
#> Caused by warning:
-#> ! in `?mdro()`: NA introduced for isolates where the available percentage of
+#> ! in `mdro()`: NA introduced for isolates where the available percentage of
#> antimicrobial classes was below 50% (set with `pct_required_classes`)
#> # A tibble: 3 × 2
#> MDRO n
diff --git a/reference/mean_amr_distance.html b/reference/mean_amr_distance.html
index 3894672a1..4367616b7 100644
--- a/reference/mean_amr_distance.html
+++ b/reference/mean_amr_distance.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -205,24 +205,24 @@
mutate ( dist = mean_amr_distance ( . ) ) %>%
arrange ( mo , dist )
}
-#> ℹ Using column 'mo ' as input for `?mo_genus()`
-#> ℹ Using column 'mo ' as input for `?mo_species()`
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ Using column mo as input for `mo_genus()`
+#> ℹ Using column mo as input for `mo_species()`
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> ℹ Calculating mean AMR distance based on columns "TCY", "IPM", and "MEM"
#> # A tibble: 63 × 5
#> # Groups: mo [4]
#> mo TCY IPM MEM dist
#> <mo> <sir> <sir> <sir> <dbl>
-#> 1 B_ ENTRC_ AVIM S S NA 0
-#> 2 B_ ENTRC_ AVIM S S NA 0
-#> 3 B_ ENTRC_ CSSL NA S NA NA
-#> 4 B_ ENTRC_ FACM S S NA -2.66
+#> 1 B_ ENTRC_ AVIM S S NA 0
+#> 2 B_ ENTRC_ AVIM S S NA 0
+#> 3 B_ ENTRC_ CSSL NA S NA NA
+#> 4 B_ ENTRC_ FACM S S NA -2.66
#> 5 B_ ENTRC_ FACM S R R -0.423
#> 6 B_ ENTRC_ FACM S R R -0.423
-#> 7 B_ ENTRC_ FACM NA R R 0.224
-#> 8 B_ ENTRC_ FACM NA R R 0.224
-#> 9 B_ ENTRC_ FACM NA R R 0.224
-#> 10 B_ ENTRC_ FACM NA R R 0.224
+#> 7 B_ ENTRC_ FACM NA R R 0.224
+#> 8 B_ ENTRC_ FACM NA R R 0.224
+#> 9 B_ ENTRC_ FACM NA R R 0.224
+#> 10 B_ ENTRC_ FACM NA R R 0.224
#> # ℹ 53 more rows
diff --git a/reference/mean_amr_distance.md b/reference/mean_amr_distance.md
index 3267b6e0c..91c4b977b 100644
--- a/reference/mean_amr_distance.md
+++ b/reference/mean_amr_distance.md
@@ -180,9 +180,9 @@ if (require("dplyr")) {
mutate(dist = mean_amr_distance(.)) %>%
arrange(mo, dist)
}
-#> ℹ Using column 'mo' as input for `?mo_genus()`
-#> ℹ Using column 'mo' as input for `?mo_species()`
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ Using column mo as input for `mo_genus()`
+#> ℹ Using column mo as input for `mo_species()`
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> ℹ Calculating mean AMR distance based on columns "TCY", "IPM", and "MEM"
#> # A tibble: 63 × 5
#> # Groups: mo [4]
diff --git a/reference/microorganisms.codes.html b/reference/microorganisms.codes.html
index 039cc923f..0630b5b33 100644
--- a/reference/microorganisms.codes.html
+++ b/reference/microorganisms.codes.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/microorganisms.groups.html b/reference/microorganisms.groups.html
index e8ad2bfc7..a433c89e0 100644
--- a/reference/microorganisms.groups.html
+++ b/reference/microorganisms.groups.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/microorganisms.html b/reference/microorganisms.html
index 3b93ea4e3..5f0eb4b23 100644
--- a/reference/microorganisms.html
+++ b/reference/microorganisms.html
@@ -9,7 +9,7 @@ This data set is carefully crafted, yet made 100% reproducible from public and a
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/mo_matching_score.html b/reference/mo_matching_score.html
index 2d2fc85d5..26e40340e 100644
--- a/reference/mo_matching_score.html
+++ b/reference/mo_matching_score.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -120,7 +120,7 @@
#> [1] B_ESCHR_COLI
mo_uncertainties ( )
#> Matching scores are based on the resemblance between the input and the full
-#> taxonomic name, and the pathogenicity in humans. See `?mo_matching_score()`.
+#> taxonomic name, and the pathogenicity in humans. See `mo_matching_score()`.
#> Colour keys: 0.000-0.549 0.550-0.649 0.650-0.749 0.750-1.000
#> -------------------------------------------------------------------------------
#> "E. coli" -> Escherichia coli (B_ESCHR_COLI, 0.688 )
@@ -131,8 +131,8 @@
#> ( 0.571 ), and Enterobacter cloacae dissolvens ( 0.565 )
#>
#> ℹ Only the first 10 other matches of each record are shown. Run ``
-#> ?`print(mo_uncertainties(), n = ...)` `` to view more entries, or save
-#> `?mo_uncertainties()` to an object.
+#> `print(mo_uncertainties(), n = ...)` `` to view more entries, or save
+#> `mo_uncertainties()` to an object.
mo_matching_score (
x = "E. coli" ,
diff --git a/reference/mo_matching_score.md b/reference/mo_matching_score.md
index 5c910cb78..2ea38146c 100644
--- a/reference/mo_matching_score.md
+++ b/reference/mo_matching_score.md
@@ -190,7 +190,7 @@ as.mo("E. coli")
#> [1] B_ESCHR_COLI
mo_uncertainties()
#> Matching scores are based on the resemblance between the input and the full
-#> taxonomic name, and the pathogenicity in humans. See `?mo_matching_score()`.
+#> taxonomic name, and the pathogenicity in humans. See `mo_matching_score()`.
#> Colour keys: 0.000-0.549 0.550-0.649 0.650-0.749 0.750-1.000
#> -------------------------------------------------------------------------------
#> "E. coli" -> Escherichia coli (B_ESCHR_COLI, 0.688)
@@ -201,8 +201,8 @@ mo_uncertainties()
#> (0.571), and Enterobacter cloacae dissolvens (0.565)
#>
#> ℹ Only the first 10 other matches of each record are shown. Run ``
-#> ?`print(mo_uncertainties(), n = ...)` `` to view more entries, or save
-#> `?mo_uncertainties()` to an object.
+#> `print(mo_uncertainties(), n = ...)` `` to view more entries, or save
+#> `mo_uncertainties()` to an object.
mo_matching_score(
x = "E. coli",
diff --git a/reference/mo_property.html b/reference/mo_property.html
index 72600ed55..1b10eb459 100644
--- a/reference/mo_property.html
+++ b/reference/mo_property.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -368,7 +368,7 @@
mo_mycobank ( "Candida krusei" )
#> [1] "337013"
mo_mycobank ( "Candida krusei" , keep_synonyms = TRUE )
-#> Warning: `?as.mo()` returned one outdated taxonomic name. Use `keep_synonyms = FALSE` to
+#> Warning: `as.mo()` returned one outdated taxonomic name. Use `keep_synonyms = FALSE` to
#> clean the input to currently accepted taxonomic names, or set the R option
#> `AMR_keep_synonyms` to `FALSE`. This warning will be shown once per session.
#> [1] "268707"
@@ -462,8 +462,8 @@
filter ( mo_is_gram_positive ( ) ) %>%
count ( mo_genus ( ) , sort = TRUE )
}
-#> ℹ Using column 'mo ' as input for `?mo_is_gram_positive()`
-#> ℹ Using column 'mo ' as input for `?mo_genus()`
+#> ℹ Using column mo as input for `mo_is_gram_positive()`
+#> ℹ Using column mo as input for `mo_genus()`
#> # A tibble: 18 × 2
#> `mo_genus()` n
#> <chr> <int>
@@ -490,8 +490,8 @@
filter ( mo_is_intrinsic_resistant ( ab = "vanco" ) ) %>%
count ( mo_genus ( ) , sort = TRUE )
}
-#> ℹ Using column 'mo ' as input for `?mo_is_intrinsic_resistant()`
-#> ℹ Using column 'mo ' as input for `?mo_genus()`
+#> ℹ Using column mo as input for `mo_is_intrinsic_resistant()`
+#> ℹ Using column mo as input for `mo_genus()`
#> # A tibble: 19 × 2
#> `mo_genus()` n
#> <chr> <int>
diff --git a/reference/mo_property.md b/reference/mo_property.md
index 39479c457..2ee14d5d2 100644
--- a/reference/mo_property.md
+++ b/reference/mo_property.md
@@ -485,7 +485,7 @@ mo_mycobank("Candida albicans")
mo_mycobank("Candida krusei")
#> [1] "337013"
mo_mycobank("Candida krusei", keep_synonyms = TRUE)
-#> Warning: `?as.mo()` returned one outdated taxonomic name. Use `keep_synonyms = FALSE` to
+#> Warning: `as.mo()` returned one outdated taxonomic name. Use `keep_synonyms = FALSE` to
#> clean the input to currently accepted taxonomic names, or set the R option
#> `AMR_keep_synonyms` to `FALSE`. This warning will be shown once per session.
#> [1] "268707"
@@ -579,8 +579,8 @@ if (require("dplyr")) {
filter(mo_is_gram_positive()) %>%
count(mo_genus(), sort = TRUE)
}
-#> ℹ Using column 'mo' as input for `?mo_is_gram_positive()`
-#> ℹ Using column 'mo' as input for `?mo_genus()`
+#> ℹ Using column mo as input for `mo_is_gram_positive()`
+#> ℹ Using column mo as input for `mo_genus()`
#> # A tibble: 18 × 2
#> `mo_genus()` n
#>
@@ -607,8 +607,8 @@ if (require("dplyr")) {
filter(mo_is_intrinsic_resistant(ab = "vanco")) %>%
count(mo_genus(), sort = TRUE)
}
-#> ℹ Using column 'mo' as input for `?mo_is_intrinsic_resistant()`
-#> ℹ Using column 'mo' as input for `?mo_genus()`
+#> ℹ Using column mo as input for `mo_is_intrinsic_resistant()`
+#> ℹ Using column mo as input for `mo_genus()`
#> # A tibble: 19 × 2
#> `mo_genus()` n
#>
diff --git a/reference/mo_source.html b/reference/mo_source.html
index 1587c60a6..cac54bf45 100644
--- a/reference/mo_source.html
+++ b/reference/mo_source.html
@@ -9,7 +9,7 @@ This is the fastest way to have your organisation (or analysis) specific codes p
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/pca.html b/reference/pca.html
index 35d7e251d..de328e3a1 100644
--- a/reference/pca.html
+++ b/reference/pca.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/plot.html b/reference/plot.html
index 998530664..ce04d6a53 100644
--- a/reference/plot.html
+++ b/reference/plot.html
@@ -9,7 +9,7 @@ Especially the scale_*_mic() functions are relevant wrappers to plot MIC values
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/proportion.html b/reference/proportion.html
index 2b4706ff8..b39bd38d8 100644
--- a/reference/proportion.html
+++ b/reference/proportion.html
@@ -9,7 +9,7 @@ resistance() should be used to calculate resistance, susceptibility() should be
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -218,16 +218,16 @@ resistance() should be used to calculate resistance, susceptibility() should be
#> # A tibble: 2,000 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
+#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
#> # ℹ 1,990 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
@@ -314,9 +314,9 @@ resistance() should be used to calculate resistance, susceptibility() should be
resistance
)
}
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> Warning: There was 1 warning in `summarise()`.
#> ℹ In argument: `KAN = (function (..., minimum = 30, as_percent = FALSE,
#> only_all_tested = FALSE, ...`.
diff --git a/reference/proportion.md b/reference/proportion.md
index 430102128..e622007cb 100644
--- a/reference/proportion.md
+++ b/reference/proportion.md
@@ -372,9 +372,9 @@ if (require("dplyr")) {
resistance
)
}
-#> ℹ For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
-#> AMK (amikacin), and KAN (kanamycin)
-#> ℹ For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
+#> ℹ For `aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin), AMK
+#> (amikacin), and KAN (kanamycin)
+#> ℹ For `carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
#> Warning: There was 1 warning in `summarise()`.
#> ℹ In argument: `KAN = (function (..., minimum = 30, as_percent = FALSE,
#> only_all_tested = FALSE, ...`.
diff --git a/reference/random.html b/reference/random.html
index ea126db72..9e4cb8dc0 100644
--- a/reference/random.html
+++ b/reference/random.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/resistance_predict.html b/reference/resistance_predict.html
index b63e355a1..d8ffa9048 100644
--- a/reference/resistance_predict.html
+++ b/reference/resistance_predict.html
@@ -9,7 +9,7 @@ NOTE: These functions are deprecated and will be removed in a future version. Us
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -180,8 +180,8 @@ NOTE: These functions are deprecated and will be removed in a future version. Us
model = "binomial"
)
#> Warning: The `resistance_predict()` function is deprecated and will be removed in a
-#> future version, see AMR-deprecated. Use the tidymodels framework instead, for
-#> which we have written a basic and short introduction on our website:
+#> future version, see `?AMR-deprecated`. Use the tidymodels framework instead,
+#> for which we have written a basic and short introduction on our website:
#> https://amr-for-r.org/articles/AMR_with_tidymodels.html This warning will be
#> shown once per session.
plot ( x )
diff --git a/reference/resistance_predict.md b/reference/resistance_predict.md
index 96a4ae0e1..bc1b5080a 100644
--- a/reference/resistance_predict.md
+++ b/reference/resistance_predict.md
@@ -192,8 +192,8 @@ x <- resistance_predict(example_isolates,
model = "binomial"
)
#> Warning: The `resistance_predict()` function is deprecated and will be removed in a
-#> future version, see AMR-deprecated. Use the tidymodels framework instead, for
-#> which we have written a basic and short introduction on our website:
+#> future version, see `?AMR-deprecated`. Use the tidymodels framework instead,
+#> for which we have written a basic and short introduction on our website:
#> https://amr-for-r.org/articles/AMR_with_tidymodels.html This warning will be
#> shown once per session.
plot(x)
diff --git a/reference/skewness.html b/reference/skewness.html
index 95cbde5b5..1232dab37 100644
--- a/reference/skewness.html
+++ b/reference/skewness.html
@@ -9,7 +9,7 @@ When negative ('left-skewed'): the left tail is longer; the mass of the distribu
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/reference/top_n_microorganisms.html b/reference/top_n_microorganisms.html
index 81f11f7a5..357441d3c 100644
--- a/reference/top_n_microorganisms.html
+++ b/reference/top_n_microorganisms.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
@@ -105,16 +105,16 @@
#> # A tibble: 1,015 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 3 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 4 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 5 2002-01-19 738003 71 M Clinical B_ ESCHR_ COLI R NA NA NA
-#> 6 2002-01-19 738003 71 M Clinical B_ ESCHR_ COLI R NA NA NA
-#> 7 2002-02-03 481442 76 M ICU B_ STPHY_ CONS R NA S NA
-#> 8 2002-02-14 067927 45 F ICU B_ STPHY_ CONS R NA R NA
-#> 9 2002-02-14 067927 45 F ICU B_ STPHY_ CONS S NA S NA
-#> 10 2002-02-21 A56499 64 M Clinical B_ STPHY_ CONS S NA S NA
+#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 3 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 4 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 5 2002-01-19 738003 71 M Clinical B_ ESCHR_ COLI R NA NA NA
+#> 6 2002-01-19 738003 71 M Clinical B_ ESCHR_ COLI R NA NA NA
+#> 7 2002-02-03 481442 76 M ICU B_ STPHY_ CONS R NA S NA
+#> 8 2002-02-14 067927 45 F ICU B_ STPHY_ CONS R NA R NA
+#> 9 2002-02-14 067927 45 F ICU B_ STPHY_ CONS S NA S NA
+#> 10 2002-02-21 A56499 64 M Clinical B_ STPHY_ CONS S NA S NA
#> # ℹ 1,005 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
@@ -130,16 +130,16 @@
#> # A tibble: 1,742 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
-#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
-#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
-#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
+#> 1 2002-01-02 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 2 2002-01-03 A77334 65 F Clinical B_ ESCHR_ COLI R NA NA NA
+#> 3 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 4 2002-01-07 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 5 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 6 2002-01-13 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 7 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 8 2002-01-14 462729 78 M Clinical B_ STPHY_ AURS R NA S R
+#> 9 2002-01-16 067927 45 F ICU B_ STPHY_ EPDR R NA R NA
+#> 10 2002-01-17 858515 79 F ICU B_ STPHY_ EPDR R NA S NA
#> # ℹ 1,732 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
@@ -155,16 +155,16 @@
#> # A tibble: 1,497 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#> <date> <chr> <dbl> <chr> <chr> <mo> <sir> <sir> <sir> <sir>
-#> 1 2002-02-21 4FC193 69 M Clinical B_ ENTRC_ FACM NA NA NA NA
-#> 2 2002-04-08 130252 78 M ICU B_ ENTRC_ FCLS NA NA NA NA
-#> 3 2002-06-23 798871 82 M Clinical B_ ENTRC_ FCLS NA NA NA NA
-#> 4 2002-06-23 798871 82 M Clinical B_ ENTRC_ FCLS NA NA NA NA
-#> 5 2003-04-20 6BC362 62 M ICU B_ ENTRC NA NA NA NA
-#> 6 2003-04-21 6BC362 62 M ICU B_ ENTRC NA NA NA NA
-#> 7 2003-08-13 F35553 52 M ICU B_ ENTRC_ FCLS NA NA NA NA
-#> 8 2003-09-05 F35553 52 M ICU B_ ENTRC NA NA NA NA
-#> 9 2003-09-05 F35553 52 M ICU B_ ENTRC_ FCLS NA NA NA NA
-#> 10 2003-09-28 1B0933 80 M Clinical B_ ENTRC NA NA NA NA
+#> 1 2002-02-21 4FC193 69 M Clinical B_ ENTRC_ FACM NA NA NA NA
+#> 2 2002-04-08 130252 78 M ICU B_ ENTRC_ FCLS NA NA NA NA
+#> 3 2002-06-23 798871 82 M Clinical B_ ENTRC_ FCLS NA NA NA NA
+#> 4 2002-06-23 798871 82 M Clinical B_ ENTRC_ FCLS NA NA NA NA
+#> 5 2003-04-20 6BC362 62 M ICU B_ ENTRC NA NA NA NA
+#> 6 2003-04-21 6BC362 62 M ICU B_ ENTRC NA NA NA NA
+#> 7 2003-08-13 F35553 52 M ICU B_ ENTRC_ FCLS NA NA NA NA
+#> 8 2003-09-05 F35553 52 M ICU B_ ENTRC NA NA NA NA
+#> 9 2003-09-05 F35553 52 M ICU B_ ENTRC_ FCLS NA NA NA NA
+#> 10 2003-09-28 1B0933 80 M Clinical B_ ENTRC NA NA NA NA
#> # ℹ 1,487 more rows
#> # ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,
#> # CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,
diff --git a/reference/translate.html b/reference/translate.html
index f760b220c..b432abdd4 100644
--- a/reference/translate.html
+++ b/reference/translate.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.1.9038
+ 3.0.1.9040
diff --git a/search.json b/search.json
index ff551d584..4b4cc4d81 100644
--- a/search.json
+++ b/search.json
@@ -1 +1 @@
-[{"path":"https://amr-for-r.org/CLAUDE.html","id":null,"dir":"","previous_headings":"","what":"CLAUDE.md — AMR R Package","title":"CLAUDE.md — AMR R Package","text":"file provides context Claude Code working repository.","code":""},{"path":"https://amr-for-r.org/CLAUDE.html","id":"project-overview","dir":"","previous_headings":"","what":"Project Overview","title":"CLAUDE.md — AMR R Package","text":"AMR zero-dependency R package antimicrobial resistance (AMR) data analysis using One Health approach. peer-reviewed, used 175+ countries, supports 28 languages. Key capabilities: - SIR (Susceptible/Intermediate/Resistant) classification using EUCAST 2011–2025 CLSI 2011–2025 breakpoints - Antibiogram generation: traditional, combined, syndromic, WISCA - Microorganism taxonomy database (~79,000 species) - Antimicrobial drug database (~620 drugs) - Multi-drug resistant organism (MDRO) classification - First-isolate identification - Minimum Inhibitory Concentration (MIC) disk diffusion handling - Multilingual output (28 languages)","code":""},{"path":"https://amr-for-r.org/CLAUDE.html","id":"common-commands","dir":"","previous_headings":"","what":"Common Commands","title":"CLAUDE.md — AMR R Package","text":"commands run inside R session: shell:","code":"# Rebuild documentation (roxygen2 → .Rd files + NAMESPACE) devtools::document() # Run all tests devtools::test() # Full package check (CRAN-level: docs + tests + checks) devtools::check() # Build pkgdown website locally pkgdown::build_site() # Code coverage report covr::package_coverage() # CRAN check from parent directory R CMD check AMR"},{"path":"https://amr-for-r.org/CLAUDE.html","id":"repository-structure","dir":"","previous_headings":"","what":"Repository Structure","title":"CLAUDE.md — AMR R Package","text":"","code":"R/ # All R source files (62 files, ~28,000 lines) man/ # Auto-generated .Rd documentation (do not edit manually) tests/testthat/ # testthat test files (test-*.R) and helper-functions.R data/ # Pre-compiled .rda datasets data-raw/ # Scripts used to generate data/ files vignettes/ # Rmd vignette articles inst/ # Installed files (translations, etc.) _pkgdown.yml # pkgdown website configuration"},{"path":"https://amr-for-r.org/CLAUDE.html","id":"r-source-file-conventions","dir":"","previous_headings":"","what":"R Source File Conventions","title":"CLAUDE.md — AMR R Package","text":"Naming conventions R/: Key source files: aa_helper_functions.R / aa_helper_pm_functions.R — internal utility functions (large; ~63 KB ~37 KB) aa_globals.R — global constants breakpoint lookup structures aa_options.R — amr_options() / get_AMR_option() system mo.R / mo_property.R — microorganism lookup properties ab.R / ab_property.R — antimicrobial drug functions av.R / av_property.R — antiviral drug functions sir.R / sir_calc.R / sir_df.R — SIR classification engine mic.R / disk.R — MIC disk diffusion classes antibiogram.R — antibiogram generation (traditional, combined, syndromic, WISCA) first_isolate.R — first-isolate identification algorithms mdro.R — MDRO classification (EUCAST, CLSI, CDC, custom guidelines) amr_selectors.R — tidyselect helpers selecting AMR columns interpretive_rules.R / custom_eucast_rules.R — clinical interpretation rules translate.R — 28-language translation system ggplot_sir.R / ggplot_pca.R / plotting.R — visualisation functions","code":""},{"path":"https://amr-for-r.org/CLAUDE.html","id":"custom-s3-classes","dir":"","previous_headings":"","what":"Custom S3 Classes","title":"CLAUDE.md — AMR R Package","text":"package defines five S3 classes full print/format/plot/vctrs support:","code":""},{"path":"https://amr-for-r.org/CLAUDE.html","id":"data-files","dir":"","previous_headings":"","what":"Data Files","title":"CLAUDE.md — AMR R Package","text":"Pre-compiled data/ (edit directly; regenerate via data-raw/ scripts):","code":""},{"path":"https://amr-for-r.org/CLAUDE.html","id":"zero-dependency-design","dir":"","previous_headings":"","what":"Zero-Dependency Design","title":"CLAUDE.md — AMR R Package","text":"package Imports DESCRIPTION. optional integrations (ggplot2, dplyr, data.table, tidymodels, cli, crayon, etc.) listed Suggests guarded : Never add packages Imports. new functionality requires external package, add Suggests guard usage appropriately.","code":"if (requireNamespace(\"pkg\", quietly = TRUE)) { ... }"},{"path":"https://amr-for-r.org/CLAUDE.html","id":"testing","dir":"","previous_headings":"","what":"Testing","title":"CLAUDE.md — AMR R Package","text":"Framework: testthat (R ≥ 3.1); legacy tinytest used R 3.0–3.6 CI Test files: tests/testthat/test-*.R Helpers: tests/testthat/helper-functions.R CI matrix: GitHub Actions across Windows / macOS / Linux × R devel / release / oldrel-1 oldrel-4 Coverage: covr (files excluded: atc_online.R, mo_source.R, translate.R, resistance_predict.R, zz_deprecated.R, helper files, zzz.R)","code":""},{"path":"https://amr-for-r.org/CLAUDE.html","id":"documentation","dir":"","previous_headings":"","what":"Documentation","title":"CLAUDE.md — AMR R Package","text":"exported functions use roxygen2 blocks (RoxygenNote: 7.3.3, markdown enabled) Run devtools::document() change roxygen comments Never edit files man/ directly — auto-generated Vignettes live vignettes/ .Rmd files pkgdown website configured _pkgdown.yml","code":""},{"path":"https://amr-for-r.org/CLAUDE.html","id":"versioning","dir":"","previous_headings":"","what":"Versioning","title":"CLAUDE.md — AMR R Package","text":"Version format: major.minor.patch.dev (e.g., 3.0.1.9021) Development versions use .9xxx suffix Stable CRAN releases drop dev suffix (e.g., 3.0.1) NEWS.md uses sections New, Fixes, Updates GitHub issue references (#NNN)","code":""},{"path":"https://amr-for-r.org/CLAUDE.html","id":"version-and-date-bump-required-for-every-pr","dir":"","previous_headings":"Versioning","what":"Version and date bump required for every PR","title":"CLAUDE.md — AMR R Package","text":"PRs squash-merged, PR lands exactly one commit default branch. Version numbers kept sync cumulative commit count since last released tag. Therefore exactly one version bump allowed per PR, regardless many intermediate commits made branch.","code":""},{"path":"https://amr-for-r.org/CLAUDE.html","id":"computing-the-correct-version-number","dir":"","previous_headings":"Versioning > Version and date bump required for every PR","what":"Computing the correct version number","title":"CLAUDE.md — AMR R Package","text":"Run following repo root determine version string use: + 1 accounts fact PR’s squash commit yet default branch. Set files resulting version string (per PR, even across multiple commits): DESCRIPTION — Version: field NEWS.md — replace line 1 (# AMR heading) new version number; create new section. NEWS.md continuous log entire current x.y.z.9nnn development series: changes since last stable release accumulate single heading. updating line 1, append new change bullet appropriate sub-heading (### New, ### Fixes, ### Updates). Style rules NEWS.md entries: extremely concise — one short line per item end full stop (period) verbose explanations; just essential fact git describe fails (e.g. tags exist environment), fall back reading current version DESCRIPTION adding 1 last numeric component — bump already made PR.","code":"currenttag=$(git describe --tags --abbrev=0 | sed 's/v//') currenttagfull=$(git describe --tags --abbrev=0) defaultbranch=$(git branch | cut -c 3- | grep -E '^master$|^main$') currentcommit=$(git rev-list --count ${currenttagfull}..${defaultbranch}) currentversion=\"${currenttag}.$((currentcommit + 9001 + 1))\" echo \"$currentversion\""},{"path":"https://amr-for-r.org/CLAUDE.html","id":"date-field","dir":"","previous_headings":"Versioning > Version and date bump required for every PR","what":"Date field","title":"CLAUDE.md — AMR R Package","text":"Date: field DESCRIPTION must reflect date last commit PR (first), ISO format. Update every commit always current:","code":"Date: 2026-03-07"},{"path":"https://amr-for-r.org/CLAUDE.html","id":"internal-state","dir":"","previous_headings":"","what":"Internal State","title":"CLAUDE.md — AMR R Package","text":"package uses private AMR_env environment (created aa_globals.R) caching expensive lookups (e.g., microorganism matching scores, breakpoint tables). avoids re-computation within session.","code":""},{"path":"https://amr-for-r.org/articles/AMR.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Conduct AMR data analysis","text":"Conducting AMR data analysis unfortunately requires -depth knowledge different scientific fields, makes hard right. least, requires: Good questions (always start !) reliable data thorough understanding (clinical) epidemiology, understand clinical epidemiological relevance possible bias results thorough understanding (clinical) microbiology/infectious diseases, understand microorganisms causal infections implications pharmaceutical treatment, well understanding intrinsic acquired microbial resistance Experience data analysis microbiological tests results, understand determination limitations MIC values interpretations SIR values Availability biological taxonomy microorganisms probably normalisation factors pharmaceuticals, defined daily doses (DDD) Available (inter-)national guidelines, profound methods apply course, instantly provide knowledge experience. AMR package, aimed providing (1) tools simplify antimicrobial resistance data cleaning, transformation analysis, (2) methods easily incorporate international guidelines (3) scientifically reliable reference data, including requirements mentioned . AMR package enables standardised reproducible AMR data analysis, application evidence-based rules, determination first isolates, translation various codes microorganisms antimicrobial drugs, determination (multi-drug) resistant microorganisms, calculation antimicrobial resistance, prevalence future trends.","code":""},{"path":"https://amr-for-r.org/articles/AMR.html","id":"preparation","dir":"Articles","previous_headings":"","what":"Preparation","title":"Conduct AMR data analysis","text":"tutorial, create fake demonstration data work . can skip Cleaning data already data ready. start analysis, try make structure data generally look like :","code":""},{"path":"https://amr-for-r.org/articles/AMR.html","id":"needed-r-packages","dir":"Articles","previous_headings":"Preparation","what":"Needed R packages","title":"Conduct AMR data analysis","text":"many uses R, need additional packages AMR data analysis. package works closely together tidyverse packages dplyr ggplot2 RStudio. tidyverse tremendously improves way conduct data science - allows natural way writing syntaxes creating beautiful plots R. also use cleaner package, can used cleaning data creating frequency tables. AMR package contains data set example_isolates_unclean, might look data users extracted laboratory systems: AMR data analysis, like microorganism column contain valid, --date taxonomy, antibiotic columns cleaned SIR values well.","code":"library(dplyr) library(ggplot2) library(AMR) # (if not yet installed, install with:) # install.packages(c(\"dplyr\", \"ggplot2\", \"AMR\")) example_isolates_unclean #> # A tibble: 3,000 × 8 #> patient_id hospital date bacteria AMX AMC CIP GEN #> #> 1 J3 A 2012-11-21 E. coli R I S S #> 2 R7 A 2018-04-03 K. pneumoniae R I S S #> 3 P3 A 2014-09-19 E. coli R S S S #> 4 P10 A 2015-12-10 E. coli S I S S #> 5 B7 A 2015-03-02 E. coli S S S S #> 6 W3 A 2018-03-31 S. aureus R S R S #> 7 J8 A 2016-06-14 E. coli R S S S #> 8 M3 A 2015-10-25 E. coli R S S S #> 9 J3 A 2019-06-19 E. coli S S S S #> 10 G6 A 2015-04-27 S. aureus S S S S #> # ℹ 2,990 more rows # we will use 'our_data' as the data set name for this tutorial our_data <- example_isolates_unclean"},{"path":"https://amr-for-r.org/articles/AMR.html","id":"taxonomy-of-microorganisms","dir":"Articles","previous_headings":"Preparation","what":"Taxonomy of microorganisms","title":"Conduct AMR data analysis","text":".mo(), users can transform arbitrary microorganism names codes current taxonomy. AMR package contains --date taxonomic data. specific, currently included data retrieved 24 Jun 2024. codes AMR packages come .mo() short, still human readable. importantly, .mo() supports kinds input: first character codes denote taxonomic kingdom, Bacteria (B), Fungi (F), Protozoa (P). AMR package also contain functions directly retrieve taxonomic properties, name, genus, species, family, order, even Gram-stain. start mo_ use .mo() internally, still arbitrary user input can used: Now can thus clean data: Apparently, uncertainty translation taxonomic codes. Let’s check : ’s good.","code":"as.mo(\"Klebsiella pneumoniae\") #> Class #> [1] B_KLBSL_PNMN as.mo(\"K. pneumoniae\") #> Class #> [1] B_KLBSL_PNMN as.mo(\"KLEPNE\") #> Class #> [1] B_KLBSL_PNMN as.mo(\"KLPN\") #> Class #> [1] B_KLBSL_PNMN mo_family(\"K. pneumoniae\") #> [1] \"Enterobacteriaceae\" mo_genus(\"K. pneumoniae\") #> [1] \"Klebsiella\" mo_species(\"K. pneumoniae\") #> [1] \"pneumoniae\" mo_gramstain(\"Klebsiella pneumoniae\") #> [1] \"Gram-negative\" mo_ref(\"K. pneumoniae\") #> [1] \"Trevisan, 1887\" mo_snomed(\"K. pneumoniae\") #> [[1]] #> [1] \"1098101000112102\" \"446870005\" \"1098201000112108\" \"409801009\" #> [5] \"56415008\" \"714315002\" \"713926009\" our_data$bacteria <- as.mo(our_data$bacteria, info = TRUE) #> ℹ Retrieved values from the `microorganisms.codes` data set for \"ESCCOL\", #> \"KLEPNE\", \"STAAUR\", and \"STRPNE\". #> ℹ Microorganism translation was uncertain for four microorganisms. Run #> `?mo_uncertainties()` to review these uncertainties, or use #> `?add_custom_microorganisms()` to add custom entries. mo_uncertainties() #> Matching scores are based on the resemblance between the input and the full #> taxonomic name, and the pathogenicity in humans. See `?mo_matching_score()`. #> Colour keys: 0.000-0.549 0.550-0.649 0.650-0.749 0.750-1.000 #> ------------------------------------------------------------------------------- #> \"E. coli\" -> Escherichia coli (B_ESCHR_COLI, 0.688) #> Also matched: Enterococcus crotali (0.650), Escherichia coli coli (0.643), #> Escherichia coli expressing (0.611), Enterobacter cowanii (0.600), Enterococcus #> columbae (0.595), Enterococcus camelliae (0.591), Enterococcus casseliflavus #> (0.577), Enterobacter cloacae cloacae (0.571), Enterobacter cloacae complex #> (0.571), and Enterobacter cloacae dissolvens (0.565) #> ------------------------------------------------------------------------------- #> \"K. pneumoniae\" -> Klebsiella pneumoniae (B_KLBSL_PNMN, 0.786) #> Also matched: Klebsiella pneumoniae complex (0.707), Klebsiella pneumoniae #> ozaenae (0.707), Klebsiella pneumoniae pneumoniae (0.688), Klebsiella #> pneumoniae rhinoscleromatis (0.658), Klebsiella pasteurii (0.500), Klebsiella #> planticola (0.500), Kingella potus (0.400), Kluyveromyces pseudotropicale #> (0.386), Kluyveromyces pseudotropicalis (0.363), and Kosakonia pseudosacchari #> (0.361) #> ------------------------------------------------------------------------------- #> \"S. aureus\" -> Staphylococcus aureus (B_STPHY_AURS, 0.690) #> Also matched: Staphylococcus aureus aureus (0.643), Staphylococcus argenteus #> (0.625), Staphylococcus aureus anaerobius (0.625), Staphylococcus auricularis #> (0.615), Salmonella Aurelianis (0.595), Salmonella Aarhus (0.588), Salmonella #> Amounderness (0.587), Staphylococcus argensis (0.587), Streptococcus australis #> (0.587), and Salmonella choleraesuis arizonae (0.562) #> ------------------------------------------------------------------------------- #> \"S. pneumoniae\" -> Streptococcus pneumoniae (B_STRPT_PNMN, 0.750) #> Also matched: Streptococcus pseudopneumoniae (0.700), Streptococcus phocae #> salmonis (0.552), Serratia proteamaculans quinovora (0.545), Streptococcus #> pseudoporcinus (0.536), Staphylococcus piscifermentans (0.533), Staphylococcus #> pseudintermedius (0.532), Serratia proteamaculans proteamaculans (0.526), #> Streptococcus gallolyticus pasteurianus (0.526), Salmonella Portanigra (0.524), #> and Streptococcus periodonticum (0.519) #> ℹ Only the first 10 other matches of each record are shown. Run `` #> ?`print(mo_uncertainties(), n = ...)` `` to view more entries, or save #> `?mo_uncertainties()` to an object."},{"path":"https://amr-for-r.org/articles/AMR.html","id":"antibiotic-results","dir":"Articles","previous_headings":"Preparation","what":"Antibiotic results","title":"Conduct AMR data analysis","text":"column antibiotic test results must also cleaned. AMR package comes three new data types work test results: mic minimal inhibitory concentrations (MIC), disk disk diffusion diameters, sir SIR data interpreted already. package can also determine SIR values based MIC disk diffusion values, read .sir() page. now, just clean SIR columns data using dplyr: basically cleaning, time start data inclusion.","code":"# method 1, be explicit about the columns: our_data <- our_data %>% mutate_at(vars(AMX:GEN), as.sir) # method 2, let the AMR package determine the eligible columns our_data <- our_data %>% mutate_if(is_sir_eligible, as.sir) # result: our_data #> # A tibble: 3,000 × 8 #> patient_id hospital date bacteria AMX AMC CIP GEN #> #> 1 J3 A 2012-11-21 B_ESCHR_COLI R I S S #> 2 R7 A 2018-04-03 B_KLBSL_PNMN R I S S #> 3 P3 A 2014-09-19 B_ESCHR_COLI R S S S #> 4 P10 A 2015-12-10 B_ESCHR_COLI S I S S #> 5 B7 A 2015-03-02 B_ESCHR_COLI S S S S #> 6 W3 A 2018-03-31 B_STPHY_AURS R S R S #> 7 J8 A 2016-06-14 B_ESCHR_COLI R S S S #> 8 M3 A 2015-10-25 B_ESCHR_COLI R S S S #> 9 J3 A 2019-06-19 B_ESCHR_COLI S S S S #> 10 G6 A 2015-04-27 B_STPHY_AURS S S S S #> # ℹ 2,990 more rows"},{"path":"https://amr-for-r.org/articles/AMR.html","id":"first-isolates","dir":"Articles","previous_headings":"Preparation","what":"First isolates","title":"Conduct AMR data analysis","text":"need know isolates can actually use analysis without repetition bias. conduct analysis antimicrobial resistance, must include first isolate every patient per episode (Hindler et al., Clin Infect Dis. 2007). , easily get overestimate underestimate resistance antibiotic. Imagine patient admitted MRSA found 5 different blood cultures following weeks (yes, countries like Netherlands blood drawing policies). resistance percentage oxacillin isolates overestimated, included MRSA . clearly selection bias. Clinical Laboratory Standards Institute (CLSI) appoints follows: (…) preparing cumulative antibiogram guide clinical decisions empirical antimicrobial therapy initial infections, first isolate given species per patient, per analysis period (eg, one year) included, irrespective body site, antimicrobial susceptibility profile, phenotypical characteristics (eg, biotype). first isolate easily identified, cumulative antimicrobial susceptibility test data prepared using first isolate generally comparable cumulative antimicrobial susceptibility test data calculated methods, providing duplicate isolates excluded. M39-A4 Analysis Presentation Cumulative Antimicrobial Susceptibility Test Data, 4th Edition. CLSI, 2014. Chapter 6.4 AMR package includes methodology first_isolate() function able apply four different methods defined Hindler et al. 2007: phenotype-based, episode-based, patient-based, isolate-based. right method depends goals analysis, default phenotype-based method case method properly correct duplicate isolates. Read methods first_isolate() page. outcome function can easily added data: 91% suitable resistance analysis! can now filter filter() function, also dplyr package: future use, two syntaxes can shortened: end 2 724 isolates analysis. Now data looks like: Time analysis.","code":"our_data <- our_data %>% mutate(first = first_isolate(info = TRUE)) #> ℹ Determining first isolates using an episode length of 365 days #> ℹ Using column 'bacteria' as input for `col_mo`. #> ℹ Column 'first' is SIR eligible (despite only having empty values), since it #> seems to be cefozopran (ZOP) #> ℹ Using column 'date' as input for `col_date`. #> ℹ Using column 'patient_id' as input for `col_patient_id`. #> ℹ Basing inclusion on all antimicrobial results, using a points threshold of 2 #> => Found 2,724 'phenotype-based' first isolates (90.8% of total where a #> microbial ID was available) our_data_1st <- our_data %>% filter(first == TRUE) our_data_1st <- our_data %>% filter_first_isolate() our_data_1st #> # A tibble: 2,724 × 9 #> patient_id hospital date bacteria AMX AMC CIP GEN first #> #> 1 J3 A 2012-11-21 B_ESCHR_COLI R I S S TRUE #> 2 R7 A 2018-04-03 B_KLBSL_PNMN R I S S TRUE #> 3 P3 A 2014-09-19 B_ESCHR_COLI R S S S TRUE #> 4 P10 A 2015-12-10 B_ESCHR_COLI S I S S TRUE #> 5 B7 A 2015-03-02 B_ESCHR_COLI S S S S TRUE #> 6 W3 A 2018-03-31 B_STPHY_AURS R S R S TRUE #> 7 M3 A 2015-10-25 B_ESCHR_COLI R S S S TRUE #> 8 J3 A 2019-06-19 B_ESCHR_COLI S S S S TRUE #> 9 G6 A 2015-04-27 B_STPHY_AURS S S S S TRUE #> 10 P4 A 2011-06-21 B_ESCHR_COLI S S S S TRUE #> # ℹ 2,714 more rows"},{"path":"https://amr-for-r.org/articles/AMR.html","id":"analysing-the-data","dir":"Articles","previous_headings":"","what":"Analysing the data","title":"Conduct AMR data analysis","text":"base R summary() function gives good first impression, comes support new mo sir classes now data set:","code":"summary(our_data_1st) #> patient_id hospital date #> Length:2724 Length:2724 Min. :2011-01-01 #> Class :character Class :character 1st Qu.:2013-04-07 #> Mode :character Mode :character Median :2015-06-03 #> Mean :2015-06-09 #> 3rd Qu.:2017-08-11 #> Max. :2019-12-27 #> bacteria AMX AMC #> Class :mo Class:sir Class:sir #> :0 %S :41.6% (n=1133) %S :52.6% (n=1432) #> Unique:4 %SDD : 0.0% (n=0) %SDD : 0.0% (n=0) #> #1 :B_ESCHR_COLI %I :16.4% (n=446) %I :12.2% (n=333) #> #2 :B_STPHY_AURS %R :42.0% (n=1145) %R :35.2% (n=959) #> #3 :B_STRPT_PNMN %NI : 0.0% (n=0) %NI : 0.0% (n=0) #> CIP GEN first #> Class:sir Class:sir Mode:logical #> %S :52.5% (n=1431) %S :61.0% (n=1661) TRUE:2724 #> %SDD : 0.0% (n=0) %SDD : 0.0% (n=0) #> %I : 6.5% (n=176) %I : 3.0% (n=82) #> %R :41.0% (n=1117) %R :36.0% (n=981) #> %NI : 0.0% (n=0) %NI : 0.0% (n=0) glimpse(our_data_1st) #> Rows: 2,724 #> Columns: 9 #> $ patient_id \"J3\", \"R7\", \"P3\", \"P10\", \"B7\", \"W3\", \"M3\", \"J3\", \"G6\", \"P4\"… #> $ hospital \"A\", \"A\", \"A\", \"A\", \"A\", \"A\", \"A\", \"A\", \"A\", \"A\", \"A\", \"A\",… #> $ date 2012-11-21, 2018-04-03, 2014-09-19, 2015-12-10, 2015-03-02… #> $ bacteria \"B_ESCHR_COLI\", \"B_KLBSL_PNMN\", \"B_ESCHR_COLI\", \"B_ESCHR_COL… #> $ AMX R, R, R, S, S, R, R, S, S, S, S, R, S, S, R, R, R, R, S, R,… #> $ AMC I, I, S, I, S, S, S, S, S, S, S, S, S, S, S, S, S, R, S, S,… #> $ CIP S, S, S, S, S, R, S, S, S, S, S, S, S, S, S, S, S, S, S, S,… #> $ GEN S, S, S, S, S, S, S, S, S, S, S, R, S, S, S, S, S, S, S, S,… #> $ first TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE,… # number of unique values per column: sapply(our_data_1st, n_distinct) #> patient_id hospital date bacteria AMX AMC CIP #> 260 3 1854 4 3 3 3 #> GEN first #> 3 1"},{"path":"https://amr-for-r.org/articles/AMR.html","id":"availability-of-species","dir":"Articles","previous_headings":"Analysing the data","what":"Availability of species","title":"Conduct AMR data analysis","text":"just get idea species distributed, create frequency table count() based name microorganisms:","code":"our_data %>% count(mo_name(bacteria), sort = TRUE) #> # A tibble: 4 × 2 #> `mo_name(bacteria)` n #> #> 1 Escherichia coli 1518 #> 2 Staphylococcus aureus 730 #> 3 Streptococcus pneumoniae 426 #> 4 Klebsiella pneumoniae 326 our_data_1st %>% count(mo_name(bacteria), sort = TRUE) #> # A tibble: 4 × 2 #> `mo_name(bacteria)` n #> #> 1 Escherichia coli 1321 #> 2 Staphylococcus aureus 682 #> 3 Streptococcus pneumoniae 402 #> 4 Klebsiella pneumoniae 319"},{"path":"https://amr-for-r.org/articles/AMR.html","id":"select-and-filter-with-antibiotic-selectors","dir":"Articles","previous_headings":"Analysing the data","what":"Select and filter with antibiotic selectors","title":"Conduct AMR data analysis","text":"Using -called antibiotic class selectors, can select filter columns based antibiotic class antibiotic results :","code":"our_data_1st %>% select(date, aminoglycosides()) #> ℹ For `?aminoglycosides()` using column GEN #> (gentamicin) #> # A tibble: 2,724 × 2 #> date GEN #> #> 1 2012-11-21 S #> 2 2018-04-03 S #> 3 2014-09-19 S #> 4 2015-12-10 S #> 5 2015-03-02 S #> 6 2018-03-31 S #> 7 2015-10-25 S #> 8 2019-06-19 S #> 9 2015-04-27 S #> 10 2011-06-21 S #> # ℹ 2,714 more rows our_data_1st %>% select(bacteria, betalactams()) #> ℹ For `?betalactams()` using columns AMX (amoxicillin) and AMC #> (amoxicillin/clavulanic acid) #> # A tibble: 2,724 × 3 #> bacteria AMX AMC #> #> 1 B_ESCHR_COLI R I #> 2 B_KLBSL_PNMN R I #> 3 B_ESCHR_COLI R S #> 4 B_ESCHR_COLI S I #> 5 B_ESCHR_COLI S S #> 6 B_STPHY_AURS R S #> 7 B_ESCHR_COLI R S #> 8 B_ESCHR_COLI S S #> 9 B_STPHY_AURS S S #> 10 B_ESCHR_COLI S S #> # ℹ 2,714 more rows our_data_1st %>% select(bacteria, where(is.sir)) #> # A tibble: 2,724 × 5 #> bacteria AMX AMC CIP GEN #> #> 1 B_ESCHR_COLI R I S S #> 2 B_KLBSL_PNMN R I S S #> 3 B_ESCHR_COLI R S S S #> 4 B_ESCHR_COLI S I S S #> 5 B_ESCHR_COLI S S S S #> 6 B_STPHY_AURS R S R S #> 7 B_ESCHR_COLI R S S S #> 8 B_ESCHR_COLI S S S S #> 9 B_STPHY_AURS S S S S #> 10 B_ESCHR_COLI S S S S #> # ℹ 2,714 more rows # filtering using AB selectors is also possible: our_data_1st %>% filter(any(aminoglycosides() == \"R\")) #> ℹ For `?aminoglycosides()` using column GEN #> (gentamicin) #> # A tibble: 981 × 9 #> patient_id hospital date bacteria AMX AMC CIP GEN first #> #> 1 J5 A 2017-12-25 B_STRPT_PNMN R S S R TRUE #> 2 X1 A 2017-07-04 B_STPHY_AURS R S S R TRUE #> 3 B3 A 2016-07-24 B_ESCHR_COLI S S S R TRUE #> 4 V7 A 2012-04-03 B_ESCHR_COLI S S S R TRUE #> 5 C9 A 2017-03-23 B_ESCHR_COLI S S S R TRUE #> 6 R1 A 2018-06-10 B_STPHY_AURS S S S R TRUE #> 7 S2 A 2013-07-19 B_STRPT_PNMN S S S R TRUE #> 8 P5 A 2019-03-09 B_STPHY_AURS S S S R TRUE #> 9 Q8 A 2019-08-10 B_STPHY_AURS S S S R TRUE #> 10 K5 A 2013-03-15 B_STRPT_PNMN S S S R TRUE #> # ℹ 971 more rows our_data_1st %>% filter(all(betalactams() == \"R\")) #> ℹ For `?betalactams()` using columns AMX (amoxicillin) and AMC #> (amoxicillin/clavulanic acid) #> # A tibble: 462 × 9 #> patient_id hospital date bacteria AMX AMC CIP GEN first #> #> 1 M7 A 2013-07-22 B_STRPT_PNMN R R S S TRUE #> 2 R10 A 2013-12-20 B_STPHY_AURS R R S S TRUE #> 3 R7 A 2015-10-25 B_STPHY_AURS R R S S TRUE #> 4 R8 A 2019-10-25 B_STPHY_AURS R R S S TRUE #> 5 B6 A 2016-11-20 B_ESCHR_COLI R R R R TRUE #> 6 I7 A 2015-08-19 B_ESCHR_COLI R R S S TRUE #> 7 N3 A 2014-12-29 B_STRPT_PNMN R R R S TRUE #> 8 Q2 A 2019-09-22 B_ESCHR_COLI R R S S TRUE #> 9 X7 A 2011-03-20 B_ESCHR_COLI R R S R TRUE #> 10 V1 A 2018-08-07 B_STPHY_AURS R R S S TRUE #> # ℹ 452 more rows # even works in base R (since R 3.0): our_data_1st[all(betalactams() == \"R\"), ] #> ℹ For `?betalactams()` using columns AMX (amoxicillin) and AMC #> (amoxicillin/clavulanic acid) #> # A tibble: 462 × 9 #> patient_id hospital date bacteria AMX AMC CIP GEN first #> #> 1 M7 A 2013-07-22 B_STRPT_PNMN R R S S TRUE #> 2 R10 A 2013-12-20 B_STPHY_AURS R R S S TRUE #> 3 R7 A 2015-10-25 B_STPHY_AURS R R S S TRUE #> 4 R8 A 2019-10-25 B_STPHY_AURS R R S S TRUE #> 5 B6 A 2016-11-20 B_ESCHR_COLI R R R R TRUE #> 6 I7 A 2015-08-19 B_ESCHR_COLI R R S S TRUE #> 7 N3 A 2014-12-29 B_STRPT_PNMN R R R S TRUE #> 8 Q2 A 2019-09-22 B_ESCHR_COLI R R S S TRUE #> 9 X7 A 2011-03-20 B_ESCHR_COLI R R S R TRUE #> 10 V1 A 2018-08-07 B_STPHY_AURS R R S S TRUE #> # ℹ 452 more rows"},{"path":"https://amr-for-r.org/articles/AMR.html","id":"generate-antibiograms","dir":"Articles","previous_headings":"Analysing the data","what":"Generate antibiograms","title":"Conduct AMR data analysis","text":"Since AMR v2.0 (March 2023), easy create different types antibiograms, support 20 different languages. four antibiogram types, proposed Klinker et al. (2021, DOI 10.1177/20499361211011373), supported new antibiogram() function: Traditional Antibiogram (TA) e.g, susceptibility Pseudomonas aeruginosa piperacillin/tazobactam (TZP) Combination Antibiogram (CA) e.g, sdditional susceptibility Pseudomonas aeruginosa TZP + tobramycin versus TZP alone Syndromic Antibiogram (SA) e.g, susceptibility Pseudomonas aeruginosa TZP among respiratory specimens (obtained among ICU patients ) Weighted-Incidence Syndromic Combination Antibiogram (WISCA) e.g, susceptibility Pseudomonas aeruginosa TZP among respiratory specimens (obtained among ICU patients ) male patients age >=65 years heart failure section, show use antibiogram() function create antibiogram types. starters, included example_isolates data set looks like:","code":"example_isolates #> # A tibble: 2,000 × 46 #> date patient age gender ward mo PEN OXA FLC AMX #>