+#> 1 Clinical 0.229 0.205-0.254 0.315 0.284-0.347
+#> 2 ICU 0.290 0.253-0.33 0.400 0.353-0.449
+#> 3 Outpatient 0.2 0.131-0.285 0.368 0.254-0.493
Or use antimicrobial selectors to select a series of antibiotic columns:
library ( AMR )
@@ -432,29 +432,29 @@
#> "Outpatient" (minimum = 30).
out
#> # A tibble: 3 × 6
-#> ward GEN TOB AMK KAN COL
-#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
-#> 1 Clinical 0.2289362 0.3147503 0.6258993 1 0.7802956
-#> 2 ICU 0.2902655 0.4004739 0.6624473 1 0.8574144
-#> 3 Outpatient 0.2 0.3676471 0.6052632 NA 0.8888889
+#> ward GEN TOB AMK KAN COL
+#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
+#> 1 Clinical 0.229 0.315 0.626 1 0.780
+#> 2 ICU 0.290 0.400 0.662 1 0.857
+#> 3 Outpatient 0.2 0.368 0.605 NA 0.889
# transform the antibiotic columns to names:
out %>% set_ab_names ( )
#> # A tibble: 3 × 6
-#> ward gentamicin tobramycin amikacin kanamycin colistin
-#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
-#> 1 Clinical 0.2289362 0.3147503 0.6258993 1 0.7802956
-#> 2 ICU 0.2902655 0.4004739 0.6624473 1 0.8574144
-#> 3 Outpatient 0.2 0.3676471 0.6052632 NA 0.8888889
+#> ward gentamicin tobramycin amikacin kanamycin colistin
+#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
+#> 1 Clinical 0.229 0.315 0.626 1 0.780
+#> 2 ICU 0.290 0.400 0.662 1 0.857
+#> 3 Outpatient 0.2 0.368 0.605 NA 0.889
# transform the antibiotic column to ATC codes:
out %>% set_ab_names ( property = "atc" )
#> # A tibble: 3 × 6
-#> ward J01GB03 J01GB01 J01GB06 J01GB04 J01XB01
-#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
-#> 1 Clinical 0.2289362 0.3147503 0.6258993 1 0.7802956
-#> 2 ICU 0.2902655 0.4004739 0.6624473 1 0.8574144
-#> 3 Outpatient 0.2 0.3676471 0.6052632 NA 0.8888889
+#> ward J01GB03 J01GB01 J01GB06 J01GB04 J01XB01
+#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
+#> 1 Clinical 0.229 0.315 0.626 1 0.780
+#> 2 ICU 0.290 0.400 0.662 1 0.857
+#> 3 Outpatient 0.2 0.368 0.605 NA 0.889
diff --git a/news/index.html b/news/index.html
index 0f2430825..dd4af9e7d 100644
--- a/news/index.html
+++ b/news/index.html
@@ -7,7 +7,7 @@
AMR (for R)
-
3.0.0.9004
+
3.0.0.9008
@@ -49,24 +49,26 @@
-
AMR 3.0.0.9004
+
AMR 3.0.0.9008
+
This is primarily a bugfix release, though we added one nice feature too.
-
New
+
New
Integration with the tidymodels framework to allow seamless use of MIC and SIR data in modelling pipelines via recipes
-
Changed
+
Changed
Fixed a bug in antibiogram()
for when no antimicrobials are set
+Fixed a bug in antibiogram()
to allow column names containing the +
character (#222 )
Fixed a bug in as.ab()
for antimicrobial codes with a number in it if they are preceded by a space
Fixed a bug in eucast_rules()
for using specific custom rules
+Fixed a bug in as.sir()
to allow any tidyselect language (#220 )
+Fixed a bug in ggplot_sir()
when using combine_SI = FALSE
(#213 )
+Fixed all plotting to contain a separate colour for SDD (susceptible dose-dependent)
Fixed some specific Dutch translations for antimicrobials
Updated random_mic()
and random_disk()
to set skewedness of the distribution and allow multiple microorganisms
diff --git a/pkgdown.yml b/pkgdown.yml
index 10ef19109..47d665c0e 100644
--- a/pkgdown.yml
+++ b/pkgdown.yml
@@ -10,7 +10,7 @@ articles:
PCA: PCA.html
WHONET: WHONET.html
WISCA: WISCA.html
-last_built: 2025-06-22T18:50Z
+last_built: 2025-07-17T15:12Z
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 c5e420a9c..39918cfa6 100644
--- a/reference/AMR-deprecated.html
+++ b/reference/AMR-deprecated.html
@@ -7,7 +7,7 @@
AMR (for R)
-
3.0.0.9004
+
3.0.0.9008
diff --git a/reference/AMR-options.html b/reference/AMR-options.html
index d200efdc4..0276c8b2a 100644
--- a/reference/AMR-options.html
+++ b/reference/AMR-options.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.0.9004
+ 3.0.0.9008
diff --git a/reference/AMR.html b/reference/AMR.html
index 7af7a47f9..1ebe75719 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.0.9004
+ 3.0.0.9008
diff --git a/reference/WHOCC.html b/reference/WHOCC.html
index 8e5851461..9fd7c4512 100644
--- a/reference/WHOCC.html
+++ b/reference/WHOCC.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.0.9004
+ 3.0.0.9008
diff --git a/reference/WHONET.html b/reference/WHONET.html
index 38565f30c..a47be775a 100644
--- a/reference/WHONET.html
+++ b/reference/WHONET.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.0.9004
+ 3.0.0.9008
diff --git a/reference/ab_from_text.html b/reference/ab_from_text.html
index 124c7812a..c97c5b852 100644
--- a/reference/ab_from_text.html
+++ b/reference/ab_from_text.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.0.9004
+ 3.0.0.9008
diff --git a/reference/ab_property.html b/reference/ab_property.html
index 285ab9f1d..a71287ab5 100644
--- a/reference/ab_property.html
+++ b/reference/ab_property.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.0.9004
+ 3.0.0.9008
diff --git a/reference/add_custom_antimicrobials.html b/reference/add_custom_antimicrobials.html
index a6efe76de..bb51e7b85 100644
--- a/reference/add_custom_antimicrobials.html
+++ b/reference/add_custom_antimicrobials.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.0.9004
+ 3.0.0.9008
diff --git a/reference/add_custom_microorganisms.html b/reference/add_custom_microorganisms.html
index ff1062152..5685622fe 100644
--- a/reference/add_custom_microorganisms.html
+++ b/reference/add_custom_microorganisms.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.0.9004
+ 3.0.0.9008
diff --git a/reference/age.html b/reference/age.html
index 0b11e10d2..c47ebed56 100644
--- a/reference/age.html
+++ b/reference/age.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.0.0.9004
+ 3.0.0.9008
@@ -112,16 +112,16 @@
df
#> birth_date age age_exact age_at_y2k
-#> 1 1980-02-27 45 45.31507 19
-#> 2 1953-07-26 71 71.90685 46
-#> 3 1949-09-02 75 75.80274 50
-#> 4 1986-08-03 38 38.88493 13
-#> 5 1932-11-19 92 92.58904 67
-#> 6 1949-03-30 76 76.23014 50
-#> 7 1996-06-23 28 28.99726 3
-#> 8 1963-09-16 61 61.76438 36
-#> 9 1952-05-16 73 73.10137 47
-#> 10 1952-11-14 72 72.60274 47
+#> 1 1980-02-27 45 45.38356 19
+#> 2 1953-07-26 71 71.97534 46
+#> 3 1949-09-02 75 75.87123 50
+#> 4 1986-08-03 38 38.95342 13
+#> 5 1932-11-19 92 92.65753 67
+#> 6 1949-03-30 76 76.29863 50
+#> 7 1996-06-23 29 29.06575 3
+#> 8 1963-09-16 61 61.83288 36
+#> 9 1952-05-16 73 73.16986 47
+#> 10 1952-11-14 72 72.67123 47