mirror of
https://github.com/msberends/AMR.git
synced 2026-11-29 05:26:13 +01:00
Built release reference for AMR@2.1.1
This commit is contained in:
1 parent
ea5b222bb3
commit
b7b778003c
62 files changed
+13189
No files matched your search
@@ -0,0 +1,59 @@
|
||||
# Data Set with 4 957 Common Microorganism Codes
|
||||
|
||||
A data set containing commonly used codes for microorganisms, from
|
||||
laboratory systems and [WHONET](https://whonet.org). Define your own
|
||||
with
|
||||
[`set_mo_source()`](https://amr-for-r.org/release/2.1.1/reference/mo_source.md).
|
||||
They will all be searched when using
|
||||
[`as.mo()`](https://amr-for-r.org/release/2.1.1/reference/as.mo.md) and
|
||||
consequently all the
|
||||
[`mo_*`](https://amr-for-r.org/release/2.1.1/reference/mo_property.md)
|
||||
functions.
|
||||
|
||||
## Usage
|
||||
|
||||
``` r
|
||||
microorganisms.codes
|
||||
```
|
||||
|
||||
## Format
|
||||
|
||||
A [tibble](https://tibble.tidyverse.org/reference/tibble.html) with 4
|
||||
957 observations and 2 variables:
|
||||
|
||||
- `code`
|
||||
Commonly used code of a microorganism. *This is a unique identifier.*
|
||||
|
||||
- `mo`
|
||||
ID of the microorganism in the
|
||||
[microorganisms](https://amr-for-r.org/release/2.1.1/reference/microorganisms.md)
|
||||
data set
|
||||
|
||||
## Details
|
||||
|
||||
Like all data sets in this package, this data set is publicly available
|
||||
for download in the following formats: R, MS Excel, Apache Feather,
|
||||
Apache Parquet, SPSS, SAS, and Stata. Please visit [our website for the
|
||||
download links](https://msberends.github.io/AMR/articles/datasets.html).
|
||||
The actual files are of course available on [our GitHub
|
||||
repository](https://github.com/msberends/AMR/tree/main/data-raw).
|
||||
|
||||
## See also
|
||||
|
||||
[`as.mo()`](https://amr-for-r.org/release/2.1.1/reference/as.mo.md)
|
||||
[microorganisms](https://amr-for-r.org/release/2.1.1/reference/microorganisms.md)
|
||||
|
||||
## Examples
|
||||
|
||||
``` r
|
||||
microorganisms.codes
|
||||
|
||||
# 'ECO' or 'eco' is the WHONET code for E. coli:
|
||||
microorganisms.codes[microorganisms.codes$code == "ECO", ]
|
||||
|
||||
# and therefore, 'eco' will be understood as E. coli in this package:
|
||||
mo_info("eco")
|
||||
|
||||
# works for all AMR functions:
|
||||
mo_is_intrinsic_resistant("eco", ab = "vancomycin")
|
||||
```
|
||||
Reference in new issue
Block a user