vignettes/datasets.Rmd
datasets.Rmd
This data set is in R available as microorganisms
, after
you load the AMR
package.
It was last updated on 9 mei 2022 20:57:33 UTC. Find more info about -the structure of this data set here.
+It was last updated on 29 November 2021 11:38:23 UTC. Find more info +about the structure of this data set here.
Direct download links:
microorganisms
data set.
This data set is in R available as microorganisms.old
,
after you load the AMR
package.
It was last updated on 9 mei 2022 20:57:33 UTC. Find more info about -the structure of this data set here.
+It was last updated on 6 October 2021 14:38:29 UTC. Find more info +about the structure of this data set here.
Direct download links:
This data set is in R available as antibiotics
, after
you load the AMR
package.
It was last updated on 9 mei 2022 20:57:33 UTC. Find more info about -the structure of this data set here.
+It was last updated on 14 December 2021 21:59:33 UTC. Find more info +about the structure of this data set here.
Direct download links:
This data set is in R available as antivirals
, after you
load the AMR
package.
It was last updated on 9 mei 2022 20:57:33 UTC. Find more info about -the structure of this data set here.
+It was last updated on 29 August 2020 19:53:07 UTC. Find more info +about the structure of this data set here.
Direct download links:
A data set with 20,369 rows and 11 columns, containing the following +
A data set with 20,318 rows and 11 columns, containing the following
column names:
guideline, method, site, mo,
rank_index, ab, ref_tbl, disk_dose,
breakpoint_S, breakpoint_R and uti.
This data set is in R available as rsi_translation
,
after you load the AMR
package.
It was last updated on 11 mei 2022 08:14:33 UTC. Find more info about +
It was last updated on 10 May 2022 19:42:39 UTC. Find more info about the structure of this data set here.
Direct download links:
This data set is in R available as intrinsic_resistant
,
after you load the AMR
package.
It was last updated on 9 mei 2022 20:57:33 UTC. Find more info about -the structure of this data set here.
+It was last updated on 14 December 2021 21:59:33 UTC. Find more info +about the structure of this data set here.
Direct download links:
This data set is in R available as dosage
, after you
load the AMR
package.
It was last updated on 9 mei 2022 20:57:33 UTC. Find more info about -the structure of this data set here.
+It was last updated on 25 January 2021 20:58:20 UTC. Find more info +about the structure of this data set here.
Direct download links:
AMR
1.8.1.9008AMR
1.8.1.9009as.rsi()
. EUCAST 2022 is now the new default guideline for all MIC and disks diffusion interpretations.as.rsi()
on certain EUCAST breakpoints for MIC valuesas.integer()
for MIC values, since MIC are not integer values and running table()
on MIC values consequently failed for not being able to retrieve the level position (as that’s how normally as.integer()
on factor
s work)ab_from_text()
set_mo_source()
, which now also allows the source file to contain valid taxonomic names instead of only valid microorganism ID of this packagerandom_*()
function (such as random_mic()
) is now possible by directly calling the package without loading it first: AMR::random_mic(10)
+
thousands_of_E_colis <- rep("E. coli", 25000)
-microbenchmark::microbenchmark(as.mo(thousands_of_E_colis), unit = "s")
+microbenchmark::microbenchmark(as.mo(thousands_of_E_colis), unit = "s")
# Unit: seconds
# min median max neval
# 0.01817717 0.01843957 0.03878077 100
any (vector of) text that can be coerced to a valid antimicrobial code with as.ab()
defaults to the latest included EUCAST guideline, supports EUCAST (2011-2022) and CLSI (2011-2022), see Details
defaults to EUCAST 2022 (the latest implemented EUCAST guideline in the rsi_translation data set), supports EUCAST (2011-2022) and CLSI (2011-2022), see Details
(Urinary Tract Infection) A vector with logicals (TRUE
or FALSE
) to specify whether a UTI specific interpretation from the guideline should be chosen. For using as.rsi()
on a data.frame, this can also be a column containing logicals or when left blank, the data set will be searched for a column 'specimen', and rows within this column containing 'urin' (such as 'urine', 'urina') will be regarded isolates from a UTI. See Examples.
a numeric vector; ignored if x
is a matrix. If
x
is a factor, y
should be a factor of the same length.
a vector of probabilities of the same length of x
.
+
a vector of probabilities of the same length as x
.
An error is given if any entry of p
is negative.
a logical scalar; if TRUE then p
is rescaled
diff --git a/docs/reference/index.html b/docs/reference/index.html
index 86b39403..5b35de2c 100644
--- a/docs/reference/index.html
+++ b/docs/reference/index.html
@@ -17,7 +17,7 @@
diff --git a/docs/reference/intrinsic_resistant.html b/docs/reference/intrinsic_resistant.html
index 3fb0667a..0c288287 100644
--- a/docs/reference/intrinsic_resistant.html
+++ b/docs/reference/intrinsic_resistant.html
@@ -17,7 +17,7 @@
diff --git a/docs/reference/mdro.html b/docs/reference/mdro.html
index 07d1c156..a0388fdc 100644
--- a/docs/reference/mdro.html
+++ b/docs/reference/mdro.html
@@ -17,7 +17,7 @@
diff --git a/docs/reference/mo_property.html b/docs/reference/mo_property.html
index f99c6b87..82052174 100644
--- a/docs/reference/mo_property.html
+++ b/docs/reference/mo_property.html
@@ -17,7 +17,7 @@
diff --git a/docs/reference/mo_source.html b/docs/reference/mo_source.html
index af843bed..6398c3a6 100644
--- a/docs/reference/mo_source.html
+++ b/docs/reference/mo_source.html
@@ -18,7 +18,7 @@ This is the fastest way to have your organisation (or analysis) specific codes p
diff --git a/docs/reference/random.html b/docs/reference/random.html
index b0a630c6..72a9be45 100644
--- a/docs/reference/random.html
+++ b/docs/reference/random.html
@@ -17,7 +17,7 @@
@@ -189,7 +189,7 @@
The base R function sample()
is used for generating values.
Generated values are based on the latest EUCAST guideline implemented in the rsi_translation data set. To create specific generated values per bug or drug, set the mo
and/or ab
argument.
Generated values are based on the EUCAST 2022 guideline as implemented in the rsi_translation data set. To create specific generated values per bug or drug, set the mo
and/or ab
argument.
The repository of this AMR
package contains a file comprising this exact data set: https://github.com/msberends/AMR/blob/main/data-raw/rsi_translation.txt. This file allows for machine reading EUCAST and CLSI guidelines, which is almost impossible with the Excel and PDF files distributed by EUCAST and CLSI. The file is updated automatically and the mo
and ab
columns have been transformed to contain the full official names instead of codes.
Overview of the data set:
head(rsi_translation)
## guideline method site mo rank_index ab ref_tbl disk_dose
+## 1 EUCAST 2022 MIC <NA> F_ASPRG_MGTS 2 AMB Aspergillus <NA>
+## 2 EUCAST 2022 MIC <NA> F_ASPRG_NIGR 2 AMB Aspergillus <NA>
+## 3 EUCAST 2022 MIC <NA> F_CANDD 3 AMB Candida <NA>
+## 4 EUCAST 2022 MIC <NA> F_CANDD_ALBC 2 AMB Candida <NA>
+## 5 EUCAST 2022 MIC <NA> F_CANDD_DBLN 2 AMB Candida <NA>
+## 6 EUCAST 2022 MIC <NA> F_CANDD_KRUS 2 AMB Candida <NA>
+## breakpoint_S breakpoint_R uti
+## 1 1 1 FALSE
+## 2 1 1 FALSE
+## 3 1 1 FALSE
+## 4 1 1 FALSE
+## 5 1 1 FALSE
+## 6 1 1 FALSE
The repository of this AMR
package contains a file comprising this exact data set: https://github.com/msberends/AMR/blob/main/data-raw/rsi_translation.txt. This file allows for machine reading EUCAST and CLSI guidelines, which is almost impossible with the Excel and PDF files distributed by EUCAST and CLSI. The file is updated automatically and the mo
and ab
columns have been transformed to contain the full official names instead of codes.