mirror of
https://github.com/msberends/AMR.git
synced 2025-07-09 23:41:55 +02:00
(v1.3.0.9005) website update
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
Package: AMR
|
Package: AMR
|
||||||
Version: 1.3.0.9004
|
Version: 1.3.0.9005
|
||||||
Date: 2020-08-16
|
Date: 2020-08-17
|
||||||
Title: Antimicrobial Resistance Analysis
|
Title: Antimicrobial Resistance Analysis
|
||||||
Authors@R: c(
|
Authors@R: c(
|
||||||
person(role = c("aut", "cre"),
|
person(role = c("aut", "cre"),
|
||||||
|
4
NEWS.md
4
NEWS.md
@ -1,5 +1,5 @@
|
|||||||
# AMR 1.3.0.9004
|
# AMR 1.3.0.9005
|
||||||
## <small>Last updated: 16 August 2020</small>
|
## <small>Last updated: 17 August 2020</small>
|
||||||
|
|
||||||
### New
|
### New
|
||||||
* Data set `intrinsic_resistant`. This data set contains all bug-drug combinations where the 'bug' is intrinsic resistant to the 'drug' according to the latest EUCAST insights. It contains just two columns: `microorganism` and `antibiotic`.
|
* Data set `intrinsic_resistant`. This data set contains all bug-drug combinations where the 'bug' is intrinsic resistant to the 'drug' according to the latest EUCAST insights. It contains just two columns: `microorganism` and `antibiotic`.
|
||||||
|
@ -44,7 +44,7 @@ navbar:
|
|||||||
- text: "Predict antimicrobial resistance"
|
- text: "Predict antimicrobial resistance"
|
||||||
icon: "fa-dice"
|
icon: "fa-dice"
|
||||||
href: "articles/resistance_predict.html"
|
href: "articles/resistance_predict.html"
|
||||||
- text: "Download our free data sets"
|
- text: "Download our reference data sets for own use"
|
||||||
icon: "fa-database"
|
icon: "fa-database"
|
||||||
href: "articles/datasets.html"
|
href: "articles/datasets.html"
|
||||||
- text: "Conduct principal component analysis for AMR"
|
- text: "Conduct principal component analysis for AMR"
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -89,6 +89,13 @@ haven::write_sav(mo, "data-raw/microorganisms.sav")
|
|||||||
haven::write_dta(mo, "data-raw/microorganisms.dta")
|
haven::write_dta(mo, "data-raw/microorganisms.dta")
|
||||||
openxlsx::write.xlsx(mo, "data-raw/microorganisms.xlsx")
|
openxlsx::write.xlsx(mo, "data-raw/microorganisms.xlsx")
|
||||||
|
|
||||||
|
saveRDS(microorganisms.old, "data-raw/microorganisms.old.rds", version = 2)
|
||||||
|
write.table(microorganisms.old, "data-raw/microorganisms.old.txt", sep = "\t", na = "", row.names = FALSE)
|
||||||
|
haven::write_sas(microorganisms.old, "data-raw/microorganisms.old.sas")
|
||||||
|
haven::write_sav(microorganisms.old, "data-raw/microorganisms.old.sav")
|
||||||
|
haven::write_dta(microorganisms.old, "data-raw/microorganisms.old.dta")
|
||||||
|
openxlsx::write.xlsx(microorganisms.old, "data-raw/microorganisms.old.xlsx")
|
||||||
|
|
||||||
ab <- dplyr::mutate_if(antibiotics, ~!is.numeric(.), as.character)
|
ab <- dplyr::mutate_if(antibiotics, ~!is.numeric(.), as.character)
|
||||||
saveRDS(ab, "data-raw/antibiotics.rds", version = 2)
|
saveRDS(ab, "data-raw/antibiotics.rds", version = 2)
|
||||||
write.table(ab, "data-raw/antibiotics.txt", sep = "\t", na = "", row.names = FALSE)
|
write.table(ab, "data-raw/antibiotics.txt", sep = "\t", na = "", row.names = FALSE)
|
||||||
|
Binary file not shown.
BIN
data-raw/microorganisms.old.dta
Normal file
BIN
data-raw/microorganisms.old.dta
Normal file
Binary file not shown.
BIN
data-raw/microorganisms.old.rds
Normal file
BIN
data-raw/microorganisms.old.rds
Normal file
Binary file not shown.
BIN
data-raw/microorganisms.old.sas
Normal file
BIN
data-raw/microorganisms.old.sas
Normal file
Binary file not shown.
BIN
data-raw/microorganisms.old.sav
Normal file
BIN
data-raw/microorganisms.old.sav
Normal file
Binary file not shown.
12709
data-raw/microorganisms.old.txt
Normal file
12709
data-raw/microorganisms.old.txt
Normal file
File diff suppressed because it is too large
Load Diff
BIN
data-raw/microorganisms.old.xlsx
Normal file
BIN
data-raw/microorganisms.old.xlsx
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -81,7 +81,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<span class="navbar-brand">
|
<span class="navbar-brand">
|
||||||
<a class="navbar-link" href="https://msberends.github.io/AMR/index.html">AMR (for R)</a>
|
<a class="navbar-link" href="https://msberends.github.io/AMR/index.html">AMR (for R)</a>
|
||||||
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9004</span>
|
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9005</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -121,7 +121,7 @@
|
|||||||
<a href="articles/datasets.html">
|
<a href="articles/datasets.html">
|
||||||
<span class="fa fa-database"></span>
|
<span class="fa fa-database"></span>
|
||||||
|
|
||||||
Download our free data sets
|
Download our reference data sets for own use
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
@ -81,7 +81,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<span class="navbar-brand">
|
<span class="navbar-brand">
|
||||||
<a class="navbar-link" href="index.html">AMR (for R)</a>
|
<a class="navbar-link" href="index.html">AMR (for R)</a>
|
||||||
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9004</span>
|
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9005</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -121,7 +121,7 @@
|
|||||||
<a href="articles/datasets.html">
|
<a href="articles/datasets.html">
|
||||||
<span class="fa fa-database"></span>
|
<span class="fa fa-database"></span>
|
||||||
|
|
||||||
Download our free data sets
|
Download our reference data sets for own use
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<span class="navbar-brand">
|
<span class="navbar-brand">
|
||||||
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
||||||
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9002</span>
|
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9005</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -75,6 +75,13 @@
|
|||||||
Predict antimicrobial resistance
|
Predict antimicrobial resistance
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="../articles/datasets.html">
|
||||||
|
<span class="fa fa-database"></span>
|
||||||
|
|
||||||
|
Download our reference data sets for own use
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="../articles/PCA.html">
|
<a href="../articles/PCA.html">
|
||||||
<span class="fa fa-compress"></span>
|
<span class="fa fa-compress"></span>
|
||||||
@ -184,9 +191,7 @@
|
|||||||
<div class="col-md-9 contents">
|
<div class="col-md-9 contents">
|
||||||
<div class="page-header toc-ignore">
|
<div class="page-header toc-ignore">
|
||||||
<h1 data-toc-skip>How to apply EUCAST rules</h1>
|
<h1 data-toc-skip>How to apply EUCAST rules</h1>
|
||||||
<h4 class="author">Matthijs S. Berends</h4>
|
|
||||||
|
|
||||||
<h4 class="date">14 August 2020</h4>
|
|
||||||
|
|
||||||
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/master/vignettes/EUCAST.Rmd"><code>vignettes/EUCAST.Rmd</code></a></small>
|
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/master/vignettes/EUCAST.Rmd"><code>vignettes/EUCAST.Rmd</code></a></small>
|
||||||
<div class="hidden name"><code>EUCAST.Rmd</code></div>
|
<div class="hidden name"><code>EUCAST.Rmd</code></div>
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<span class="navbar-brand">
|
<span class="navbar-brand">
|
||||||
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
||||||
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9002</span>
|
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9005</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -75,6 +75,13 @@
|
|||||||
Predict antimicrobial resistance
|
Predict antimicrobial resistance
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="../articles/datasets.html">
|
||||||
|
<span class="fa fa-database"></span>
|
||||||
|
|
||||||
|
Download our reference data sets for own use
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="../articles/PCA.html">
|
<a href="../articles/PCA.html">
|
||||||
<span class="fa fa-compress"></span>
|
<span class="fa fa-compress"></span>
|
||||||
@ -184,9 +191,7 @@
|
|||||||
<div class="col-md-9 contents">
|
<div class="col-md-9 contents">
|
||||||
<div class="page-header toc-ignore">
|
<div class="page-header toc-ignore">
|
||||||
<h1 data-toc-skip>How to determine multi-drug resistance (MDR)</h1>
|
<h1 data-toc-skip>How to determine multi-drug resistance (MDR)</h1>
|
||||||
<h4 class="author">Matthijs S. Berends</h4>
|
|
||||||
|
|
||||||
<h4 class="date">14 August 2020</h4>
|
|
||||||
|
|
||||||
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/master/vignettes/MDR.Rmd"><code>vignettes/MDR.Rmd</code></a></small>
|
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/master/vignettes/MDR.Rmd"><code>vignettes/MDR.Rmd</code></a></small>
|
||||||
<div class="hidden name"><code>MDR.Rmd</code></div>
|
<div class="hidden name"><code>MDR.Rmd</code></div>
|
||||||
@ -315,19 +320,19 @@ Unique: 2</p>
|
|||||||
<div class="sourceCode" id="cb5"><pre class="downlit">
|
<div class="sourceCode" id="cb5"><pre class="downlit">
|
||||||
<span class="fu"><a href="https://rdrr.io/r/utils/head.html">head</a></span>(<span class="kw">my_TB_data</span>)
|
<span class="fu"><a href="https://rdrr.io/r/utils/head.html">head</a></span>(<span class="kw">my_TB_data</span>)
|
||||||
<span class="co"># rifampicin isoniazid gatifloxacin ethambutol pyrazinamide moxifloxacin</span>
|
<span class="co"># rifampicin isoniazid gatifloxacin ethambutol pyrazinamide moxifloxacin</span>
|
||||||
<span class="co"># 1 R R R R R S</span>
|
<span class="co"># 1 S S S S S R</span>
|
||||||
<span class="co"># 2 S R S I I S</span>
|
<span class="co"># 2 S R S R S S</span>
|
||||||
<span class="co"># 3 R R R S S S</span>
|
<span class="co"># 3 R S S S I R</span>
|
||||||
<span class="co"># 4 S I S R I S</span>
|
<span class="co"># 4 R S R S R R</span>
|
||||||
<span class="co"># 5 S R R R S R</span>
|
<span class="co"># 5 R S S R S R</span>
|
||||||
<span class="co"># 6 S S R S S R</span>
|
<span class="co"># 6 S R I S R S</span>
|
||||||
<span class="co"># kanamycin</span>
|
<span class="co"># kanamycin</span>
|
||||||
<span class="co"># 1 S</span>
|
<span class="co"># 1 S</span>
|
||||||
<span class="co"># 2 I</span>
|
<span class="co"># 2 R</span>
|
||||||
<span class="co"># 3 R</span>
|
<span class="co"># 3 R</span>
|
||||||
<span class="co"># 4 R</span>
|
<span class="co"># 4 S</span>
|
||||||
<span class="co"># 5 S</span>
|
<span class="co"># 5 R</span>
|
||||||
<span class="co"># 6 I</span>
|
<span class="co"># 6 R</span>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
<p>We can now add the interpretation of MDR-TB to our data set. You can use:</p>
|
<p>We can now add the interpretation of MDR-TB to our data set. You can use:</p>
|
||||||
<div class="sourceCode" id="cb6"><pre class="downlit">
|
<div class="sourceCode" id="cb6"><pre class="downlit">
|
||||||
@ -363,40 +368,40 @@ Unique: 5</p>
|
|||||||
<tr class="odd">
|
<tr class="odd">
|
||||||
<td align="left">1</td>
|
<td align="left">1</td>
|
||||||
<td align="left">Mono-resistant</td>
|
<td align="left">Mono-resistant</td>
|
||||||
<td align="right">3241</td>
|
<td align="right">3203</td>
|
||||||
<td align="right">64.82%</td>
|
<td align="right">64.06%</td>
|
||||||
<td align="right">3241</td>
|
<td align="right">3203</td>
|
||||||
<td align="right">64.82%</td>
|
<td align="right">64.06%</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="even">
|
<tr class="even">
|
||||||
<td align="left">2</td>
|
<td align="left">2</td>
|
||||||
<td align="left">Negative</td>
|
<td align="left">Negative</td>
|
||||||
<td align="right">642</td>
|
<td align="right">682</td>
|
||||||
<td align="right">12.84%</td>
|
<td align="right">13.64%</td>
|
||||||
<td align="right">3883</td>
|
<td align="right">3885</td>
|
||||||
<td align="right">77.66%</td>
|
<td align="right">77.70%</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="odd">
|
<tr class="odd">
|
||||||
<td align="left">3</td>
|
<td align="left">3</td>
|
||||||
<td align="left">Multi-drug-resistant</td>
|
<td align="left">Multi-drug-resistant</td>
|
||||||
<td align="right">595</td>
|
<td align="right">627</td>
|
||||||
<td align="right">11.90%</td>
|
<td align="right">12.54%</td>
|
||||||
<td align="right">4478</td>
|
<td align="right">4512</td>
|
||||||
<td align="right">89.56%</td>
|
<td align="right">90.24%</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="even">
|
<tr class="even">
|
||||||
<td align="left">4</td>
|
<td align="left">4</td>
|
||||||
<td align="left">Poly-resistant</td>
|
<td align="left">Poly-resistant</td>
|
||||||
<td align="right">311</td>
|
<td align="right">268</td>
|
||||||
<td align="right">6.22%</td>
|
<td align="right">5.36%</td>
|
||||||
<td align="right">4789</td>
|
<td align="right">4780</td>
|
||||||
<td align="right">95.78%</td>
|
<td align="right">95.60%</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="odd">
|
<tr class="odd">
|
||||||
<td align="left">5</td>
|
<td align="left">5</td>
|
||||||
<td align="left">Extensively drug-resistant</td>
|
<td align="left">Extensively drug-resistant</td>
|
||||||
<td align="right">211</td>
|
<td align="right">220</td>
|
||||||
<td align="right">4.22%</td>
|
<td align="right">4.40%</td>
|
||||||
<td align="right">5000</td>
|
<td align="right">5000</td>
|
||||||
<td align="right">100.00%</td>
|
<td align="right">100.00%</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<span class="navbar-brand">
|
<span class="navbar-brand">
|
||||||
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
||||||
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9002</span>
|
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9005</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -75,6 +75,13 @@
|
|||||||
Predict antimicrobial resistance
|
Predict antimicrobial resistance
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="../articles/datasets.html">
|
||||||
|
<span class="fa fa-database"></span>
|
||||||
|
|
||||||
|
Download our reference data sets for own use
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="../articles/PCA.html">
|
<a href="../articles/PCA.html">
|
||||||
<span class="fa fa-compress"></span>
|
<span class="fa fa-compress"></span>
|
||||||
@ -184,9 +191,7 @@
|
|||||||
<div class="col-md-9 contents">
|
<div class="col-md-9 contents">
|
||||||
<div class="page-header toc-ignore">
|
<div class="page-header toc-ignore">
|
||||||
<h1 data-toc-skip>How to conduct principal component analysis (PCA) for AMR</h1>
|
<h1 data-toc-skip>How to conduct principal component analysis (PCA) for AMR</h1>
|
||||||
<h4 class="author">Matthijs S. Berends</h4>
|
|
||||||
|
|
||||||
<h4 class="date">14 August 2020</h4>
|
|
||||||
|
|
||||||
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/master/vignettes/PCA.Rmd"><code>vignettes/PCA.Rmd</code></a></small>
|
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/master/vignettes/PCA.Rmd"><code>vignettes/PCA.Rmd</code></a></small>
|
||||||
<div class="hidden name"><code>PCA.Rmd</code></div>
|
<div class="hidden name"><code>PCA.Rmd</code></div>
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<span class="navbar-brand">
|
<span class="navbar-brand">
|
||||||
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
||||||
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9002</span>
|
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9005</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -75,6 +75,13 @@
|
|||||||
Predict antimicrobial resistance
|
Predict antimicrobial resistance
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="../articles/datasets.html">
|
||||||
|
<span class="fa fa-database"></span>
|
||||||
|
|
||||||
|
Download our reference data sets for own use
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="../articles/PCA.html">
|
<a href="../articles/PCA.html">
|
||||||
<span class="fa fa-compress"></span>
|
<span class="fa fa-compress"></span>
|
||||||
@ -186,7 +193,7 @@
|
|||||||
<h1 data-toc-skip>How to import data from SPSS / SAS / Stata</h1>
|
<h1 data-toc-skip>How to import data from SPSS / SAS / Stata</h1>
|
||||||
<h4 class="author">Matthijs S. Berends</h4>
|
<h4 class="author">Matthijs S. Berends</h4>
|
||||||
|
|
||||||
<h4 class="date">14 August 2020</h4>
|
<h4 class="date">17 August 2020</h4>
|
||||||
|
|
||||||
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/master/vignettes/SPSS.Rmd"><code>vignettes/SPSS.Rmd</code></a></small>
|
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/master/vignettes/SPSS.Rmd"><code>vignettes/SPSS.Rmd</code></a></small>
|
||||||
<div class="hidden name"><code>SPSS.Rmd</code></div>
|
<div class="hidden name"><code>SPSS.Rmd</code></div>
|
||||||
@ -207,7 +214,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p><strong>R is highly modular.</strong></p>
|
<p><strong>R is highly modular.</strong></p>
|
||||||
<p>The <a href="https://cran.r-project.org/">official R network (CRAN)</a> features almost 14,000 packages at the time of writing, our <code>AMR</code> package being one of them. All these packages were peer-reviewed before publication. Aside from this official channel, there are also developers who choose not to submit to CRAN, but rather keep it on their own public repository, like GitHub. So there may even be a lot more than 14,000 packages out there.</p>
|
<p>The <a href="https://cran.r-project.org/">official R network (CRAN)</a> features more than 16,000 packages at the time of writing, our <code>AMR</code> package being one of them. All these packages were peer-reviewed before publication. Aside from this official channel, there are also developers who choose not to submit to CRAN, but rather keep it on their own public repository, like GitHub. So there may even be a lot more than 14,000 packages out there.</p>
|
||||||
<p>Bottom line is, you can really extend it yourself or ask somebody to do this for you. Take for example our <code>AMR</code> package. Among other things, it adds reliable reference data to R to help you with the data cleaning and analysis. SPSS, SAS and Stata will never know what a valid MIC value is or what the Gram stain of <em>E. coli</em> is. Or that all species of <em>Klebiella</em> are resistant to amoxicillin and that Floxapen<sup>®</sup> is a trade name of flucloxacillin. These facts and properties are often needed to clean existing data, which would be very inconvenient in a software package without reliable reference data. See below for a demonstration.</p>
|
<p>Bottom line is, you can really extend it yourself or ask somebody to do this for you. Take for example our <code>AMR</code> package. Among other things, it adds reliable reference data to R to help you with the data cleaning and analysis. SPSS, SAS and Stata will never know what a valid MIC value is or what the Gram stain of <em>E. coli</em> is. Or that all species of <em>Klebiella</em> are resistant to amoxicillin and that Floxapen<sup>®</sup> is a trade name of flucloxacillin. These facts and properties are often needed to clean existing data, which would be very inconvenient in a software package without reliable reference data. See below for a demonstration.</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@ -221,7 +228,7 @@
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p><strong>R has a huge community.</strong></p>
|
<p><strong>R has a huge community.</strong></p>
|
||||||
<p>Many R users just ask questions on websites like <a href="https://stackoverflow.com">StackOverflow.com</a>, the largest online community for programmers. At the time of writing, more than <a href="https://stackoverflow.com/questions/tagged/r?sort=votes">300,000 R-related questions</a> have already been asked on this platform (which covers questions and answers for any programming language). In my own experience, most questions are answered within a couple of minutes.</p>
|
<p>Many R users just ask questions on websites like <a href="https://stackoverflow.com">StackOverflow.com</a>, the largest online community for programmers. At the time of writing, more than <a href="https://stackoverflow.com/questions/tagged/r?sort=votes">360,000 R-related questions</a> have already been asked on this platform (which covers questions and answers for any programming language). In my own experience, most questions are answered within a couple of minutes.</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p><strong>R understands any data type, including SPSS/SAS/Stata.</strong></p>
|
<p><strong>R understands any data type, including SPSS/SAS/Stata.</strong></p>
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<span class="navbar-brand">
|
<span class="navbar-brand">
|
||||||
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
||||||
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9002</span>
|
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9005</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -75,6 +75,13 @@
|
|||||||
Predict antimicrobial resistance
|
Predict antimicrobial resistance
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="../articles/datasets.html">
|
||||||
|
<span class="fa fa-database"></span>
|
||||||
|
|
||||||
|
Download our reference data sets for own use
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="../articles/PCA.html">
|
<a href="../articles/PCA.html">
|
||||||
<span class="fa fa-compress"></span>
|
<span class="fa fa-compress"></span>
|
||||||
@ -184,9 +191,7 @@
|
|||||||
<div class="col-md-9 contents">
|
<div class="col-md-9 contents">
|
||||||
<div class="page-header toc-ignore">
|
<div class="page-header toc-ignore">
|
||||||
<h1 data-toc-skip>How to work with WHONET data</h1>
|
<h1 data-toc-skip>How to work with WHONET data</h1>
|
||||||
<h4 class="author">Matthijs S. Berends</h4>
|
|
||||||
|
|
||||||
<h4 class="date">14 August 2020</h4>
|
|
||||||
|
|
||||||
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/master/vignettes/WHONET.Rmd"><code>vignettes/WHONET.Rmd</code></a></small>
|
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/master/vignettes/WHONET.Rmd"><code>vignettes/WHONET.Rmd</code></a></small>
|
||||||
<div class="hidden name"><code>WHONET.Rmd</code></div>
|
<div class="hidden name"><code>WHONET.Rmd</code></div>
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<span class="navbar-brand">
|
<span class="navbar-brand">
|
||||||
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
||||||
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9002</span>
|
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9005</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -75,6 +75,13 @@
|
|||||||
Predict antimicrobial resistance
|
Predict antimicrobial resistance
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="../articles/datasets.html">
|
||||||
|
<span class="fa fa-database"></span>
|
||||||
|
|
||||||
|
Download our reference data sets for own use
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="../articles/PCA.html">
|
<a href="../articles/PCA.html">
|
||||||
<span class="fa fa-compress"></span>
|
<span class="fa fa-compress"></span>
|
||||||
@ -184,9 +191,7 @@
|
|||||||
<div class="col-md-9 contents">
|
<div class="col-md-9 contents">
|
||||||
<div class="page-header toc-ignore">
|
<div class="page-header toc-ignore">
|
||||||
<h1 data-toc-skip>Benchmarks</h1>
|
<h1 data-toc-skip>Benchmarks</h1>
|
||||||
<h4 class="author">Matthijs S. Berends</h4>
|
|
||||||
|
|
||||||
<h4 class="date">14 August 2020</h4>
|
|
||||||
|
|
||||||
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/master/vignettes/benchmarks.Rmd"><code>vignettes/benchmarks.Rmd</code></a></small>
|
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/master/vignettes/benchmarks.Rmd"><code>vignettes/benchmarks.Rmd</code></a></small>
|
||||||
<div class="hidden name"><code>benchmarks.Rmd</code></div>
|
<div class="hidden name"><code>benchmarks.Rmd</code></div>
|
||||||
@ -225,55 +230,29 @@
|
|||||||
<span class="fu"><a href="https://rdrr.io/r/base/print.html">print</a></span>(<span class="kw">S.aureus</span>, unit = <span class="st">"ms"</span>, signif = <span class="fl">2</span>)
|
<span class="fu"><a href="https://rdrr.io/r/base/print.html">print</a></span>(<span class="kw">S.aureus</span>, unit = <span class="st">"ms"</span>, signif = <span class="fl">2</span>)
|
||||||
<span class="co"># Unit: milliseconds</span>
|
<span class="co"># Unit: milliseconds</span>
|
||||||
<span class="co"># expr min lq mean median uq max neval</span>
|
<span class="co"># expr min lq mean median uq max neval</span>
|
||||||
<span class="co"># as.mo("sau") 9.1 11.0 21 11 13 77 10</span>
|
<span class="co"># as.mo("sau") 8.8 10.0 24 12 38 57 10</span>
|
||||||
<span class="co"># as.mo("stau") 180.0 180.0 190 180 190 210 10</span>
|
<span class="co"># as.mo("stau") 170.0 170.0 180 170 190 210 10</span>
|
||||||
<span class="co"># as.mo("STAU") 170.0 170.0 190 180 210 210 10</span>
|
<span class="co"># as.mo("STAU") 160.0 170.0 180 170 200 220 10</span>
|
||||||
<span class="co"># as.mo("staaur") 8.7 12.0 18 12 14 47 10</span>
|
<span class="co"># as.mo("staaur") 9.6 10.0 13 11 12 36 10</span>
|
||||||
<span class="co"># as.mo("STAAUR") 9.9 10.0 12 12 12 13 10</span>
|
<span class="co"># as.mo("STAAUR") 10.0 10.0 25 12 34 80 10</span>
|
||||||
<span class="co"># as.mo("S. aureus") 13.0 15.0 29 28 43 47 10</span>
|
<span class="co"># as.mo("S. aureus") 14.0 15.0 21 15 18 47 10</span>
|
||||||
<span class="co"># as.mo("S aureus") 12.0 16.0 25 17 40 52 10</span>
|
<span class="co"># as.mo("S aureus") 12.0 15.0 21 16 18 45 10</span>
|
||||||
<span class="co"># as.mo("Staphylococcus aureus") 9.1 9.7 14 11 11 44 10</span>
|
<span class="co"># as.mo("Staphylococcus aureus") 8.9 9.4 15 11 12 37 10</span>
|
||||||
<span class="co"># as.mo("Staphylococcus aureus (MRSA)") 920.0 960.0 990 980 1000 1100 10</span>
|
<span class="co"># as.mo("Staphylococcus aureus (MRSA)") 900.0 920.0 940 940 960 1000 10</span>
|
||||||
<span class="co"># as.mo("Sthafilokkockus aaureuz") 430.0 440.0 460 460 460 510 10</span>
|
<span class="co"># as.mo("Sthafilokkockus aaureuz") 410.0 420.0 450 450 470 520 10</span>
|
||||||
<span class="co"># as.mo("MRSA") 9.1 11.0 16 12 12 37 10</span>
|
<span class="co"># as.mo("MRSA") 8.8 10.0 16 11 12 38 10</span>
|
||||||
<span class="co"># as.mo("VISA") 15.0 17.0 23 18 20 47 10</span>
|
<span class="co"># as.mo("VISA") 13.0 16.0 27 19 41 47 10</span>
|
||||||
<span class="co"># as.mo("VRSA") 15.0 17.0 27 19 44 50 10</span>
|
<span class="co"># as.mo("VRSA") 13.0 16.0 22 18 19 42 10</span>
|
||||||
<span class="co"># as.mo(22242419) 140.0 140.0 150 150 160 170 10</span>
|
<span class="co"># as.mo(22242419) 140.0 140.0 150 140 160 170 10</span>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
<p><img src="benchmarks_files/figure-html/unnamed-chunk-4-1.png" width="562.5"></p>
|
<p><img src="benchmarks_files/figure-html/unnamed-chunk-4-1.png" width="562.5"></p>
|
||||||
<p>In the table above, all measurements are shown in milliseconds (thousands of seconds). A value of 5 milliseconds means it can determine 200 input values per second. It case of 100 milliseconds, this is only 10 input values per second.</p>
|
<p>In the table above, all measurements are shown in milliseconds (thousands of seconds). A value of 5 milliseconds means it can determine 200 input values per second. It case of 100 milliseconds, this is only 10 input values per second.</p>
|
||||||
<p>To achieve this speed, the <code>as.mo</code> function also takes into account the prevalence of human pathogenic microorganisms. The downside of this is of course that less prevalent microorganisms will be determined less fast. See this example for the ID of <em>Methanosarcina semesiae</em> (<code>B_MTHNSR_SEMS</code>), a bug probably never found before in humans:</p>
|
<p>To improve performance, two important calculations take almost no time at all: <strong>repetitive results</strong> and <strong>already precalculated results</strong>.</p>
|
||||||
<div class="sourceCode" id="cb3"><pre class="downlit">
|
|
||||||
<span class="kw">M.semesiae</span> <span class="op"><-</span> <span class="fu">microbenchmark</span>(<span class="fu"><a href="../reference/as.mo.html">as.mo</a></span>(<span class="st">"metsem"</span>),
|
|
||||||
<span class="fu"><a href="../reference/as.mo.html">as.mo</a></span>(<span class="st">"METSEM"</span>),
|
|
||||||
<span class="fu"><a href="../reference/as.mo.html">as.mo</a></span>(<span class="st">"M. semesiae"</span>),
|
|
||||||
<span class="fu"><a href="../reference/as.mo.html">as.mo</a></span>(<span class="st">"M. semesiae"</span>),
|
|
||||||
<span class="fu"><a href="../reference/as.mo.html">as.mo</a></span>(<span class="st">"Methanosarcina semesiae"</span>),
|
|
||||||
times = <span class="fl">10</span>)
|
|
||||||
<span class="fu"><a href="https://rdrr.io/r/base/print.html">print</a></span>(<span class="kw">M.semesiae</span>, unit = <span class="st">"ms"</span>, signif = <span class="fl">4</span>)
|
|
||||||
<span class="co"># Unit: milliseconds</span>
|
|
||||||
<span class="co"># expr min lq mean median uq max</span>
|
|
||||||
<span class="co"># as.mo("metsem") 193.600 200.200 209.30 202.800 218.00 238.20</span>
|
|
||||||
<span class="co"># as.mo("METSEM") 186.500 193.500 208.40 202.600 228.90 244.80</span>
|
|
||||||
<span class="co"># as.mo("M. semesiae") 12.280 13.090 18.86 14.430 15.48 59.40</span>
|
|
||||||
<span class="co"># as.mo("M. semesiae") 14.060 14.520 20.98 16.420 17.56 46.18</span>
|
|
||||||
<span class="co"># as.mo("Methanosarcina semesiae") 8.065 9.203 12.65 9.715 10.65 39.96</span>
|
|
||||||
<span class="co"># neval</span>
|
|
||||||
<span class="co"># 10</span>
|
|
||||||
<span class="co"># 10</span>
|
|
||||||
<span class="co"># 10</span>
|
|
||||||
<span class="co"># 10</span>
|
|
||||||
<span class="co"># 10</span>
|
|
||||||
</pre></div>
|
|
||||||
<p>Looking up arbitrary codes of less prevalent microorganisms costs the most time. Full names (like <em>Methanosarcina semesiae</em>) are always very fast and only take some thousands of seconds to coerce - they are the most probable input from most data sets.</p>
|
|
||||||
<p>In the figure below, we compare <em>Escherichia coli</em> (which is very common) with <em>Prevotella brevis</em> (which is moderately common) and with <em>Methanosarcina semesiae</em> (which is uncommon):</p>
|
|
||||||
<p><img src="benchmarks_files/figure-html/unnamed-chunk-6-1.png" width="900"></p>
|
|
||||||
<p>Uncommon microorganisms take some more time than common microorganisms. To further improve performance, two important calculations take almost no time at all: <strong>repetitive results</strong> and <strong>already precalculated results</strong>.</p>
|
|
||||||
<div id="repetitive-results" class="section level3">
|
<div id="repetitive-results" class="section level3">
|
||||||
<h3 class="hasAnchor">
|
<h3 class="hasAnchor">
|
||||||
<a href="#repetitive-results" class="anchor"></a>Repetitive results</h3>
|
<a href="#repetitive-results" class="anchor"></a>Repetitive results</h3>
|
||||||
<p>Repetitive results are unique values that are present more than once. Unique values will only be calculated once by <code><a href="../reference/as.mo.html">as.mo()</a></code>. We will use <code><a href="../reference/mo_property.html">mo_name()</a></code> for this test - a helper function that returns the full microbial name (genus, species and possibly subspecies) which uses <code><a href="../reference/as.mo.html">as.mo()</a></code> internally.</p>
|
<p>Repetitive results are unique values that are present more than once. Unique values will only be calculated once by <code><a href="../reference/as.mo.html">as.mo()</a></code>. We will use <code><a href="../reference/mo_property.html">mo_name()</a></code> for this test - a helper function that returns the full microbial name (genus, species and possibly subspecies) which uses <code><a href="../reference/as.mo.html">as.mo()</a></code> internally.</p>
|
||||||
<div class="sourceCode" id="cb4"><pre class="downlit">
|
<div class="sourceCode" id="cb3"><pre class="downlit">
|
||||||
<span class="co"># take all MO codes from the example_isolates data set</span>
|
<span class="co"># take all MO codes from the example_isolates data set</span>
|
||||||
<span class="kw">x</span> <span class="op"><-</span> <span class="kw">example_isolates</span><span class="op">$</span><span class="kw">mo</span> <span class="op">%>%</span>
|
<span class="kw">x</span> <span class="op"><-</span> <span class="kw">example_isolates</span><span class="op">$</span><span class="kw">mo</span> <span class="op">%>%</span>
|
||||||
<span class="co"># keep only the unique ones</span>
|
<span class="co"># keep only the unique ones</span>
|
||||||
@ -299,15 +278,15 @@
|
|||||||
<span class="fu"><a href="https://rdrr.io/r/base/print.html">print</a></span>(<span class="kw">run_it</span>, unit = <span class="st">"ms"</span>, signif = <span class="fl">3</span>)
|
<span class="fu"><a href="https://rdrr.io/r/base/print.html">print</a></span>(<span class="kw">run_it</span>, unit = <span class="st">"ms"</span>, signif = <span class="fl">3</span>)
|
||||||
<span class="co"># Unit: milliseconds</span>
|
<span class="co"># Unit: milliseconds</span>
|
||||||
<span class="co"># expr min lq mean median uq max neval</span>
|
<span class="co"># expr min lq mean median uq max neval</span>
|
||||||
<span class="co"># mo_name(x) 1920 1940 2010 1990 2060 2120 10</span>
|
<span class="co"># mo_name(x) 1810 1850 1980 1940 2130 2230 10</span>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
<p>So transforming 500,000 values (!!) of 50 unique values only takes 1.99 seconds. You only lose time on your unique input values.</p>
|
<p>So transforming 500,000 values (!!) of 50 unique values only takes 1.94 seconds. You only lose time on your unique input values.</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="precalculated-results" class="section level3">
|
<div id="precalculated-results" class="section level3">
|
||||||
<h3 class="hasAnchor">
|
<h3 class="hasAnchor">
|
||||||
<a href="#precalculated-results" class="anchor"></a>Precalculated results</h3>
|
<a href="#precalculated-results" class="anchor"></a>Precalculated results</h3>
|
||||||
<p>What about precalculated results? If the input is an already precalculated result of a helper function like <code><a href="../reference/mo_property.html">mo_name()</a></code>, it almost doesn’t take any time at all (see ‘C’ below):</p>
|
<p>What about precalculated results? If the input is an already precalculated result of a helper function like <code><a href="../reference/mo_property.html">mo_name()</a></code>, it almost doesn’t take any time at all (see ‘C’ below):</p>
|
||||||
<div class="sourceCode" id="cb5"><pre class="downlit">
|
<div class="sourceCode" id="cb4"><pre class="downlit">
|
||||||
<span class="kw">run_it</span> <span class="op"><-</span> <span class="fu">microbenchmark</span>(A = <span class="fu"><a href="../reference/mo_property.html">mo_name</a></span>(<span class="st">"B_STPHY_AURS"</span>),
|
<span class="kw">run_it</span> <span class="op"><-</span> <span class="fu">microbenchmark</span>(A = <span class="fu"><a href="../reference/mo_property.html">mo_name</a></span>(<span class="st">"B_STPHY_AURS"</span>),
|
||||||
B = <span class="fu"><a href="../reference/mo_property.html">mo_name</a></span>(<span class="st">"S. aureus"</span>),
|
B = <span class="fu"><a href="../reference/mo_property.html">mo_name</a></span>(<span class="st">"S. aureus"</span>),
|
||||||
C = <span class="fu"><a href="../reference/mo_property.html">mo_name</a></span>(<span class="st">"Staphylococcus aureus"</span>),
|
C = <span class="fu"><a href="../reference/mo_property.html">mo_name</a></span>(<span class="st">"Staphylococcus aureus"</span>),
|
||||||
@ -315,12 +294,12 @@
|
|||||||
<span class="fu"><a href="https://rdrr.io/r/base/print.html">print</a></span>(<span class="kw">run_it</span>, unit = <span class="st">"ms"</span>, signif = <span class="fl">3</span>)
|
<span class="fu"><a href="https://rdrr.io/r/base/print.html">print</a></span>(<span class="kw">run_it</span>, unit = <span class="st">"ms"</span>, signif = <span class="fl">3</span>)
|
||||||
<span class="co"># Unit: milliseconds</span>
|
<span class="co"># Unit: milliseconds</span>
|
||||||
<span class="co"># expr min lq mean median uq max neval</span>
|
<span class="co"># expr min lq mean median uq max neval</span>
|
||||||
<span class="co"># A 5.90 6.16 6.93 7.24 7.43 7.89 10</span>
|
<span class="co"># A 5.080 5.220 5.81 5.66 6.46 7.16 10</span>
|
||||||
<span class="co"># B 11.40 12.00 16.20 13.20 14.20 45.20 10</span>
|
<span class="co"># B 10.000 10.200 14.40 10.60 11.30 49.00 10</span>
|
||||||
<span class="co"># C 1.05 1.07 1.18 1.13 1.28 1.40 10</span>
|
<span class="co"># C 0.862 0.875 1.04 1.05 1.14 1.40 10</span>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
<p>So going from <code><a href="../reference/mo_property.html">mo_name("Staphylococcus aureus")</a></code> to <code>"Staphylococcus aureus"</code> takes 0.0011 seconds - it doesn’t even start calculating <em>if the result would be the same as the expected resulting value</em>. That goes for all helper functions:</p>
|
<p>So going from <code><a href="../reference/mo_property.html">mo_name("Staphylococcus aureus")</a></code> to <code>"Staphylococcus aureus"</code> takes 0.001 seconds - it doesn’t even start calculating <em>if the result would be the same as the expected resulting value</em>. That goes for all helper functions:</p>
|
||||||
<div class="sourceCode" id="cb6"><pre class="downlit">
|
<div class="sourceCode" id="cb5"><pre class="downlit">
|
||||||
<span class="kw">run_it</span> <span class="op"><-</span> <span class="fu">microbenchmark</span>(A = <span class="fu"><a href="../reference/mo_property.html">mo_species</a></span>(<span class="st">"aureus"</span>),
|
<span class="kw">run_it</span> <span class="op"><-</span> <span class="fu">microbenchmark</span>(A = <span class="fu"><a href="../reference/mo_property.html">mo_species</a></span>(<span class="st">"aureus"</span>),
|
||||||
B = <span class="fu"><a href="../reference/mo_property.html">mo_genus</a></span>(<span class="st">"Staphylococcus"</span>),
|
B = <span class="fu"><a href="../reference/mo_property.html">mo_genus</a></span>(<span class="st">"Staphylococcus"</span>),
|
||||||
C = <span class="fu"><a href="../reference/mo_property.html">mo_name</a></span>(<span class="st">"Staphylococcus aureus"</span>),
|
C = <span class="fu"><a href="../reference/mo_property.html">mo_name</a></span>(<span class="st">"Staphylococcus aureus"</span>),
|
||||||
@ -333,14 +312,14 @@
|
|||||||
<span class="fu"><a href="https://rdrr.io/r/base/print.html">print</a></span>(<span class="kw">run_it</span>, unit = <span class="st">"ms"</span>, signif = <span class="fl">3</span>)
|
<span class="fu"><a href="https://rdrr.io/r/base/print.html">print</a></span>(<span class="kw">run_it</span>, unit = <span class="st">"ms"</span>, signif = <span class="fl">3</span>)
|
||||||
<span class="co"># Unit: milliseconds</span>
|
<span class="co"># Unit: milliseconds</span>
|
||||||
<span class="co"># expr min lq mean median uq max neval</span>
|
<span class="co"># expr min lq mean median uq max neval</span>
|
||||||
<span class="co"># A 0.976 0.993 1.13 1.07 1.29 1.34 10</span>
|
<span class="co"># A 0.869 0.889 0.951 0.904 1.010 1.19 10</span>
|
||||||
<span class="co"># B 1.000 1.060 1.13 1.07 1.15 1.40 10</span>
|
<span class="co"># B 0.837 0.873 0.977 0.937 1.010 1.36 10</span>
|
||||||
<span class="co"># C 0.927 1.030 1.08 1.06 1.11 1.35 10</span>
|
<span class="co"># C 0.869 0.874 1.020 0.921 1.130 1.40 10</span>
|
||||||
<span class="co"># D 0.896 0.983 1.11 1.08 1.27 1.41 10</span>
|
<span class="co"># D 0.829 0.858 0.898 0.862 0.873 1.21 10</span>
|
||||||
<span class="co"># E 0.866 1.020 1.10 1.07 1.23 1.37 10</span>
|
<span class="co"># E 0.862 0.870 0.983 0.918 1.050 1.36 10</span>
|
||||||
<span class="co"># F 0.967 0.993 1.16 1.05 1.32 1.61 10</span>
|
<span class="co"># F 0.841 0.850 0.915 0.867 0.907 1.24 10</span>
|
||||||
<span class="co"># G 0.855 1.020 1.07 1.07 1.17 1.31 10</span>
|
<span class="co"># G 0.842 0.851 0.940 0.898 1.000 1.16 10</span>
|
||||||
<span class="co"># H 0.966 1.010 1.12 1.06 1.19 1.36 10</span>
|
<span class="co"># H 0.854 0.864 1.030 0.920 1.170 1.60 10</span>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
<p>Of course, when running <code><a href="../reference/mo_property.html">mo_phylum("Firmicutes")</a></code> the function has zero knowledge about the actual microorganism, namely <em>S. aureus</em>. But since the result would be <code>"Firmicutes"</code> anyway, there is no point in calculating the result. And because this package ‘knows’ all phyla of all known bacteria (according to the Catalogue of Life), it can just return the initial value immediately.</p>
|
<p>Of course, when running <code><a href="../reference/mo_property.html">mo_phylum("Firmicutes")</a></code> the function has zero knowledge about the actual microorganism, namely <em>S. aureus</em>. But since the result would be <code>"Firmicutes"</code> anyway, there is no point in calculating the result. And because this package ‘knows’ all phyla of all known bacteria (according to the Catalogue of Life), it can just return the initial value immediately.</p>
|
||||||
</div>
|
</div>
|
||||||
@ -348,7 +327,7 @@
|
|||||||
<h3 class="hasAnchor">
|
<h3 class="hasAnchor">
|
||||||
<a href="#results-in-other-languages" class="anchor"></a>Results in other languages</h3>
|
<a href="#results-in-other-languages" class="anchor"></a>Results in other languages</h3>
|
||||||
<p>When the system language is non-English and supported by this <code>AMR</code> package, some functions will have a translated result. This almost does’t take extra time:</p>
|
<p>When the system language is non-English and supported by this <code>AMR</code> package, some functions will have a translated result. This almost does’t take extra time:</p>
|
||||||
<div class="sourceCode" id="cb7"><pre class="downlit">
|
<div class="sourceCode" id="cb6"><pre class="downlit">
|
||||||
<span class="fu"><a href="../reference/mo_property.html">mo_name</a></span>(<span class="st">"CoNS"</span>, language = <span class="st">"en"</span>) <span class="co"># or just mo_name("CoNS") on an English system</span>
|
<span class="fu"><a href="../reference/mo_property.html">mo_name</a></span>(<span class="st">"CoNS"</span>, language = <span class="st">"en"</span>) <span class="co"># or just mo_name("CoNS") on an English system</span>
|
||||||
<span class="co"># [1] "Coagulase-negative Staphylococcus (CoNS)"</span>
|
<span class="co"># [1] "Coagulase-negative Staphylococcus (CoNS)"</span>
|
||||||
|
|
||||||
@ -369,13 +348,13 @@
|
|||||||
<span class="fu"><a href="https://rdrr.io/r/base/print.html">print</a></span>(<span class="kw">run_it</span>, unit = <span class="st">"ms"</span>, signif = <span class="fl">4</span>)
|
<span class="fu"><a href="https://rdrr.io/r/base/print.html">print</a></span>(<span class="kw">run_it</span>, unit = <span class="st">"ms"</span>, signif = <span class="fl">4</span>)
|
||||||
<span class="co"># Unit: milliseconds</span>
|
<span class="co"># Unit: milliseconds</span>
|
||||||
<span class="co"># expr min lq mean median uq max neval</span>
|
<span class="co"># expr min lq mean median uq max neval</span>
|
||||||
<span class="co"># en 13.09 14.02 18.36 14.59 16.22 61.92 100</span>
|
<span class="co"># en 10.72 11.54 15.34 12.76 13.82 44.53 100</span>
|
||||||
<span class="co"># de 14.00 14.83 18.06 15.48 16.85 56.01 100</span>
|
<span class="co"># de 11.47 12.77 17.24 13.60 14.78 55.48 100</span>
|
||||||
<span class="co"># nl 17.71 18.99 24.79 20.09 22.22 58.50 100</span>
|
<span class="co"># nl 14.58 15.91 19.06 16.96 18.46 46.24 100</span>
|
||||||
<span class="co"># es 13.99 15.02 20.94 15.88 16.70 141.90 100</span>
|
<span class="co"># es 11.24 11.96 16.86 13.17 14.70 50.05 100</span>
|
||||||
<span class="co"># it 13.68 14.97 19.02 15.52 16.72 50.26 100</span>
|
<span class="co"># it 11.35 12.42 17.79 13.52 16.28 50.31 100</span>
|
||||||
<span class="co"># fr 13.96 15.05 20.63 15.72 17.14 52.71 100</span>
|
<span class="co"># fr 11.41 12.29 17.08 13.43 15.44 53.91 100</span>
|
||||||
<span class="co"># pt 14.13 14.86 19.81 15.69 17.46 53.89 100</span>
|
<span class="co"># pt 11.34 12.06 16.23 13.25 14.80 51.96 100</span>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
<p>Currently supported are German, Dutch, Spanish, Italian, French and Portuguese.</p>
|
<p>Currently supported are German, Dutch, Spanish, Italian, French and Portuguese.</p>
|
||||||
</div>
|
</div>
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
@ -5,7 +5,7 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Data sets for download • AMR (for R)</title>
|
<title>Data sets for download / own use • AMR (for R)</title>
|
||||||
<!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png">
|
<!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png">
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png">
|
<link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png">
|
||||||
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png">
|
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png">
|
||||||
@ -18,7 +18,7 @@
|
|||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous">
|
||||||
<!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet">
|
<!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet">
|
||||||
<script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet">
|
<script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet">
|
||||||
<script src="../extra.js"></script><meta property="og:title" content="Data sets for download">
|
<script src="../extra.js"></script><meta property="og:title" content="Data sets for download / own use">
|
||||||
<meta property="og:description" content="AMR">
|
<meta property="og:description" content="AMR">
|
||||||
<meta property="og:image" content="https://msberends.github.io/AMR/logo.svg">
|
<meta property="og:image" content="https://msberends.github.io/AMR/logo.svg">
|
||||||
<!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
<!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
||||||
@ -39,7 +39,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<span class="navbar-brand">
|
<span class="navbar-brand">
|
||||||
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
||||||
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9004</span>
|
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9005</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -79,7 +79,7 @@
|
|||||||
<a href="../articles/datasets.html">
|
<a href="../articles/datasets.html">
|
||||||
<span class="fa fa-database"></span>
|
<span class="fa fa-database"></span>
|
||||||
|
|
||||||
Download our free data sets
|
Download our reference data sets for own use
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@ -190,7 +190,7 @@
|
|||||||
</header><script src="datasets_files/accessible-code-block-0.0.1/empty-anchor.js"></script><div class="row">
|
</header><script src="datasets_files/accessible-code-block-0.0.1/empty-anchor.js"></script><div class="row">
|
||||||
<div class="col-md-9 contents">
|
<div class="col-md-9 contents">
|
||||||
<div class="page-header toc-ignore">
|
<div class="page-header toc-ignore">
|
||||||
<h1 data-toc-skip>Data sets for download</h1>
|
<h1 data-toc-skip>Data sets for download / own use</h1>
|
||||||
|
|
||||||
|
|
||||||
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/master/vignettes/datasets.Rmd"><code>vignettes/datasets.Rmd</code></a></small>
|
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/master/vignettes/datasets.Rmd"><code>vignettes/datasets.Rmd</code></a></small>
|
||||||
@ -200,16 +200,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>This package contains a lot of reference data sets that are all reliable, up-to-date and free to download. You can even use them outside of R, for example to train your laboratory information system (LIS) about intrinsic resistance!</p>
|
<p>This package contains a lot of reference data sets that are all reliable, up-to-date and free to download. You can even use them outside of R, for example to teach your laboratory information system (LIS) about intrinsic resistance!</p>
|
||||||
<p>We included them in our <code>AMR</code> package, but also automatically ‘mirror’ them to our public repository in different software formats. On this page, we explain how to download them and how the structure of the data sets look like. The tab separated files <strong>allow for machine reading taxonomic data and EUCAST and CLSI interpretation guidelines</strong>, which is almost impossible with the Excel and PDF files distributed by EUCAST and CLSI.</p>
|
<p>We included them in our <code>AMR</code> package, but also automatically ‘mirror’ them to our public repository in different software formats. On this page, we explain how to download them and how the structure of the data sets look like. The tab separated files <strong>allow for machine reading taxonomic data and EUCAST and CLSI interpretation guidelines</strong>, which is almost impossible with the Excel and PDF files distributed by EUCAST and CLSI. We also offer all data sets in formats for R, SPSS, SAS, Stata and Excel.</p>
|
||||||
<p><em>Note: Years and dates of updates mentioned on this page, are from on <code>AMR</code> package version 1.3.0.9004, online released on 16 August 2020. <strong>If you are reading this page from within R, please <a href="https://msberends.github.io/AMR/articles/datasets.html">visit our website</a> for the latest update.</strong></em></p>
|
<p><em>Note: Years and dates of updates mentioned on this page, are from on <code>AMR</code> package version 1.3.0.9005, online released on 17 August 2020. <strong>If you are reading this page from within R, please <a href="https://msberends.github.io/AMR/articles/datasets.html">visit our website</a> for the latest update.</strong></em></p>
|
||||||
<div id="microorganisms" class="section level2">
|
<div id="microorganisms-currently-accepted-names" class="section level2">
|
||||||
<h2 class="hasAnchor">
|
<h2 class="hasAnchor">
|
||||||
<a href="#microorganisms" class="anchor"></a>Microorganisms</h2>
|
<a href="#microorganisms-currently-accepted-names" class="anchor"></a>Microorganisms (currently accepted names)</h2>
|
||||||
<p>This data set is in R available as <code>microorganisms</code>, after you load the <code>AMR</code> package.</p>
|
<p>This data set is in R available as <code>microorganisms</code>, after you load the <code>AMR</code> package.</p>
|
||||||
<div id="source" class="section level4">
|
<p>It was last updated on 28 July 2020 20:52:40 CEST.</p>
|
||||||
<h4 class="hasAnchor">
|
<p>Direct download links:<br><a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/microorganisms.rds">R file (.rds)</a>, 2.7 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/microorganisms.xlsx">Excel workbook (.xlsx)</a>, 6.1 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/microorganisms.sav">SPSS file (.sav)</a>, 28.2 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/microorganisms.sav">Stata file (.dta)</a>, 28.2 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/microorganisms.dta">SAS file (.sas)</a>, 25.2 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/microorganisms.txt">Tab separated file (.txt)</a>, 13.3 MB.</p>
|
||||||
<a href="#source" class="anchor"></a>Source</h4>
|
<div id="source" class="section level3">
|
||||||
|
<h3 class="hasAnchor">
|
||||||
|
<a href="#source" class="anchor"></a>Source</h3>
|
||||||
<p>Our full taxonomy of microorganisms is based on the authoritative and comprehensive:</p>
|
<p>Our full taxonomy of microorganisms is based on the authoritative and comprehensive:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
@ -218,12 +220,11 @@
|
|||||||
<a href="https://lpsn.dsmz.de">List of Prokaryotic names with Standing in Nomenclature</a> (LPSN, included version: May 2020)</li>
|
<a href="https://lpsn.dsmz.de">List of Prokaryotic names with Standing in Nomenclature</a> (LPSN, included version: May 2020)</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div id="structure" class="section level4">
|
<div id="structure" class="section level3">
|
||||||
<h4 class="hasAnchor">
|
<h3 class="hasAnchor">
|
||||||
<a href="#structure" class="anchor"></a>Structure</h4>
|
<a href="#structure" class="anchor"></a>Structure</h3>
|
||||||
<p>A data set with 67,151 rows and 16 columns, containing the following column names:</p>
|
<p>A data set with 67,151 rows and 16 columns, containing the following column names:<br><em>mo, fullname, kingdom, phylum, class, order, family, genus, species, subspecies, rank, ref, species_id, source, prevalence, snomed</em>.</p>
|
||||||
<p><em>mo, fullname, kingdom, phylum, class, order, family, genus, species, subspecies, rank, ref, species_id, source, prevalence, snomed</em>.</p>
|
<p>Included (sub)species per taxonomic kingdom:</p>
|
||||||
<p>Included per taxonomic kingdom:</p>
|
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead><tr class="header">
|
<thead><tr class="header">
|
||||||
<th align="center">Kingdom</th>
|
<th align="center">Kingdom</th>
|
||||||
@ -256,23 +257,6 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
<div id="download" class="section level4">
|
|
||||||
<h4 class="hasAnchor">
|
|
||||||
<a href="#download" class="anchor"></a>Download</h4>
|
|
||||||
<p>Download the data set preferably in the software you use, so the data file already has the correct data structure. Below files were updated on 28 July 2020 20:52:40 CEST.</p>
|
|
||||||
<ul>
|
|
||||||
<li><p>R file (.rds): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/microorganisms.rds">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/microorganisms.rds">from GitLab</a> (file size: 2.7 MB)</p></li>
|
|
||||||
<li><p>Excel workbook (.xlsx): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/microorganisms.xlsx">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/microorganisms.xlsx">from GitLab</a> (file size: 6.1 MB)</p></li>
|
|
||||||
<li><p>SPSS file (.sav): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/microorganisms.sav">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/microorganisms.sav">from GitLab</a> (file size: 28.2 MB)</p></li>
|
|
||||||
<li><p>Stata file (.dta): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/microorganisms.sav">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/microorganisms.sav">from GitLab</a> (file size: 28.2 MB)</p></li>
|
|
||||||
<li><p>SAS file (.sas): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/microorganisms.dta">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/microorganisms.dta">from GitLab</a> (file size: 25.2 MB)</p></li>
|
|
||||||
<li><p>Tab separated file (.txt): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/microorganisms.txt">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/microorganisms.txt">from GitLab</a> (file size: 13.3 MB)</p></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div id="example" class="section level4">
|
|
||||||
<h4 class="hasAnchor">
|
|
||||||
<a href="#example" class="anchor"></a>Example</h4>
|
|
||||||
<p>Example rows when filtering on genus <em>Escherichia</em>:</p>
|
<p>Example rows when filtering on genus <em>Escherichia</em>:</p>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -424,13 +408,68 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="microorganisms-previously-accepted-names" class="section level2">
|
||||||
|
<h2 class="hasAnchor">
|
||||||
|
<a href="#microorganisms-previously-accepted-names" class="anchor"></a>Microorganisms (previously accepted names)</h2>
|
||||||
|
<p>This data set is in R available as <code>microorganisms.old</code>, after you load the <code>AMR</code> package.</p>
|
||||||
|
<p>It was last updated on 28 May 2020 11:17:56 CEST.</p>
|
||||||
|
<p>Direct download links:<br><a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/microorganisms.old.rds">R file (.rds)</a>, 0.3 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/microorganisms.old.xlsx">Excel workbook (.xlsx)</a>, 0.4 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/microorganisms.old.sav">SPSS file (.sav)</a>, 1.9 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/microorganisms.old.sav">Stata file (.dta)</a>, 1.9 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/microorganisms.old.dta">SAS file (.sas)</a>, 1.8 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/microorganisms.old.txt">Tab separated file (.txt)</a>, 0.8 MB.</p>
|
||||||
|
<div id="source-1" class="section level3">
|
||||||
|
<h3 class="hasAnchor">
|
||||||
|
<a href="#source-1" class="anchor"></a>Source</h3>
|
||||||
|
<p>This data set contains old, previously accepted taxonomic names. The data sources are the same as the <code>microorganisms</code> data set:</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="http://www.catalogueoflife.org">Catalogue of Life</a> (included version: 2019)</li>
|
||||||
|
<li>
|
||||||
|
<a href="https://lpsn.dsmz.de">List of Prokaryotic names with Standing in Nomenclature</a> (LPSN, included version: May 2020)</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div id="structure-1" class="section level3">
|
||||||
|
<h3 class="hasAnchor">
|
||||||
|
<a href="#structure-1" class="anchor"></a>Structure</h3>
|
||||||
|
<p>A data set with 12,708 rows and 4 columns, containing the following column names:<br><em>fullname, fullname_new, ref, prevalence</em>.</p>
|
||||||
|
<p><strong>Note:</strong> remember that the ‘ref’ columns contains the scientific reference to the old taxonomic entries, i.e. of column <em>fullname</em>. For the scientific reference of the new names, i.e. of column <em>fullname_new</em>, see the <code>microorganisms</code> data set.</p>
|
||||||
|
<p>Example rows when filtering on <em>Escherichia</em>:</p>
|
||||||
|
<table class="table">
|
||||||
|
<thead><tr class="header">
|
||||||
|
<th align="center">fullname</th>
|
||||||
|
<th align="center">fullname_new</th>
|
||||||
|
<th align="center">ref</th>
|
||||||
|
<th align="center">prevalence</th>
|
||||||
|
</tr></thead>
|
||||||
|
<tbody>
|
||||||
|
<tr class="odd">
|
||||||
|
<td align="center">Escherichia adecarboxylata</td>
|
||||||
|
<td align="center">Leclercia adecarboxylata</td>
|
||||||
|
<td align="center">Leclerc, 1962</td>
|
||||||
|
<td align="center">1</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="even">
|
||||||
|
<td align="center">Escherichia blattae</td>
|
||||||
|
<td align="center">Shimwellia blattae</td>
|
||||||
|
<td align="center">Burgess et al., 1973</td>
|
||||||
|
<td align="center">1</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="odd">
|
||||||
|
<td align="center">Escherichia vulneris</td>
|
||||||
|
<td align="center">Pseudescherichia vulneris</td>
|
||||||
|
<td align="center">Brenner et al., 1983</td>
|
||||||
|
<td align="center">1</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div id="antibiotic-agents" class="section level2">
|
<div id="antibiotic-agents" class="section level2">
|
||||||
<h2 class="hasAnchor">
|
<h2 class="hasAnchor">
|
||||||
<a href="#antibiotic-agents" class="anchor"></a>Antibiotic agents</h2>
|
<a href="#antibiotic-agents" class="anchor"></a>Antibiotic agents</h2>
|
||||||
<p>This data set is in R available as <code>antibiotics</code>, after you load the <code>AMR</code> package.</p>
|
<p>This data set is in R available as <code>antibiotics</code>, after you load the <code>AMR</code> package.</p>
|
||||||
<div id="source-1" class="section level4">
|
<p>It was last updated on 31 July 2020 12:12:13 CEST.</p>
|
||||||
<h4 class="hasAnchor">
|
<p>Direct download links:<br><a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antibiotics.rds">R file (.rds)</a>, 37 kB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antibiotics.xlsx">Excel workbook (.xlsx)</a>, 65 kB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antibiotics.sav">SPSS file (.sav)</a>, 1.3 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antibiotics.sav">Stata file (.dta)</a>, 1.3 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antibiotics.dta">SAS file (.sas)</a>, 0.3 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antibiotics.txt">Tab separated file (.txt)</a>, 0.1 MB.</p>
|
||||||
<a href="#source-1" class="anchor"></a>Source</h4>
|
<div id="source-2" class="section level3">
|
||||||
|
<h3 class="hasAnchor">
|
||||||
|
<a href="#source-2" class="anchor"></a>Source</h3>
|
||||||
<p>This data set contains all EARS-Net and ATC codes gathered from WHO and WHONET, and all compound IDs from PubChem. It also contains all brand names (synonyms) as found on PubChem and Defined Daily Doses (DDDs) for oral and parenteral administration.</p>
|
<p>This data set contains all EARS-Net and ATC codes gathered from WHO and WHONET, and all compound IDs from PubChem. It also contains all brand names (synonyms) as found on PubChem and Defined Daily Doses (DDDs) for oral and parenteral administration.</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
@ -439,28 +478,10 @@
|
|||||||
<li><a href="https://whonet.org">WHONET software 2019</a></li>
|
<li><a href="https://whonet.org">WHONET software 2019</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div id="structure-1" class="section level4">
|
<div id="structure-2" class="section level3">
|
||||||
<h4 class="hasAnchor">
|
<h3 class="hasAnchor">
|
||||||
<a href="#structure-1" class="anchor"></a>Structure</h4>
|
<a href="#structure-2" class="anchor"></a>Structure</h3>
|
||||||
<p>A data set with 456 rows and 14 columns, containing the following column names:</p>
|
<p>A data set with 456 rows and 14 columns, containing the following column names:<br><em>ab, atc, cid, name, group, atc_group1, atc_group2, abbreviations, synonyms, oral_ddd, oral_units, iv_ddd, iv_units, loinc</em>.</p>
|
||||||
<p><em>ab, atc, cid, name, group, atc_group1, atc_group2, abbreviations, synonyms, oral_ddd, oral_units, iv_ddd, iv_units, loinc</em>.</p>
|
|
||||||
</div>
|
|
||||||
<div id="download-1" class="section level4">
|
|
||||||
<h4 class="hasAnchor">
|
|
||||||
<a href="#download-1" class="anchor"></a>Download</h4>
|
|
||||||
<p>Download the data set preferably in the software you use, so the data file already has the correct data structure. Below files were updated on 31 July 2020 12:12:13 CEST.</p>
|
|
||||||
<ul>
|
|
||||||
<li><p>R file (.rds): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antibiotics.rds">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/antibiotics.rds">from GitLab</a> (file size: 37.3 kB)</p></li>
|
|
||||||
<li><p>Excel workbook (.xlsx): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antibiotics.xlsx">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/antibiotics.xlsx">from GitLab</a> (file size: 64.5 kB)</p></li>
|
|
||||||
<li><p>SPSS file (.sav): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antibiotics.sav">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/antibiotics.sav">from GitLab</a> (file size: 1.3 MB)</p></li>
|
|
||||||
<li><p>Stata file (.dta): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antibiotics.sav">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/antibiotics.sav">from GitLab</a> (file size: 1.3 MB)</p></li>
|
|
||||||
<li><p>SAS file (.sas): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antibiotics.dta">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/antibiotics.dta">from GitLab</a> (file size: 321.8 kB)</p></li>
|
|
||||||
<li><p>Tab separated file (.txt): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antibiotics.txt">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/antibiotics.txt">from GitLab</a> (file size: 146.1 kB)</p></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div id="example-1" class="section level4">
|
|
||||||
<h4 class="hasAnchor">
|
|
||||||
<a href="#example-1" class="anchor"></a>Example</h4>
|
|
||||||
<p>Example rows:</p>
|
<p>Example rows:</p>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -600,9 +621,11 @@
|
|||||||
<h2 class="hasAnchor">
|
<h2 class="hasAnchor">
|
||||||
<a href="#antiviral-agents" class="anchor"></a>Antiviral agents</h2>
|
<a href="#antiviral-agents" class="anchor"></a>Antiviral agents</h2>
|
||||||
<p>This data set is in R available as <code>antivirals</code>, after you load the <code>AMR</code> package.</p>
|
<p>This data set is in R available as <code>antivirals</code>, after you load the <code>AMR</code> package.</p>
|
||||||
<div id="source-2" class="section level4">
|
<p>It was last updated on 23 November 2019 19:03:43 CET.</p>
|
||||||
<h4 class="hasAnchor">
|
<p>Direct download links:<br><a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antivirals.rds">R file (.rds)</a>, 5 kB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antivirals.xlsx">Excel workbook (.xlsx)</a>, 14 kB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antivirals.sav">SPSS file (.sav)</a>, 68 kB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antivirals.sav">Stata file (.dta)</a>, 68 kB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antivirals.dta">SAS file (.sas)</a>, 67 kB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antivirals.txt">Tab separated file (.txt)</a>, 16 kB.</p>
|
||||||
<a href="#source-2" class="anchor"></a>Source</h4>
|
<div id="source-3" class="section level3">
|
||||||
|
<h3 class="hasAnchor">
|
||||||
|
<a href="#source-3" class="anchor"></a>Source</h3>
|
||||||
<p>This data set contains all ATC codes gathered from WHO and all compound IDs from PubChem. It also contains all brand names (synonyms) as found on PubChem and Defined Daily Doses (DDDs) for oral and parenteral administration.</p>
|
<p>This data set contains all ATC codes gathered from WHO and all compound IDs from PubChem. It also contains all brand names (synonyms) as found on PubChem and Defined Daily Doses (DDDs) for oral and parenteral administration.</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
@ -610,28 +633,10 @@
|
|||||||
<li><a href="https://pubchem.ncbi.nlm.nih.gov">PubChem by the US National Library of Medicine</a></li>
|
<li><a href="https://pubchem.ncbi.nlm.nih.gov">PubChem by the US National Library of Medicine</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div id="structure-2" class="section level4">
|
<div id="structure-3" class="section level3">
|
||||||
<h4 class="hasAnchor">
|
<h3 class="hasAnchor">
|
||||||
<a href="#structure-2" class="anchor"></a>Structure</h4>
|
<a href="#structure-3" class="anchor"></a>Structure</h3>
|
||||||
<p>A data set with 102 rows and 9 columns, containing the following column names:</p>
|
<p>A data set with 102 rows and 9 columns, containing the following column names:<br><em>atc, cid, name, atc_group, synonyms, oral_ddd, oral_units, iv_ddd, iv_units</em>.</p>
|
||||||
<p><em>atc, cid, name, atc_group, synonyms, oral_ddd, oral_units, iv_ddd, iv_units</em>.</p>
|
|
||||||
</div>
|
|
||||||
<div id="download-2" class="section level4">
|
|
||||||
<h4 class="hasAnchor">
|
|
||||||
<a href="#download-2" class="anchor"></a>Download</h4>
|
|
||||||
<p>Download the data set preferably in the software you use, so the data file already has the correct data structure. Below files were updated on 23 November 2019 19:03:43 CET.</p>
|
|
||||||
<ul>
|
|
||||||
<li><p>R file (.rds): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antivirals.rds">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/antivirals.rds">from GitLab</a> (file size: 4.6 kB)</p></li>
|
|
||||||
<li><p>Excel workbook (.xlsx): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antivirals.xlsx">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/antivirals.xlsx">from GitLab</a> (file size: 13.6 kB)</p></li>
|
|
||||||
<li><p>SPSS file (.sav): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antivirals.sav">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/antivirals.sav">from GitLab</a> (file size: 67.7 kB)</p></li>
|
|
||||||
<li><p>Stata file (.dta): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antivirals.sav">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/antivirals.sav">from GitLab</a> (file size: 67.7 kB)</p></li>
|
|
||||||
<li><p>SAS file (.sas): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antivirals.dta">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/antivirals.dta">from GitLab</a> (file size: 67.2 kB)</p></li>
|
|
||||||
<li><p>Tab separated file (.txt): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/antivirals.txt">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/antivirals.txt">from GitLab</a> (file size: 16.2 kB)</p></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div id="example-2" class="section level4">
|
|
||||||
<h4 class="hasAnchor">
|
|
||||||
<a href="#example-2" class="anchor"></a>Example</h4>
|
|
||||||
<p>Example rows:</p>
|
<p>Example rows:</p>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -731,35 +736,19 @@
|
|||||||
<h2 class="hasAnchor">
|
<h2 class="hasAnchor">
|
||||||
<a href="#intrinsic-bacterial-resistance" class="anchor"></a>Intrinsic bacterial resistance</h2>
|
<a href="#intrinsic-bacterial-resistance" class="anchor"></a>Intrinsic bacterial resistance</h2>
|
||||||
<p>This data set is in R available as <code>intrinsic_resistant</code>, after you load the <code>AMR</code> package.</p>
|
<p>This data set is in R available as <code>intrinsic_resistant</code>, after you load the <code>AMR</code> package.</p>
|
||||||
<div id="source-3" class="section level4">
|
<p>It was last updated on 14 August 2020 14:18:20 CEST.</p>
|
||||||
<h4 class="hasAnchor">
|
<p>Direct download links:<br><a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/intrinsic_resistant.rds">R file (.rds)</a>, 97 kB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/intrinsic_resistant.xlsx">Excel workbook (.xlsx)</a>, 0.5 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/intrinsic_resistant.sav">SPSS file (.sav)</a>, 4.2 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/intrinsic_resistant.sav">Stata file (.dta)</a>, 4.2 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/intrinsic_resistant.dta">SAS file (.sas)</a>, 3.7 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/intrinsic_resistant.txt">Tab separated file (.txt)</a>, 1.8 MB.</p>
|
||||||
<a href="#source-3" class="anchor"></a>Source</h4>
|
<div id="source-4" class="section level3">
|
||||||
|
<h3 class="hasAnchor">
|
||||||
|
<a href="#source-4" class="anchor"></a>Source</h3>
|
||||||
<p>This data set contains all defined intrinsic resistance by EUCAST of all bug-drug combinations.</p>
|
<p>This data set contains all defined intrinsic resistance by EUCAST of all bug-drug combinations.</p>
|
||||||
<p>The data set is based on ‘EUCAST Expert Rules, Intrinsic Resistance and Exceptional Phenotypes’, version 3.1, 2016.</p>
|
<p>The data set is based on ‘EUCAST Expert Rules, Intrinsic Resistance and Exceptional Phenotypes’, version 3.1, 2016.</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="structure-3" class="section level4">
|
<div id="structure-4" class="section level3">
|
||||||
<h4 class="hasAnchor">
|
<h3 class="hasAnchor">
|
||||||
<a href="#structure-3" class="anchor"></a>Structure</h4>
|
<a href="#structure-4" class="anchor"></a>Structure</h3>
|
||||||
<p>A data set with 49,462 rows and 2 columns, containing the following column names:</p>
|
<p>A data set with 49,462 rows and 2 columns, containing the following column names:<br><em>microorganism, antibiotic</em>.</p>
|
||||||
<p><em>microorganism, antibiotic</em>.</p>
|
<p>Example rows when filtering on <em>Klebsiella</em>:</p>
|
||||||
</div>
|
|
||||||
<div id="download-3" class="section level4">
|
|
||||||
<h4 class="hasAnchor">
|
|
||||||
<a href="#download-3" class="anchor"></a>Download</h4>
|
|
||||||
<p>Download the data set preferably in the software you use, so the data file already has the correct data structure. Below files were updated on 14 August 2020 14:18:20 CEST.</p>
|
|
||||||
<ul>
|
|
||||||
<li><p>R file (.rds): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/intrinsic_resistant.rds">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/intrinsic_resistant.rds">from GitLab</a> (file size: 96.6 kB)</p></li>
|
|
||||||
<li><p>Excel workbook (.xlsx): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/intrinsic_resistant.xlsx">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/intrinsic_resistant.xlsx">from GitLab</a> (file size: 0.5 MB)</p></li>
|
|
||||||
<li><p>SPSS file (.sav): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/intrinsic_resistant.sav">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/intrinsic_resistant.sav">from GitLab</a> (file size: 4.2 MB)</p></li>
|
|
||||||
<li><p>Stata file (.dta): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/intrinsic_resistant.sav">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/intrinsic_resistant.sav">from GitLab</a> (file size: 4.2 MB)</p></li>
|
|
||||||
<li><p>SAS file (.sas): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/intrinsic_resistant.dta">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/intrinsic_resistant.dta">from GitLab</a> (file size: 3.7 MB)</p></li>
|
|
||||||
<li><p>Tab separated file (.txt): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/intrinsic_resistant.txt">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/intrinsic_resistant.txt">from GitLab</a> (file size: 1.8 MB)</p></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div id="example-3" class="section level4">
|
|
||||||
<h4 class="hasAnchor">
|
|
||||||
<a href="#example-3" class="anchor"></a>Example</h4>
|
|
||||||
<p>Example rows:</p>
|
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead><tr class="header">
|
<thead><tr class="header">
|
||||||
<th align="center">microorganism</th>
|
<th align="center">microorganism</th>
|
||||||
@ -798,33 +787,17 @@
|
|||||||
<h2 class="hasAnchor">
|
<h2 class="hasAnchor">
|
||||||
<a href="#interpretation-from-mic-values-disk-diameters-to-rsi" class="anchor"></a>Interpretation from MIC values / disk diameters to R/SI</h2>
|
<a href="#interpretation-from-mic-values-disk-diameters-to-rsi" class="anchor"></a>Interpretation from MIC values / disk diameters to R/SI</h2>
|
||||||
<p>This data set is in R available as <code>rsi_translation</code>, after you load the <code>AMR</code> package.</p>
|
<p>This data set is in R available as <code>rsi_translation</code>, after you load the <code>AMR</code> package.</p>
|
||||||
<div id="source-4" class="section level4">
|
<p>It was last updated on 29 July 2020 13:12:34 CEST.</p>
|
||||||
<h4 class="hasAnchor">
|
<p>Direct download links:<br><a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/rsi_translation.rds">R file (.rds)</a>, 55 kB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/rsi_translation.xlsx">Excel workbook (.xlsx)</a>, 0.6 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/rsi_translation.sav">SPSS file (.sav)</a>, 3.4 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/rsi_translation.sav">Stata file (.dta)</a>, 3.4 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/rsi_translation.dta">SAS file (.sas)</a>, 3 MB – <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/rsi_translation.txt">Tab separated file (.txt)</a>, 1.5 MB.</p>
|
||||||
<a href="#source-4" class="anchor"></a>Source</h4>
|
<div id="source-5" class="section level3">
|
||||||
|
<h3 class="hasAnchor">
|
||||||
|
<a href="#source-5" class="anchor"></a>Source</h3>
|
||||||
<p>This data set contains interpretation rules for MIC values and disk diffusion diameters. Included guidelines are CLSI (2010-2019) and EUCAST (2011-2020).</p>
|
<p>This data set contains interpretation rules for MIC values and disk diffusion diameters. Included guidelines are CLSI (2010-2019) and EUCAST (2011-2020).</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="structure-4" class="section level4">
|
<div id="structure-5" class="section level3">
|
||||||
<h4 class="hasAnchor">
|
<h3 class="hasAnchor">
|
||||||
<a href="#structure-4" class="anchor"></a>Structure</h4>
|
<a href="#structure-5" class="anchor"></a>Structure</h3>
|
||||||
<p>A data set with 18,650 rows and 10 columns, containing the following column names:</p>
|
<p>A data set with 18,650 rows and 10 columns, containing the following column names:<br><em>guideline, method, site, mo, ab, ref_tbl, disk_dose, breakpoint_S, breakpoint_R, uti</em>.</p>
|
||||||
<p><em>guideline, method, site, mo, ab, ref_tbl, disk_dose, breakpoint_S, breakpoint_R, uti</em>.</p>
|
|
||||||
</div>
|
|
||||||
<div id="download-4" class="section level4">
|
|
||||||
<h4 class="hasAnchor">
|
|
||||||
<a href="#download-4" class="anchor"></a>Download</h4>
|
|
||||||
<p>Download the data set preferably in the software you use, so the data file already has the correct data structure. Below files were updated on 29 July 2020 13:12:34 CEST.</p>
|
|
||||||
<ul>
|
|
||||||
<li><p>R file (.rds): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/rsi_translation.rds">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/rsi_translation.rds">from GitLab</a> (file size: 55.1 kB)</p></li>
|
|
||||||
<li><p>Excel workbook (.xlsx): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/rsi_translation.xlsx">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/rsi_translation.xlsx">from GitLab</a> (file size: 0.6 MB)</p></li>
|
|
||||||
<li><p>SPSS file (.sav): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/rsi_translation.sav">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/rsi_translation.sav">from GitLab</a> (file size: 3.4 MB)</p></li>
|
|
||||||
<li><p>Stata file (.dta): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/rsi_translation.sav">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/rsi_translation.sav">from GitLab</a> (file size: 3.4 MB)</p></li>
|
|
||||||
<li><p>SAS file (.sas): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/rsi_translation.dta">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/rsi_translation.dta">from GitLab</a> (file size: 3 MB)</p></li>
|
|
||||||
<li><p>Tab separated file (.txt): <a href="https://github.com/msberends/AMR/raw/master/data-raw/../data-raw/rsi_translation.txt">from GitHub</a>, <a href="https://gitlab.com/msberends/AMR/-/raw/master/data-raw/../data-raw/rsi_translation.txt">from GitLab</a> (file size: 1.5 MB)</p></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div id="example-4" class="section level4">
|
|
||||||
<h4 class="hasAnchor">
|
|
||||||
<a href="#example-4" class="anchor"></a>Example</h4>
|
|
||||||
<p>Example rows:</p>
|
<p>Example rows:</p>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
|
@ -81,7 +81,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<span class="navbar-brand">
|
<span class="navbar-brand">
|
||||||
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
||||||
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9004</span>
|
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9005</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -121,7 +121,7 @@
|
|||||||
<a href="../articles/datasets.html">
|
<a href="../articles/datasets.html">
|
||||||
<span class="fa fa-database"></span>
|
<span class="fa fa-database"></span>
|
||||||
|
|
||||||
Download our free data sets
|
Download our reference data sets for own use
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@ -254,7 +254,7 @@
|
|||||||
<dd></dt>
|
<dd></dt>
|
||||||
<dt><a href="benchmarks.html">Benchmarks</a></dt>
|
<dt><a href="benchmarks.html">Benchmarks</a></dt>
|
||||||
<dd></dt>
|
<dd></dt>
|
||||||
<dt><a href="datasets.html">Data sets for download</a></dt>
|
<dt><a href="datasets.html">Data sets for download / own use</a></dt>
|
||||||
<dd></dt>
|
<dd></dt>
|
||||||
<dt><a href="resistance_predict.html">How to predict antimicrobial resistance</a></dt>
|
<dt><a href="resistance_predict.html">How to predict antimicrobial resistance</a></dt>
|
||||||
<dd></dt>
|
<dd></dt>
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<span class="navbar-brand">
|
<span class="navbar-brand">
|
||||||
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
||||||
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9002</span>
|
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9005</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -75,6 +75,13 @@
|
|||||||
Predict antimicrobial resistance
|
Predict antimicrobial resistance
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="../articles/datasets.html">
|
||||||
|
<span class="fa fa-database"></span>
|
||||||
|
|
||||||
|
Download our reference data sets for own use
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="../articles/PCA.html">
|
<a href="../articles/PCA.html">
|
||||||
<span class="fa fa-compress"></span>
|
<span class="fa fa-compress"></span>
|
||||||
@ -184,9 +191,7 @@
|
|||||||
<div class="col-md-9 contents">
|
<div class="col-md-9 contents">
|
||||||
<div class="page-header toc-ignore">
|
<div class="page-header toc-ignore">
|
||||||
<h1 data-toc-skip>How to predict antimicrobial resistance</h1>
|
<h1 data-toc-skip>How to predict antimicrobial resistance</h1>
|
||||||
<h4 class="author">Matthijs S. Berends</h4>
|
|
||||||
|
|
||||||
<h4 class="date">14 August 2020</h4>
|
|
||||||
|
|
||||||
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/master/vignettes/resistance_predict.Rmd"><code>vignettes/resistance_predict.Rmd</code></a></small>
|
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/master/vignettes/resistance_predict.Rmd"><code>vignettes/resistance_predict.Rmd</code></a></small>
|
||||||
<div class="hidden name"><code>resistance_predict.Rmd</code></div>
|
<div class="hidden name"><code>resistance_predict.Rmd</code></div>
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<span class="navbar-brand">
|
<span class="navbar-brand">
|
||||||
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
||||||
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9003</span>
|
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9005</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -75,6 +75,13 @@
|
|||||||
Predict antimicrobial resistance
|
Predict antimicrobial resistance
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="../articles/datasets.html">
|
||||||
|
<span class="fa fa-database"></span>
|
||||||
|
|
||||||
|
Download our reference data sets for own use
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="../articles/PCA.html">
|
<a href="../articles/PCA.html">
|
||||||
<span class="fa fa-compress"></span>
|
<span class="fa fa-compress"></span>
|
||||||
@ -184,9 +191,7 @@
|
|||||||
<div class="col-md-9 contents">
|
<div class="col-md-9 contents">
|
||||||
<div class="page-header toc-ignore">
|
<div class="page-header toc-ignore">
|
||||||
<h1 data-toc-skip>Welcome to the AMR package</h1>
|
<h1 data-toc-skip>Welcome to the AMR package</h1>
|
||||||
<h4 class="author">Matthijs S. Berends</h4>
|
|
||||||
|
|
||||||
<h4 class="date">15 August 2020</h4>
|
|
||||||
|
|
||||||
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/master/vignettes/welcome_to_AMR.Rmd"><code>vignettes/welcome_to_AMR.Rmd</code></a></small>
|
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/master/vignettes/welcome_to_AMR.Rmd"><code>vignettes/welcome_to_AMR.Rmd</code></a></small>
|
||||||
<div class="hidden name"><code>welcome_to_AMR.Rmd</code></div>
|
<div class="hidden name"><code>welcome_to_AMR.Rmd</code></div>
|
||||||
|
@ -81,7 +81,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<span class="navbar-brand">
|
<span class="navbar-brand">
|
||||||
<a class="navbar-link" href="index.html">AMR (for R)</a>
|
<a class="navbar-link" href="index.html">AMR (for R)</a>
|
||||||
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9004</span>
|
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9005</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -121,7 +121,7 @@
|
|||||||
<a href="articles/datasets.html">
|
<a href="articles/datasets.html">
|
||||||
<span class="fa fa-database"></span>
|
<span class="fa fa-database"></span>
|
||||||
|
|
||||||
Download our free data sets
|
Download our reference data sets for own use
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
@ -257,12 +257,13 @@ table a:not(.btn):hover, .table a:not(.btn):hover {
|
|||||||
.home-buttons a {
|
.home-buttons a {
|
||||||
display: grid;
|
display: grid;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 16px;
|
font-size: 14px;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
width: 25%;
|
max-width: 25%;
|
||||||
}
|
}
|
||||||
.home-buttons a:hover {
|
.home-buttons a:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
opacity: 0.75;
|
||||||
}
|
}
|
||||||
.home-buttons div {
|
.home-buttons div {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<span class="navbar-brand">
|
<span class="navbar-brand">
|
||||||
<a class="navbar-link" href="index.html">AMR (for R)</a>
|
<a class="navbar-link" href="index.html">AMR (for R)</a>
|
||||||
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9004</span>
|
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9005</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -83,7 +83,7 @@
|
|||||||
<a href="articles/datasets.html">
|
<a href="articles/datasets.html">
|
||||||
<span class="fa fa-database"></span>
|
<span class="fa fa-database"></span>
|
||||||
|
|
||||||
Download our free data sets
|
Download our reference data sets for own use
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@ -219,7 +219,7 @@ Since you are one of our users, we would like to know how you use the package an
|
|||||||
<div style="background-color: #128f7635;">
|
<div style="background-color: #128f7635;">
|
||||||
<div class="fa fa-database">
|
<div class="fa fa-database">
|
||||||
</div>
|
</div>
|
||||||
<span>Download free data sets</span>
|
<span>Download our data sets</span>
|
||||||
</div>
|
</div>
|
||||||
</a> <a href="articles/AMR.html">
|
</a> <a href="articles/AMR.html">
|
||||||
<div style="background-color: #138F3865;">
|
<div style="background-color: #138F3865;">
|
||||||
|
@ -81,7 +81,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<span class="navbar-brand">
|
<span class="navbar-brand">
|
||||||
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
||||||
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9004</span>
|
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9005</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -121,7 +121,7 @@
|
|||||||
<a href="../articles/datasets.html">
|
<a href="../articles/datasets.html">
|
||||||
<span class="fa fa-database"></span>
|
<span class="fa fa-database"></span>
|
||||||
|
|
||||||
Download our free data sets
|
Download our reference data sets for own use
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@ -236,13 +236,13 @@
|
|||||||
<small>Source: <a href='https://github.com/msberends/AMR/blob/master/NEWS.md'><code>NEWS.md</code></a></small>
|
<small>Source: <a href='https://github.com/msberends/AMR/blob/master/NEWS.md'><code>NEWS.md</code></a></small>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="amr-1309004" class="section level1">
|
<div id="amr-1309005" class="section level1">
|
||||||
<h1 class="page-header" data-toc-text="1.3.0.9004">
|
<h1 class="page-header" data-toc-text="1.3.0.9005">
|
||||||
<a href="#amr-1309004" class="anchor"></a>AMR 1.3.0.9004<small> Unreleased </small>
|
<a href="#amr-1309005" class="anchor"></a>AMR 1.3.0.9005<small> Unreleased </small>
|
||||||
</h1>
|
</h1>
|
||||||
<div id="last-updated-16-august-2020" class="section level2">
|
<div id="last-updated-17-august-2020" class="section level2">
|
||||||
<h2 class="hasAnchor">
|
<h2 class="hasAnchor">
|
||||||
<a href="#last-updated-16-august-2020" class="anchor"></a><small>Last updated: 16 August 2020</small>
|
<a href="#last-updated-17-august-2020" class="anchor"></a><small>Last updated: 17 August 2020</small>
|
||||||
</h2>
|
</h2>
|
||||||
<div id="new" class="section level3">
|
<div id="new" class="section level3">
|
||||||
<h3 class="hasAnchor">
|
<h3 class="hasAnchor">
|
||||||
@ -394,7 +394,7 @@
|
|||||||
<p>Making this package independent of especially the tidyverse (e.g. packages <code>dplyr</code> and <code>tidyr</code>) tremendously increases sustainability on the long term, since tidyverse functions change quite often. Good for users, but hard for package maintainers. Most of our functions are replaced with versions that only rely on base R, which keeps this package fully functional for many years to come, without requiring a lot of maintenance to keep up with other packages anymore. Another upside it that this package can now be used with all versions of R since R-3.0.0 (April 2013). Our package is being used in settings where the resources are very limited. Fewer dependencies on newer software is helpful for such settings.</p>
|
<p>Making this package independent of especially the tidyverse (e.g. packages <code>dplyr</code> and <code>tidyr</code>) tremendously increases sustainability on the long term, since tidyverse functions change quite often. Good for users, but hard for package maintainers. Most of our functions are replaced with versions that only rely on base R, which keeps this package fully functional for many years to come, without requiring a lot of maintenance to keep up with other packages anymore. Another upside it that this package can now be used with all versions of R since R-3.0.0 (April 2013). Our package is being used in settings where the resources are very limited. Fewer dependencies on newer software is helpful for such settings.</p>
|
||||||
<p>Negative effects of this change are:</p>
|
<p>Negative effects of this change are:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Function <code>freq()</code> that was borrowed from the <code>cleaner</code> package was removed. Use <code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">cleaner::freq()</a></code>, or run <code><a href="https://github.com/msberends/cleaner">library("cleaner")</a></code> before you use <code>freq()</code>.</li>
|
<li>Function <code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq()</a></code> that was borrowed from the <code>cleaner</code> package was removed. Use <code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">cleaner::freq()</a></code>, or run <code><a href="https://github.com/msberends/cleaner">library("cleaner")</a></code> before you use <code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq()</a></code>.</li>
|
||||||
<li>Printing values of class <code>mo</code> or <code>rsi</code> in a tibble will no longer be in colour and printing <code>rsi</code> in a tibble will show the class <code><ord></code>, not <code><rsi></code> anymore. This is purely a visual effect.</li>
|
<li>Printing values of class <code>mo</code> or <code>rsi</code> in a tibble will no longer be in colour and printing <code>rsi</code> in a tibble will show the class <code><ord></code>, not <code><rsi></code> anymore. This is purely a visual effect.</li>
|
||||||
<li>All functions from the <code>mo_*</code> family (like <code><a href="../reference/mo_property.html">mo_name()</a></code> and <code><a href="../reference/mo_property.html">mo_gramstain()</a></code>) are noticeably slower when running on hundreds of thousands of rows.</li>
|
<li>All functions from the <code>mo_*</code> family (like <code><a href="../reference/mo_property.html">mo_name()</a></code> and <code><a href="../reference/mo_property.html">mo_gramstain()</a></code>) are noticeably slower when running on hundreds of thousands of rows.</li>
|
||||||
<li>For developers: classes <code>mo</code> and <code>ab</code> now both also inherit class <code>character</code>, to support any data transformation. This change invalidates code that checks for class length == 1.</li>
|
<li>For developers: classes <code>mo</code> and <code>ab</code> now both also inherit class <code>character</code>, to support any data transformation. This change invalidates code that checks for class length == 1.</li>
|
||||||
@ -731,7 +731,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
|
|||||||
</pre></div>
|
</pre></div>
|
||||||
<p>This is important, because a value like <code>"testvalue"</code> could never be understood by e.g. <code><a href="../reference/mo_property.html">mo_name()</a></code>, although the class would suggest a valid microbial code.</p>
|
<p>This is important, because a value like <code>"testvalue"</code> could never be understood by e.g. <code><a href="../reference/mo_property.html">mo_name()</a></code>, although the class would suggest a valid microbial code.</p>
|
||||||
</li>
|
</li>
|
||||||
<li><p>Function <code>freq()</code> has moved to a new package, <a href="https://github.com/msberends/clean"><code>clean</code></a> (<a href="https://cran.r-project.org/package=clean">CRAN link</a>), since creating frequency tables actually does not fit the scope of this package. The <code>freq()</code> function still works, since it is re-exported from the <code>clean</code> package (which will be installed automatically upon updating this <code>AMR</code> package).</p></li>
|
<li><p>Function <code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq()</a></code> has moved to a new package, <a href="https://github.com/msberends/clean"><code>clean</code></a> (<a href="https://cran.r-project.org/package=clean">CRAN link</a>), since creating frequency tables actually does not fit the scope of this package. The <code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq()</a></code> function still works, since it is re-exported from the <code>clean</code> package (which will be installed automatically upon updating this <code>AMR</code> package).</p></li>
|
||||||
<li><p>Renamed data set <code>septic_patients</code> to <code>example_isolates</code></p></li>
|
<li><p>Renamed data set <code>septic_patients</code> to <code>example_isolates</code></p></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@ -1000,7 +1000,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
|
|||||||
<li>The <code><a href="../reference/age.html">age()</a></code> function gained a new parameter <code>exact</code> to determine ages with decimals</li>
|
<li>The <code><a href="../reference/age.html">age()</a></code> function gained a new parameter <code>exact</code> to determine ages with decimals</li>
|
||||||
<li>Removed deprecated functions <code>guess_mo()</code>, <code>guess_atc()</code>, <code>EUCAST_rules()</code>, <code>interpretive_reading()</code>, <code><a href="../reference/as.rsi.html">rsi()</a></code>
|
<li>Removed deprecated functions <code>guess_mo()</code>, <code>guess_atc()</code>, <code>EUCAST_rules()</code>, <code>interpretive_reading()</code>, <code><a href="../reference/as.rsi.html">rsi()</a></code>
|
||||||
</li>
|
</li>
|
||||||
<li>Frequency tables (<code>freq()</code>):
|
<li>Frequency tables (<code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq()</a></code>):
|
||||||
<ul>
|
<ul>
|
||||||
<li><p>speed improvement for microbial IDs</p></li>
|
<li><p>speed improvement for microbial IDs</p></li>
|
||||||
<li><p>fixed factor level names for R Markdown</p></li>
|
<li><p>fixed factor level names for R Markdown</p></li>
|
||||||
@ -1009,12 +1009,12 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
|
|||||||
<p>support for boxplots:</p>
|
<p>support for boxplots:</p>
|
||||||
<div class="sourceCode" id="cb20"><pre class="downlit">
|
<div class="sourceCode" id="cb20"><pre class="downlit">
|
||||||
<span class="kw">septic_patients</span> <span class="op">%>%</span>
|
<span class="kw">septic_patients</span> <span class="op">%>%</span>
|
||||||
<span class="fu">freq</span>(<span class="kw">age</span>) <span class="op">%>%</span>
|
<span class="fu"><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq</a></span>(<span class="kw">age</span>) <span class="op">%>%</span>
|
||||||
<span class="fu"><a href="https://rdrr.io/r/graphics/boxplot.html">boxplot</a></span>()
|
<span class="fu"><a href="https://rdrr.io/r/graphics/boxplot.html">boxplot</a></span>()
|
||||||
<span class="co"># grouped boxplots:</span>
|
<span class="co"># grouped boxplots:</span>
|
||||||
<span class="kw">septic_patients</span> <span class="op">%>%</span>
|
<span class="kw">septic_patients</span> <span class="op">%>%</span>
|
||||||
<span class="fu"><a href="https://dplyr.tidyverse.org/reference/group_by.html">group_by</a></span>(<span class="kw">hospital_id</span>) <span class="op">%>%</span>
|
<span class="fu"><a href="https://dplyr.tidyverse.org/reference/group_by.html">group_by</a></span>(<span class="kw">hospital_id</span>) <span class="op">%>%</span>
|
||||||
<span class="fu">freq</span>(<span class="kw">age</span>) <span class="op">%>%</span>
|
<span class="fu"><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq</a></span>(<span class="kw">age</span>) <span class="op">%>%</span>
|
||||||
<span class="fu"><a href="https://rdrr.io/r/graphics/boxplot.html">boxplot</a></span>()
|
<span class="fu"><a href="https://rdrr.io/r/graphics/boxplot.html">boxplot</a></span>()
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</li>
|
</li>
|
||||||
@ -1025,7 +1025,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
|
|||||||
<li>Added ceftazidim intrinsic resistance to <em>Streptococci</em>
|
<li>Added ceftazidim intrinsic resistance to <em>Streptococci</em>
|
||||||
</li>
|
</li>
|
||||||
<li>Changed default settings for <code><a href="../reference/age_groups.html">age_groups()</a></code>, to let groups of fives and tens end with 100+ instead of 120+</li>
|
<li>Changed default settings for <code><a href="../reference/age_groups.html">age_groups()</a></code>, to let groups of fives and tens end with 100+ instead of 120+</li>
|
||||||
<li>Fix for <code>freq()</code> for when all values are <code>NA</code>
|
<li>Fix for <code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq()</a></code> for when all values are <code>NA</code>
|
||||||
</li>
|
</li>
|
||||||
<li>Fix for <code><a href="../reference/first_isolate.html">first_isolate()</a></code> for when dates are missing</li>
|
<li>Fix for <code><a href="../reference/first_isolate.html">first_isolate()</a></code> for when dates are missing</li>
|
||||||
<li>Improved speed of <code><a href="../reference/guess_ab_col.html">guess_ab_col()</a></code>
|
<li>Improved speed of <code><a href="../reference/guess_ab_col.html">guess_ab_col()</a></code>
|
||||||
@ -1266,7 +1266,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>Frequency tables (<code>freq()</code> function):
|
<li>Frequency tables (<code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq()</a></code> function):
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>Support for tidyverse quasiquotation! Now you can create frequency tables of function outcomes:</p>
|
<p>Support for tidyverse quasiquotation! Now you can create frequency tables of function outcomes:</p>
|
||||||
@ -1275,15 +1275,15 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
|
|||||||
<span class="co"># OLD WAY</span>
|
<span class="co"># OLD WAY</span>
|
||||||
<span class="kw">septic_patients</span> <span class="op">%>%</span>
|
<span class="kw">septic_patients</span> <span class="op">%>%</span>
|
||||||
<span class="fu"><a href="https://dplyr.tidyverse.org/reference/mutate.html">mutate</a></span>(genus = <span class="fu"><a href="../reference/mo_property.html">mo_genus</a></span>(<span class="kw">mo</span>)) <span class="op">%>%</span>
|
<span class="fu"><a href="https://dplyr.tidyverse.org/reference/mutate.html">mutate</a></span>(genus = <span class="fu"><a href="../reference/mo_property.html">mo_genus</a></span>(<span class="kw">mo</span>)) <span class="op">%>%</span>
|
||||||
<span class="fu">freq</span>(<span class="kw">genus</span>)
|
<span class="fu"><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq</a></span>(<span class="kw">genus</span>)
|
||||||
<span class="co"># NEW WAY</span>
|
<span class="co"># NEW WAY</span>
|
||||||
<span class="kw">septic_patients</span> <span class="op">%>%</span>
|
<span class="kw">septic_patients</span> <span class="op">%>%</span>
|
||||||
<span class="fu">freq</span>(<span class="fu"><a href="../reference/mo_property.html">mo_genus</a></span>(<span class="kw">mo</span>))
|
<span class="fu"><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq</a></span>(<span class="fu"><a href="../reference/mo_property.html">mo_genus</a></span>(<span class="kw">mo</span>))
|
||||||
|
|
||||||
<span class="co"># Even supports grouping variables:</span>
|
<span class="co"># Even supports grouping variables:</span>
|
||||||
<span class="kw">septic_patients</span> <span class="op">%>%</span>
|
<span class="kw">septic_patients</span> <span class="op">%>%</span>
|
||||||
<span class="fu"><a href="https://dplyr.tidyverse.org/reference/group_by.html">group_by</a></span>(<span class="kw">gender</span>) <span class="op">%>%</span>
|
<span class="fu"><a href="https://dplyr.tidyverse.org/reference/group_by.html">group_by</a></span>(<span class="kw">gender</span>) <span class="op">%>%</span>
|
||||||
<span class="fu">freq</span>(<span class="fu"><a href="../reference/mo_property.html">mo_genus</a></span>(<span class="kw">mo</span>))
|
<span class="fu"><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq</a></span>(<span class="fu"><a href="../reference/mo_property.html">mo_genus</a></span>(<span class="kw">mo</span>))
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</li>
|
</li>
|
||||||
<li><p>Header info is now available as a list, with the <code>header</code> function</p></li>
|
<li><p>Header info is now available as a list, with the <code>header</code> function</p></li>
|
||||||
@ -1367,21 +1367,21 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
|
|||||||
<li><p>Using <code>portion_*</code> functions now throws a warning when total available isolate is below parameter <code>minimum</code></p></li>
|
<li><p>Using <code>portion_*</code> functions now throws a warning when total available isolate is below parameter <code>minimum</code></p></li>
|
||||||
<li><p>Functions <code>as.mo</code>, <code>as.rsi</code>, <code>as.mic</code>, <code>as.atc</code> and <code>freq</code> will not set package name as attribute anymore</p></li>
|
<li><p>Functions <code>as.mo</code>, <code>as.rsi</code>, <code>as.mic</code>, <code>as.atc</code> and <code>freq</code> will not set package name as attribute anymore</p></li>
|
||||||
<li>
|
<li>
|
||||||
<p>Frequency tables - <code>freq()</code>:</p>
|
<p>Frequency tables - <code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq()</a></code>:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>Support for grouping variables, test with:</p>
|
<p>Support for grouping variables, test with:</p>
|
||||||
<div class="sourceCode" id="cb32"><pre class="downlit">
|
<div class="sourceCode" id="cb32"><pre class="downlit">
|
||||||
<span class="kw">septic_patients</span> <span class="op">%>%</span>
|
<span class="kw">septic_patients</span> <span class="op">%>%</span>
|
||||||
<span class="fu"><a href="https://dplyr.tidyverse.org/reference/group_by.html">group_by</a></span>(<span class="kw">hospital_id</span>) <span class="op">%>%</span>
|
<span class="fu"><a href="https://dplyr.tidyverse.org/reference/group_by.html">group_by</a></span>(<span class="kw">hospital_id</span>) <span class="op">%>%</span>
|
||||||
<span class="fu">freq</span>(<span class="kw">gender</span>)
|
<span class="fu"><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq</a></span>(<span class="kw">gender</span>)
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>Support for (un)selecting columns:</p>
|
<p>Support for (un)selecting columns:</p>
|
||||||
<div class="sourceCode" id="cb33"><pre class="downlit">
|
<div class="sourceCode" id="cb33"><pre class="downlit">
|
||||||
<span class="kw">septic_patients</span> <span class="op">%>%</span>
|
<span class="kw">septic_patients</span> <span class="op">%>%</span>
|
||||||
<span class="fu">freq</span>(<span class="kw">hospital_id</span>) <span class="op">%>%</span>
|
<span class="fu"><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq</a></span>(<span class="kw">hospital_id</span>) <span class="op">%>%</span>
|
||||||
<span class="fu"><a href="https://dplyr.tidyverse.org/reference/select.html">select</a></span>(<span class="op">-</span><span class="kw">count</span>, <span class="op">-</span><span class="kw">cum_count</span>) <span class="co"># only get item, percent, cum_percent</span>
|
<span class="fu"><a href="https://dplyr.tidyverse.org/reference/select.html">select</a></span>(<span class="op">-</span><span class="kw">count</span>, <span class="op">-</span><span class="kw">cum_count</span>) <span class="co"># only get item, percent, cum_percent</span>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</li>
|
</li>
|
||||||
@ -1400,7 +1400,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
|
|||||||
<li><p>Removed diacritics from all authors (columns <code>microorganisms$ref</code> and <code>microorganisms.old$ref</code>) to comply with CRAN policy to only allow ASCII characters</p></li>
|
<li><p>Removed diacritics from all authors (columns <code>microorganisms$ref</code> and <code>microorganisms.old$ref</code>) to comply with CRAN policy to only allow ASCII characters</p></li>
|
||||||
<li><p>Fix for <code>mo_property</code> not working properly</p></li>
|
<li><p>Fix for <code>mo_property</code> not working properly</p></li>
|
||||||
<li><p>Fix for <code>eucast_rules</code> where some Streptococci would become ceftazidime R in EUCAST rule 4.5</p></li>
|
<li><p>Fix for <code>eucast_rules</code> where some Streptococci would become ceftazidime R in EUCAST rule 4.5</p></li>
|
||||||
<li><p>Support for named vectors of class <code>mo</code>, useful for <code>top_freq()</code></p></li>
|
<li><p>Support for named vectors of class <code>mo</code>, useful for <code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">top_freq()</a></code></p></li>
|
||||||
<li><p><code>ggplot_rsi</code> and <code>scale_y_percent</code> have <code>breaks</code> parameter</p></li>
|
<li><p><code>ggplot_rsi</code> and <code>scale_y_percent</code> have <code>breaks</code> parameter</p></li>
|
||||||
<li>
|
<li>
|
||||||
<p>AI improvements for <code>as.mo</code>:</p>
|
<p>AI improvements for <code>as.mo</code>:</p>
|
||||||
@ -1567,13 +1567,13 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
|
|||||||
<p>Support for types (classes) list and matrix for <code>freq</code></p>
|
<p>Support for types (classes) list and matrix for <code>freq</code></p>
|
||||||
<div class="sourceCode" id="cb40"><pre class="downlit">
|
<div class="sourceCode" id="cb40"><pre class="downlit">
|
||||||
<span class="kw">my_matrix</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/with.html">with</a></span>(<span class="kw">septic_patients</span>, <span class="fu"><a href="https://rdrr.io/r/base/matrix.html">matrix</a></span>(<span class="fu"><a href="https://rdrr.io/r/base/c.html">c</a></span>(<span class="kw">age</span>, <span class="kw">gender</span>), ncol = <span class="fl">2</span>))
|
<span class="kw">my_matrix</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/with.html">with</a></span>(<span class="kw">septic_patients</span>, <span class="fu"><a href="https://rdrr.io/r/base/matrix.html">matrix</a></span>(<span class="fu"><a href="https://rdrr.io/r/base/c.html">c</a></span>(<span class="kw">age</span>, <span class="kw">gender</span>), ncol = <span class="fl">2</span>))
|
||||||
<span class="fu">freq</span>(<span class="kw">my_matrix</span>)
|
<span class="fu"><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq</a></span>(<span class="kw">my_matrix</span>)
|
||||||
</pre></div>
|
</pre></div>
|
||||||
<p>For lists, subsetting is possible:</p>
|
<p>For lists, subsetting is possible:</p>
|
||||||
<div class="sourceCode" id="cb41"><pre class="downlit">
|
<div class="sourceCode" id="cb41"><pre class="downlit">
|
||||||
<span class="kw">my_list</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html">list</a></span>(age = <span class="kw">septic_patients</span><span class="op">$</span><span class="kw">age</span>, gender = <span class="kw">septic_patients</span><span class="op">$</span><span class="kw">gender</span>)
|
<span class="kw">my_list</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html">list</a></span>(age = <span class="kw">septic_patients</span><span class="op">$</span><span class="kw">age</span>, gender = <span class="kw">septic_patients</span><span class="op">$</span><span class="kw">gender</span>)
|
||||||
<span class="kw">my_list</span> <span class="op">%>%</span> <span class="fu">freq</span>(<span class="kw">age</span>)
|
<span class="kw">my_list</span> <span class="op">%>%</span> <span class="fu"><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq</a></span>(<span class="kw">age</span>)
|
||||||
<span class="kw">my_list</span> <span class="op">%>%</span> <span class="fu">freq</span>(<span class="kw">gender</span>)
|
<span class="kw">my_list</span> <span class="op">%>%</span> <span class="fu"><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq</a></span>(<span class="kw">gender</span>)
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -1648,13 +1648,13 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
|
|||||||
<ul>
|
<ul>
|
||||||
<li>A vignette to explain its usage</li>
|
<li>A vignette to explain its usage</li>
|
||||||
<li>Support for <code>rsi</code> (antimicrobial resistance) to use as input</li>
|
<li>Support for <code>rsi</code> (antimicrobial resistance) to use as input</li>
|
||||||
<li>Support for <code>table</code> to use as input: <code>freq(table(x, y))</code>
|
<li>Support for <code>table</code> to use as input: <code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq(table(x, y))</a></code>
|
||||||
</li>
|
</li>
|
||||||
<li>Support for existing functions <code>hist</code> and <code>plot</code> to use a frequency table as input: <code><a href="https://rdrr.io/r/graphics/hist.html">hist(freq(df$age))</a></code>
|
<li>Support for existing functions <code>hist</code> and <code>plot</code> to use a frequency table as input: <code><a href="https://rdrr.io/r/graphics/hist.html">hist(freq(df$age))</a></code>
|
||||||
</li>
|
</li>
|
||||||
<li>Support for <code>as.vector</code>, <code>as.data.frame</code>, <code>as_tibble</code> and <code>format</code>
|
<li>Support for <code>as.vector</code>, <code>as.data.frame</code>, <code>as_tibble</code> and <code>format</code>
|
||||||
</li>
|
</li>
|
||||||
<li>Support for quasiquotation: <code>freq(mydata, mycolumn)</code> is the same as <code>mydata %>% freq(mycolumn)</code>
|
<li>Support for quasiquotation: <code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq(mydata, mycolumn)</a></code> is the same as <code>mydata %>% freq(mycolumn)</code>
|
||||||
</li>
|
</li>
|
||||||
<li>Function <code>top_freq</code> function to return the top/below <em>n</em> items as vector</li>
|
<li>Function <code>top_freq</code> function to return the top/below <em>n</em> items as vector</li>
|
||||||
<li>Header of frequency tables now also show Mean Absolute Deviaton (MAD) and Interquartile Range (IQR)</li>
|
<li>Header of frequency tables now also show Mean Absolute Deviaton (MAD) and Interquartile Range (IQR)</li>
|
||||||
|
@ -2,7 +2,7 @@ pandoc: 2.7.3
|
|||||||
pkgdown: 1.5.1.9000
|
pkgdown: 1.5.1.9000
|
||||||
pkgdown_sha: eae56f08694abebf93cdfc0dd8e9ede06d8c815f
|
pkgdown_sha: eae56f08694abebf93cdfc0dd8e9ede06d8c815f
|
||||||
articles: []
|
articles: []
|
||||||
last_built: 2020-08-16T19:34Z
|
last_built: 2020-08-17T19:18Z
|
||||||
urls:
|
urls:
|
||||||
reference: https://msberends.github.io/AMR/reference
|
reference: https://msberends.github.io/AMR/reference
|
||||||
article: https://msberends.github.io/AMR/articles
|
article: https://msberends.github.io/AMR/articles
|
||||||
|
@ -82,7 +82,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<span class="navbar-brand">
|
<span class="navbar-brand">
|
||||||
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
||||||
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9004</span>
|
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9005</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -122,7 +122,7 @@
|
|||||||
<a href="../articles/datasets.html">
|
<a href="../articles/datasets.html">
|
||||||
<span class="fa fa-database"></span>
|
<span class="fa fa-database"></span>
|
||||||
|
|
||||||
Download our free data sets
|
Download our reference data sets for own use
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
@ -81,7 +81,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<span class="navbar-brand">
|
<span class="navbar-brand">
|
||||||
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
||||||
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9004</span>
|
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9005</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -121,7 +121,7 @@
|
|||||||
<a href="../articles/datasets.html">
|
<a href="../articles/datasets.html">
|
||||||
<span class="fa fa-database"></span>
|
<span class="fa fa-database"></span>
|
||||||
|
|
||||||
Download our free data sets
|
Download our reference data sets for own use
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
@ -82,7 +82,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<span class="navbar-brand">
|
<span class="navbar-brand">
|
||||||
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
<a class="navbar-link" href="../index.html">AMR (for R)</a>
|
||||||
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9004</span>
|
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9005</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -122,7 +122,7 @@
|
|||||||
<a href="../articles/datasets.html">
|
<a href="../articles/datasets.html">
|
||||||
<span class="fa fa-database"></span>
|
<span class="fa fa-database"></span>
|
||||||
|
|
||||||
Download our free data sets
|
Download our reference data sets for own use
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
@ -81,7 +81,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<span class="navbar-brand">
|
<span class="navbar-brand">
|
||||||
<a class="navbar-link" href="index.html">AMR (for R)</a>
|
<a class="navbar-link" href="index.html">AMR (for R)</a>
|
||||||
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9004</span>
|
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">1.3.0.9005</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -121,7 +121,7 @@
|
|||||||
<a href="articles/datasets.html">
|
<a href="articles/datasets.html">
|
||||||
<span class="fa fa-database"></span>
|
<span class="fa fa-database"></span>
|
||||||
|
|
||||||
Download our free data sets
|
Download our reference data sets for own use
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
2
index.md
2
index.md
@ -27,7 +27,7 @@ This package is [fully independent of any other R package](https://en.wikipedia.
|
|||||||
<a href="articles/datasets.html">
|
<a href="articles/datasets.html">
|
||||||
<div style="background-color: #128f7635;">
|
<div style="background-color: #128f7635;">
|
||||||
<div class="fa fa-database"></div>
|
<div class="fa fa-database"></div>
|
||||||
<span>Download free data sets</span>
|
<span>Download our data sets</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a href="articles/AMR.html">
|
<a href="articles/AMR.html">
|
||||||
|
@ -257,12 +257,13 @@ table a:not(.btn):hover, .table a:not(.btn):hover {
|
|||||||
.home-buttons a {
|
.home-buttons a {
|
||||||
display: grid;
|
display: grid;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 16px;
|
font-size: 14px;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
width: 25%;
|
max-width: 25%;
|
||||||
}
|
}
|
||||||
.home-buttons a:hover {
|
.home-buttons a:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
opacity: 0.75;
|
||||||
}
|
}
|
||||||
.home-buttons div {
|
.home-buttons div {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: "How to apply EUCAST rules"
|
title: "How to apply EUCAST rules"
|
||||||
author: "Matthijs S. Berends"
|
|
||||||
date: '`r format(Sys.Date(), "%d %B %Y")`'
|
|
||||||
output:
|
output:
|
||||||
rmarkdown::html_vignette:
|
rmarkdown::html_vignette:
|
||||||
toc: true
|
toc: true
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: "How to determine multi-drug resistance (MDR)"
|
title: "How to determine multi-drug resistance (MDR)"
|
||||||
author: "Matthijs S. Berends"
|
|
||||||
date: '`r format(Sys.Date(), "%d %B %Y")`'
|
|
||||||
output:
|
output:
|
||||||
rmarkdown::html_vignette:
|
rmarkdown::html_vignette:
|
||||||
toc: true
|
toc: true
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: "How to conduct principal component analysis (PCA) for AMR"
|
title: "How to conduct principal component analysis (PCA) for AMR"
|
||||||
author: "Matthijs S. Berends"
|
|
||||||
date: '`r format(Sys.Date(), "%d %B %Y")`'
|
|
||||||
output:
|
output:
|
||||||
rmarkdown::html_vignette:
|
rmarkdown::html_vignette:
|
||||||
toc: true
|
toc: true
|
||||||
|
@ -33,7 +33,7 @@ As said, SPSS is easier to learn than R. But SPSS, SAS and Stata come with major
|
|||||||
|
|
||||||
* **R is highly modular.**
|
* **R is highly modular.**
|
||||||
|
|
||||||
The [official R network (CRAN)](https://cran.r-project.org/) features almost 14,000 packages at the time of writing, our `AMR` package being one of them. All these packages were peer-reviewed before publication. Aside from this official channel, there are also developers who choose not to submit to CRAN, but rather keep it on their own public repository, like GitHub. So there may even be a lot more than 14,000 packages out there.
|
The [official R network (CRAN)](https://cran.r-project.org/) features more than 16,000 packages at the time of writing, our `AMR` package being one of them. All these packages were peer-reviewed before publication. Aside from this official channel, there are also developers who choose not to submit to CRAN, but rather keep it on their own public repository, like GitHub. So there may even be a lot more than 14,000 packages out there.
|
||||||
|
|
||||||
Bottom line is, you can really extend it yourself or ask somebody to do this for you. Take for example our `AMR` package. Among other things, it adds reliable reference data to R to help you with the data cleaning and analysis. SPSS, SAS and Stata will never know what a valid MIC value is or what the Gram stain of *E. coli* is. Or that all species of *Klebiella* are resistant to amoxicillin and that Floxapen^®^ is a trade name of flucloxacillin. These facts and properties are often needed to clean existing data, which would be very inconvenient in a software package without reliable reference data. See below for a demonstration.
|
Bottom line is, you can really extend it yourself or ask somebody to do this for you. Take for example our `AMR` package. Among other things, it adds reliable reference data to R to help you with the data cleaning and analysis. SPSS, SAS and Stata will never know what a valid MIC value is or what the Gram stain of *E. coli* is. Or that all species of *Klebiella* are resistant to amoxicillin and that Floxapen^®^ is a trade name of flucloxacillin. These facts and properties are often needed to clean existing data, which would be very inconvenient in a software package without reliable reference data. See below for a demonstration.
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ As said, SPSS is easier to learn than R. But SPSS, SAS and Stata come with major
|
|||||||
|
|
||||||
* **R has a huge community.**
|
* **R has a huge community.**
|
||||||
|
|
||||||
Many R users just ask questions on websites like [StackOverflow.com](https://stackoverflow.com), the largest online community for programmers. At the time of writing, more than [300,000 R-related questions](https://stackoverflow.com/questions/tagged/r?sort=votes) have already been asked on this platform (which covers questions and answers for any programming language). In my own experience, most questions are answered within a couple of minutes.
|
Many R users just ask questions on websites like [StackOverflow.com](https://stackoverflow.com), the largest online community for programmers. At the time of writing, more than [360,000 R-related questions](https://stackoverflow.com/questions/tagged/r?sort=votes) have already been asked on this platform (which covers questions and answers for any programming language). In my own experience, most questions are answered within a couple of minutes.
|
||||||
|
|
||||||
* **R understands any data type, including SPSS/SAS/Stata.**
|
* **R understands any data type, including SPSS/SAS/Stata.**
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: "How to work with WHONET data"
|
title: "How to work with WHONET data"
|
||||||
author: "Matthijs S. Berends"
|
|
||||||
date: '`r format(Sys.Date(), "%d %B %Y")`'
|
|
||||||
output:
|
output:
|
||||||
rmarkdown::html_vignette:
|
rmarkdown::html_vignette:
|
||||||
toc: true
|
toc: true
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: "Benchmarks"
|
title: "Benchmarks"
|
||||||
author: "Matthijs S. Berends"
|
|
||||||
date: '`r format(Sys.Date(), "%d %B %Y")`'
|
|
||||||
output:
|
output:
|
||||||
rmarkdown::html_vignette:
|
rmarkdown::html_vignette:
|
||||||
toc: true
|
toc: true
|
||||||
@ -88,35 +86,7 @@ ggplot.bm(S.aureus)
|
|||||||
|
|
||||||
In the table above, all measurements are shown in milliseconds (thousands of seconds). A value of 5 milliseconds means it can determine 200 input values per second. It case of 100 milliseconds, this is only 10 input values per second.
|
In the table above, all measurements are shown in milliseconds (thousands of seconds). A value of 5 milliseconds means it can determine 200 input values per second. It case of 100 milliseconds, this is only 10 input values per second.
|
||||||
|
|
||||||
To achieve this speed, the `as.mo` function also takes into account the prevalence of human pathogenic microorganisms. The downside of this is of course that less prevalent microorganisms will be determined less fast. See this example for the ID of *Methanosarcina semesiae* (`B_MTHNSR_SEMS`), a bug probably never found before in humans:
|
To improve performance, two important calculations take almost no time at all: **repetitive results** and **already precalculated results**.
|
||||||
|
|
||||||
```{r, warning=FALSE}
|
|
||||||
M.semesiae <- microbenchmark(as.mo("metsem"),
|
|
||||||
as.mo("METSEM"),
|
|
||||||
as.mo("M. semesiae"),
|
|
||||||
as.mo("M. semesiae"),
|
|
||||||
as.mo("Methanosarcina semesiae"),
|
|
||||||
times = 10)
|
|
||||||
print(M.semesiae, unit = "ms", signif = 4)
|
|
||||||
```
|
|
||||||
|
|
||||||
Looking up arbitrary codes of less prevalent microorganisms costs the most time. Full names (like *Methanosarcina semesiae*) are always very fast and only take some thousands of seconds to coerce - they are the most probable input from most data sets.
|
|
||||||
|
|
||||||
In the figure below, we compare *Escherichia coli* (which is very common) with *Prevotella brevis* (which is moderately common) and with *Methanosarcina semesiae* (which is uncommon):
|
|
||||||
|
|
||||||
```{r, echo = FALSE, fig.width=12}
|
|
||||||
par(mar = c(5, 16, 4, 2))
|
|
||||||
boxplot(microbenchmark(
|
|
||||||
as.mo("Meth. semesiae"),
|
|
||||||
as.mo("Prev. brevis"),
|
|
||||||
as.mo("Esc. coli"),
|
|
||||||
times = 100),
|
|
||||||
horizontal = TRUE, las = 1, unit = "s", log = TRUE,
|
|
||||||
xlab = "", ylab = "Time in seconds (log)",
|
|
||||||
main = "Benchmarks per prevalence")
|
|
||||||
```
|
|
||||||
|
|
||||||
Uncommon microorganisms take some more time than common microorganisms. To further improve performance, two important calculations take almost no time at all: **repetitive results** and **already precalculated results**.
|
|
||||||
|
|
||||||
### Repetitive results
|
### Repetitive results
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
title: "Data sets for download"
|
title: "Data sets for download / own use"
|
||||||
output:
|
output:
|
||||||
rmarkdown::html_vignette:
|
rmarkdown::html_vignette:
|
||||||
toc: true
|
toc: true
|
||||||
toc_depth: 3
|
toc_depth: 2
|
||||||
vignette: >
|
vignette: >
|
||||||
%\VignetteIndexEntry{Data sets for download}
|
%\VignetteIndexEntry{Data sets for download / own use}
|
||||||
%\VignetteEncoding{UTF-8}
|
%\VignetteEncoding{UTF-8}
|
||||||
%\VignetteEngine{knitr::rmarkdown}
|
%\VignetteEngine{knitr::rmarkdown}
|
||||||
editor_options:
|
editor_options:
|
||||||
@ -24,25 +24,25 @@ options(knitr.kable.NA = '')
|
|||||||
|
|
||||||
file_size <- function(...) {
|
file_size <- function(...) {
|
||||||
size_kb <- file.size(...) / 1024
|
size_kb <- file.size(...) / 1024
|
||||||
if (size_kb > 500) {
|
if (size_kb < 100) {
|
||||||
paste(round(size_kb / 1024, 1), "MB")
|
paste(round(size_kb, 0), "kB")
|
||||||
} else {
|
} else {
|
||||||
paste(round(size_kb, 1), "kB")
|
paste(round(size_kb / 1024, 1), "MB")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
structure_txt <- function(dataset) {
|
structure_txt <- function(dataset) {
|
||||||
paste0("A data set with ",
|
paste0("A data set with ",
|
||||||
format(nrow(dataset), big.mark = ","), " rows and ",
|
format(nrow(dataset), big.mark = ","), " rows and ",
|
||||||
ncol(dataset), " columns, containing the following column names:\n\n*",
|
ncol(dataset), " columns, containing the following column names: \n*",
|
||||||
paste0(colnames(dataset), collapse = ", "), "*.")
|
paste0(colnames(dataset), collapse = ", "), "*.")
|
||||||
}
|
}
|
||||||
|
|
||||||
download_txt <- function(filename) {
|
download_txt <- function(filename) {
|
||||||
msg <- paste0("Download the data set preferably in the software you use, so the data file already has the correct data structure. Below files were updated on ",
|
msg <- paste0("It was last updated on ",
|
||||||
trimws(format(file.mtime(paste0("../data/", filename, ".rda")), "%e %B %Y %H:%M:%S %Z")), ".")
|
trimws(format(file.mtime(paste0("../data/", filename, ".rda")), "%e %B %Y %H:%M:%S %Z")),
|
||||||
|
".\n\nDirect download links: \n")
|
||||||
github_base <- "https://github.com/msberends/AMR/raw/master/data-raw/"
|
github_base <- "https://github.com/msberends/AMR/raw/master/data-raw/"
|
||||||
gitlab_base <- "https://gitlab.com/msberends/AMR/-/raw/master/data-raw/"
|
|
||||||
filename <- paste0("../data-raw/", filename)
|
filename <- paste0("../data-raw/", filename)
|
||||||
txt <- paste0(filename, ".txt")
|
txt <- paste0(filename, ".txt")
|
||||||
rds <- paste0(filename, ".rds")
|
rds <- paste0(filename, ".rds")
|
||||||
@ -51,10 +51,7 @@ download_txt <- function(filename) {
|
|||||||
sas <- paste0(filename, ".dta")
|
sas <- paste0(filename, ".dta")
|
||||||
excel <- paste0(filename, ".xlsx")
|
excel <- paste0(filename, ".xlsx")
|
||||||
create_txt <- function(filename, type) {
|
create_txt <- function(filename, type) {
|
||||||
paste0("* ", type, ": ",
|
paste0("[", type, "](", github_base, filename, "), ", file_size(filename), " -- ")
|
||||||
"[from GitHub](", github_base, filename, "), ",
|
|
||||||
"[from GitLab](", gitlab_base, filename, ") ",
|
|
||||||
"(file size: ", file_size(filename), ")")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file.exists(rds)) msg <- c(msg, create_txt(rds, "R file (.rds)"))
|
if (file.exists(rds)) msg <- c(msg, create_txt(rds, "R file (.rds)"))
|
||||||
@ -63,7 +60,8 @@ download_txt <- function(filename) {
|
|||||||
if (file.exists(stata)) msg <- c(msg, create_txt(stata, "Stata file (.dta)"))
|
if (file.exists(stata)) msg <- c(msg, create_txt(stata, "Stata file (.dta)"))
|
||||||
if (file.exists(sas)) msg <- c(msg, create_txt(sas, "SAS file (.sas)"))
|
if (file.exists(sas)) msg <- c(msg, create_txt(sas, "SAS file (.sas)"))
|
||||||
if (file.exists(txt)) msg <- c(msg, create_txt(txt, "Tab separated file (.txt)"))
|
if (file.exists(txt)) msg <- c(msg, create_txt(txt, "Tab separated file (.txt)"))
|
||||||
paste0(msg, collapse = "\n\n")
|
msg[length(msg)] <- gsub(" --", ".", msg[length(msg)], fixed = TRUE)
|
||||||
|
paste0(msg, collapse = "")
|
||||||
}
|
}
|
||||||
|
|
||||||
library(AMR)
|
library(AMR)
|
||||||
@ -92,28 +90,30 @@ print_df <- function(x) {
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
This package contains a lot of reference data sets that are all reliable, up-to-date and free to download. You can even use them outside of R, for example to train your laboratory information system (LIS) about intrinsic resistance!
|
This package contains a lot of reference data sets that are all reliable, up-to-date and free to download. You can even use them outside of R, for example to teach your laboratory information system (LIS) about intrinsic resistance!
|
||||||
|
|
||||||
We included them in our `AMR` package, but also automatically 'mirror' them to our public repository in different software formats. On this page, we explain how to download them and how the structure of the data sets look like. The tab separated files **allow for machine reading taxonomic data and EUCAST and CLSI interpretation guidelines**, which is almost impossible with the Excel and PDF files distributed by EUCAST and CLSI.
|
We included them in our `AMR` package, but also automatically 'mirror' them to our public repository in different software formats. On this page, we explain how to download them and how the structure of the data sets look like. The tab separated files **allow for machine reading taxonomic data and EUCAST and CLSI interpretation guidelines**, which is almost impossible with the Excel and PDF files distributed by EUCAST and CLSI. We also offer all data sets in formats for R, SPSS, SAS, Stata and Excel.
|
||||||
|
|
||||||
*Note: Years and dates of updates mentioned on this page, are from on `AMR` package version `r utils::packageVersion("AMR")`, online released on `r format(utils::packageDate("AMR"), "%e %B %Y")`. **If you are reading this page from within R, please [visit our website](https://msberends.github.io/AMR/articles/datasets.html) for the latest update.***
|
*Note: Years and dates of updates mentioned on this page, are from on `AMR` package version `r utils::packageVersion("AMR")`, online released on `r format(utils::packageDate("AMR"), "%e %B %Y")`. **If you are reading this page from within R, please [visit our website](https://msberends.github.io/AMR/articles/datasets.html) for the latest update.***
|
||||||
|
|
||||||
## Microorganisms
|
## Microorganisms (currently accepted names)
|
||||||
|
|
||||||
This data set is in R available as `microorganisms`, after you load the `AMR` package.
|
This data set is in R available as `microorganisms`, after you load the `AMR` package.
|
||||||
|
|
||||||
#### Source
|
`r download_txt("microorganisms")`
|
||||||
|
|
||||||
|
### Source
|
||||||
|
|
||||||
Our full taxonomy of microorganisms is based on the authoritative and comprehensive:
|
Our full taxonomy of microorganisms is based on the authoritative and comprehensive:
|
||||||
|
|
||||||
* [Catalogue of Life](http://www.catalogueoflife.org) (included version: `r AMR:::catalogue_of_life$year`)
|
* [Catalogue of Life](http://www.catalogueoflife.org) (included version: `r AMR:::catalogue_of_life$year`)
|
||||||
* [List of Prokaryotic names with Standing in Nomenclature](https://lpsn.dsmz.de) (LPSN, included version: `r AMR:::catalogue_of_life$yearmonth_DSMZ`)
|
* [List of Prokaryotic names with Standing in Nomenclature](https://lpsn.dsmz.de) (LPSN, included version: `r AMR:::catalogue_of_life$yearmonth_DSMZ`)
|
||||||
|
|
||||||
#### Structure
|
### Structure
|
||||||
|
|
||||||
`r structure_txt(microorganisms)`
|
`r structure_txt(microorganisms)`
|
||||||
|
|
||||||
Included per taxonomic kingdom:
|
Included (sub)species per taxonomic kingdom:
|
||||||
|
|
||||||
```{r, echo = FALSE}
|
```{r, echo = FALSE}
|
||||||
microorganisms %>%
|
microorganisms %>%
|
||||||
@ -125,13 +125,6 @@ microorganisms %>%
|
|||||||
print_df()
|
print_df()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
#### Download
|
|
||||||
|
|
||||||
`r download_txt("microorganisms")`
|
|
||||||
|
|
||||||
#### Example
|
|
||||||
|
|
||||||
Example rows when filtering on genus *Escherichia*:
|
Example rows when filtering on genus *Escherichia*:
|
||||||
|
|
||||||
```{r, echo = FALSE}
|
```{r, echo = FALSE}
|
||||||
@ -140,11 +133,41 @@ microorganisms %>%
|
|||||||
print_df()
|
print_df()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Microorganisms (previously accepted names)
|
||||||
|
|
||||||
|
This data set is in R available as `microorganisms.old`, after you load the `AMR` package.
|
||||||
|
|
||||||
|
`r download_txt("microorganisms.old")`
|
||||||
|
|
||||||
|
### Source
|
||||||
|
|
||||||
|
This data set contains old, previously accepted taxonomic names. The data sources are the same as the `microorganisms` data set:
|
||||||
|
|
||||||
|
* [Catalogue of Life](http://www.catalogueoflife.org) (included version: `r AMR:::catalogue_of_life$year`)
|
||||||
|
* [List of Prokaryotic names with Standing in Nomenclature](https://lpsn.dsmz.de) (LPSN, included version: `r AMR:::catalogue_of_life$yearmonth_DSMZ`)
|
||||||
|
|
||||||
|
### Structure
|
||||||
|
|
||||||
|
`r structure_txt(microorganisms.old)`
|
||||||
|
|
||||||
|
**Note:** remember that the 'ref' columns contains the scientific reference to the old taxonomic entries, i.e. of column *fullname*. For the scientific reference of the new names, i.e. of column *fullname_new*, see the `microorganisms` data set.
|
||||||
|
|
||||||
|
Example rows when filtering on *Escherichia*:
|
||||||
|
|
||||||
|
```{r, echo = FALSE}
|
||||||
|
microorganisms.old %>%
|
||||||
|
filter(fullname %like% "^Escherichia") %>%
|
||||||
|
print_df()
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Antibiotic agents
|
## Antibiotic agents
|
||||||
|
|
||||||
This data set is in R available as `antibiotics`, after you load the `AMR` package.
|
This data set is in R available as `antibiotics`, after you load the `AMR` package.
|
||||||
|
|
||||||
#### Source
|
`r download_txt("antibiotics")`
|
||||||
|
|
||||||
|
### Source
|
||||||
|
|
||||||
This data set contains all EARS-Net and ATC codes gathered from WHO and WHONET, and all compound IDs from PubChem. It also contains all brand names (synonyms) as found on PubChem and Defined Daily Doses (DDDs) for oral and parenteral administration.
|
This data set contains all EARS-Net and ATC codes gathered from WHO and WHONET, and all compound IDs from PubChem. It also contains all brand names (synonyms) as found on PubChem and Defined Daily Doses (DDDs) for oral and parenteral administration.
|
||||||
|
|
||||||
@ -152,16 +175,10 @@ This data set contains all EARS-Net and ATC codes gathered from WHO and WHONET,
|
|||||||
* [PubChem by the US National Library of Medicine](https://pubchem.ncbi.nlm.nih.gov)
|
* [PubChem by the US National Library of Medicine](https://pubchem.ncbi.nlm.nih.gov)
|
||||||
* [WHONET software 2019](https://whonet.org)
|
* [WHONET software 2019](https://whonet.org)
|
||||||
|
|
||||||
#### Structure
|
### Structure
|
||||||
|
|
||||||
`r structure_txt(antibiotics)`
|
`r structure_txt(antibiotics)`
|
||||||
|
|
||||||
#### Download
|
|
||||||
|
|
||||||
`r download_txt("antibiotics")`
|
|
||||||
|
|
||||||
#### Example
|
|
||||||
|
|
||||||
Example rows:
|
Example rows:
|
||||||
|
|
||||||
```{r, echo = FALSE}
|
```{r, echo = FALSE}
|
||||||
@ -175,23 +192,19 @@ antibiotics %>%
|
|||||||
|
|
||||||
This data set is in R available as `antivirals`, after you load the `AMR` package.
|
This data set is in R available as `antivirals`, after you load the `AMR` package.
|
||||||
|
|
||||||
#### Source
|
`r download_txt("antivirals")`
|
||||||
|
|
||||||
|
### Source
|
||||||
|
|
||||||
This data set contains all ATC codes gathered from WHO and all compound IDs from PubChem. It also contains all brand names (synonyms) as found on PubChem and Defined Daily Doses (DDDs) for oral and parenteral administration.
|
This data set contains all ATC codes gathered from WHO and all compound IDs from PubChem. It also contains all brand names (synonyms) as found on PubChem and Defined Daily Doses (DDDs) for oral and parenteral administration.
|
||||||
|
|
||||||
* [ATC/DDD index from WHO Collaborating Centre for Drug Statistics Methodology](https://www.whocc.no/atc_ddd_index/) (note: this may not be used for commercial purposes, but is frelly available from the WHO CC website for personal use)
|
* [ATC/DDD index from WHO Collaborating Centre for Drug Statistics Methodology](https://www.whocc.no/atc_ddd_index/) (note: this may not be used for commercial purposes, but is frelly available from the WHO CC website for personal use)
|
||||||
* [PubChem by the US National Library of Medicine](https://pubchem.ncbi.nlm.nih.gov)
|
* [PubChem by the US National Library of Medicine](https://pubchem.ncbi.nlm.nih.gov)
|
||||||
|
|
||||||
#### Structure
|
### Structure
|
||||||
|
|
||||||
`r structure_txt(antivirals)`
|
`r structure_txt(antivirals)`
|
||||||
|
|
||||||
#### Download
|
|
||||||
|
|
||||||
`r download_txt("antivirals")`
|
|
||||||
|
|
||||||
#### Example
|
|
||||||
|
|
||||||
Example rows:
|
Example rows:
|
||||||
|
|
||||||
```{r, echo = FALSE}
|
```{r, echo = FALSE}
|
||||||
@ -204,23 +217,19 @@ antivirals %>%
|
|||||||
|
|
||||||
This data set is in R available as `intrinsic_resistant`, after you load the `AMR` package.
|
This data set is in R available as `intrinsic_resistant`, after you load the `AMR` package.
|
||||||
|
|
||||||
#### Source
|
`r download_txt("intrinsic_resistant")`
|
||||||
|
|
||||||
|
### Source
|
||||||
|
|
||||||
This data set contains all defined intrinsic resistance by EUCAST of all bug-drug combinations.
|
This data set contains all defined intrinsic resistance by EUCAST of all bug-drug combinations.
|
||||||
|
|
||||||
The data set is based on 'EUCAST Expert Rules, Intrinsic Resistance and Exceptional Phenotypes', version `r AMR:::EUCAST_VERSION_EXPERT_RULES`.
|
The data set is based on 'EUCAST Expert Rules, Intrinsic Resistance and Exceptional Phenotypes', version `r AMR:::EUCAST_VERSION_EXPERT_RULES`.
|
||||||
|
|
||||||
#### Structure
|
### Structure
|
||||||
|
|
||||||
`r structure_txt(intrinsic_resistant)`
|
`r structure_txt(intrinsic_resistant)`
|
||||||
|
|
||||||
#### Download
|
Example rows when filtering on *Klebsiella*:
|
||||||
|
|
||||||
`r download_txt("intrinsic_resistant")`
|
|
||||||
|
|
||||||
#### Example
|
|
||||||
|
|
||||||
Example rows:
|
|
||||||
|
|
||||||
```{r, echo = FALSE}
|
```{r, echo = FALSE}
|
||||||
intrinsic_resistant %>%
|
intrinsic_resistant %>%
|
||||||
@ -233,20 +242,16 @@ intrinsic_resistant %>%
|
|||||||
|
|
||||||
This data set is in R available as `rsi_translation`, after you load the `AMR` package.
|
This data set is in R available as `rsi_translation`, after you load the `AMR` package.
|
||||||
|
|
||||||
#### Source
|
`r download_txt("rsi_translation")`
|
||||||
|
|
||||||
|
### Source
|
||||||
|
|
||||||
This data set contains interpretation rules for MIC values and disk diffusion diameters. Included guidelines are CLSI (`r min(as.integer(gsub("[^0-9]", "", subset(rsi_translation, guideline %like% "CLSI")$guideline)))`-`r max(as.integer(gsub("[^0-9]", "", subset(rsi_translation, guideline %like% "CLSI")$guideline)))`) and EUCAST (`r min(as.integer(gsub("[^0-9]", "", subset(rsi_translation, guideline %like% "EUCAST")$guideline)))`-`r max(as.integer(gsub("[^0-9]", "", subset(rsi_translation, guideline %like% "EUCAST")$guideline)))`).
|
This data set contains interpretation rules for MIC values and disk diffusion diameters. Included guidelines are CLSI (`r min(as.integer(gsub("[^0-9]", "", subset(rsi_translation, guideline %like% "CLSI")$guideline)))`-`r max(as.integer(gsub("[^0-9]", "", subset(rsi_translation, guideline %like% "CLSI")$guideline)))`) and EUCAST (`r min(as.integer(gsub("[^0-9]", "", subset(rsi_translation, guideline %like% "EUCAST")$guideline)))`-`r max(as.integer(gsub("[^0-9]", "", subset(rsi_translation, guideline %like% "EUCAST")$guideline)))`).
|
||||||
|
|
||||||
#### Structure
|
### Structure
|
||||||
|
|
||||||
`r structure_txt(rsi_translation)`
|
`r structure_txt(rsi_translation)`
|
||||||
|
|
||||||
#### Download
|
|
||||||
|
|
||||||
`r download_txt("rsi_translation")`
|
|
||||||
|
|
||||||
#### Example
|
|
||||||
|
|
||||||
Example rows:
|
Example rows:
|
||||||
|
|
||||||
```{r, echo = FALSE}
|
```{r, echo = FALSE}
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: "How to predict antimicrobial resistance"
|
title: "How to predict antimicrobial resistance"
|
||||||
author: "Matthijs S. Berends"
|
|
||||||
date: '`r format(Sys.Date(), "%d %B %Y")`'
|
|
||||||
output:
|
output:
|
||||||
rmarkdown::html_vignette:
|
rmarkdown::html_vignette:
|
||||||
toc: true
|
toc: true
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: "Welcome to the AMR package"
|
title: "Welcome to the AMR package"
|
||||||
author: "Matthijs S. Berends"
|
|
||||||
date: '`r format(Sys.Date(), "%d %B %Y")`'
|
|
||||||
output:
|
output:
|
||||||
rmarkdown::html_vignette:
|
rmarkdown::html_vignette:
|
||||||
toc: true
|
toc: true
|
||||||
|
Reference in New Issue
Block a user