Built site for AMR: 1.8.2.9012@955f9d7
2
404.html
@ -36,7 +36,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="https://msberends.github.io/AMR/index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -38,7 +38,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -325,69 +325,69 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="center">2012-05-04</td>
|
||||
<td align="center">P4</td>
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">2017-04-25</td>
|
||||
<td align="center">U7</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">Escherichia coli</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">F</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2014-07-05</td>
|
||||
<td align="center">K8</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">Staphylococcus aureus</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">M</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">2010-05-31</td>
|
||||
<td align="center">N4</td>
|
||||
<td align="center">Hospital C</td>
|
||||
<td align="center">Escherichia coli</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">M</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2015-09-13</td>
|
||||
<td align="center">M2</td>
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">Staphylococcus aureus</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">F</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2014-03-03</td>
|
||||
<td align="center">N3</td>
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">Escherichia coli</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">M</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">2016-09-06</td>
|
||||
<td align="center">M1</td>
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">Klebsiella pneumoniae</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">M</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2014-01-03</td>
|
||||
<td align="center">T9</td>
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">Escherichia coli</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">F</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">2013-12-05</td>
|
||||
<td align="center">T7</td>
|
||||
<td align="center">2010-11-26</td>
|
||||
<td align="center">O2</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">Escherichia coli</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">Staphylococcus aureus</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">F</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2017-01-24</td>
|
||||
<td align="center">A5</td>
|
||||
<td align="center">2010-11-30</td>
|
||||
<td align="center">E9</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">Escherichia coli</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">Streptococcus pneumoniae</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">M</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -422,16 +422,16 @@ Longest: 1</p>
|
||||
<tr class="odd">
|
||||
<td align="left">1</td>
|
||||
<td align="left">M</td>
|
||||
<td align="right">10,425</td>
|
||||
<td align="right">52.13%</td>
|
||||
<td align="right">10,425</td>
|
||||
<td align="right">52.13%</td>
|
||||
<td align="right">10,401</td>
|
||||
<td align="right">52.01%</td>
|
||||
<td align="right">10,401</td>
|
||||
<td align="right">52.01%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">2</td>
|
||||
<td align="left">F</td>
|
||||
<td align="right">9,575</td>
|
||||
<td align="right">47.88%</td>
|
||||
<td align="right">9,599</td>
|
||||
<td align="right">48.00%</td>
|
||||
<td align="right">20,000</td>
|
||||
<td align="right">100.00%</td>
|
||||
</tr>
|
||||
@ -488,9 +488,9 @@ Longest: 1</p>
|
||||
<span><span class="co"># Basing inclusion on all antimicrobial results, using a points threshold of</span></span>
|
||||
<span><span class="co"># 2</span></span>
|
||||
<span><span class="co"># Including isolates from ICU.</span></span>
|
||||
<span><span class="co"># => Found 10,700 'phenotype-based' first isolates (53.5% of total where a</span></span>
|
||||
<span><span class="co"># => Found 10,666 'phenotype-based' first isolates (53.3% of total where a</span></span>
|
||||
<span><span class="co"># microbial ID was available)</span></span></code></pre></div>
|
||||
<p>So only 53.5% is suitable for resistance analysis! We can now filter on it with the <code><a href="https://dplyr.tidyverse.org/reference/filter.html" class="external-link">filter()</a></code> function, also from the <code>dplyr</code> package:</p>
|
||||
<p>So only 53.3% is suitable for resistance analysis! We can now filter on it with the <code><a href="https://dplyr.tidyverse.org/reference/filter.html" class="external-link">filter()</a></code> function, also from the <code>dplyr</code> package:</p>
|
||||
<div class="sourceCode" id="cb15"><pre class="downlit sourceCode r">
|
||||
<code class="sourceCode R"><span><span class="va">data_1st</span> <span class="op"><-</span> <span class="va">data</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span>
|
||||
<span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/filter.html" class="external-link">filter</a></span><span class="op">(</span><span class="va">first</span> <span class="op">==</span> <span class="cn">TRUE</span><span class="op">)</span></span></code></pre></div>
|
||||
@ -499,7 +499,7 @@ Longest: 1</p>
|
||||
<code class="sourceCode R"><span><span class="va">data_1st</span> <span class="op"><-</span> <span class="va">data</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span>
|
||||
<span> <span class="fu"><a href="../reference/first_isolate.html">filter_first_isolate</a></span><span class="op">(</span><span class="op">)</span></span>
|
||||
<span><span class="co"># Including isolates from ICU.</span></span></code></pre></div>
|
||||
<p>So we end up with 10,700 isolates for analysis. Now our data looks like:</p>
|
||||
<p>So we end up with 10,666 isolates for analysis. Now our data looks like:</p>
|
||||
<div class="sourceCode" id="cb17"><pre class="downlit sourceCode r">
|
||||
<code class="sourceCode R"><span><span class="fu"><a href="https://rdrr.io/r/utils/head.html" class="external-link">head</a></span><span class="op">(</span><span class="va">data_1st</span><span class="op">)</span></span></code></pre></div>
|
||||
<table style="width:100%;" class="table">
|
||||
@ -537,78 +537,14 @@ Longest: 1</p>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="left">5</td>
|
||||
<td align="center">2013-12-05</td>
|
||||
<td align="center">T7</td>
|
||||
<td align="left">2</td>
|
||||
<td align="center">2014-07-05</td>
|
||||
<td align="center">K8</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">F</td>
|
||||
<td align="center">Gram-negative</td>
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">coli</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">6</td>
|
||||
<td align="center">2017-01-24</td>
|
||||
<td align="center">A5</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-negative</td>
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">coli</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">7</td>
|
||||
<td align="center">2011-12-23</td>
|
||||
<td align="center">B5</td>
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">B_STRPT_PNMN</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-positive</td>
|
||||
<td align="center">Streptococcus</td>
|
||||
<td align="center">pneumoniae</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">8</td>
|
||||
<td align="center">2012-06-13</td>
|
||||
<td align="center">C3</td>
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-negative</td>
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">coli</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">9</td>
|
||||
<td align="center">2017-04-10</td>
|
||||
<td align="center">C3</td>
|
||||
<td align="center">Hospital C</td>
|
||||
<td align="center">B_STPHY_AURS</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-positive</td>
|
||||
@ -617,16 +553,80 @@ Longest: 1</p>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">10</td>
|
||||
<td align="center">2013-09-19</td>
|
||||
<td align="center">R2</td>
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="left">7</td>
|
||||
<td align="center">2016-07-20</td>
|
||||
<td align="center">I10</td>
|
||||
<td align="center">Hospital C</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-negative</td>
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">coli</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">8</td>
|
||||
<td align="center">2016-01-03</td>
|
||||
<td align="center">V5</td>
|
||||
<td align="center">Hospital C</td>
|
||||
<td align="center">B_STRPT_PNMN</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">F</td>
|
||||
<td align="center">Gram-positive</td>
|
||||
<td align="center">Streptococcus</td>
|
||||
<td align="center">pneumoniae</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">10</td>
|
||||
<td align="center">2014-06-25</td>
|
||||
<td align="center">X6</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">B_STPHY_AURS</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">F</td>
|
||||
<td align="center">Gram-positive</td>
|
||||
<td align="center">Staphylococcus</td>
|
||||
<td align="center">aureus</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">14</td>
|
||||
<td align="center">2015-04-05</td>
|
||||
<td align="center">P10</td>
|
||||
<td align="center">Hospital C</td>
|
||||
<td align="center">B_STPHY_AURS</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">F</td>
|
||||
<td align="center">Gram-positive</td>
|
||||
<td align="center">Staphylococcus</td>
|
||||
<td align="center">aureus</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">16</td>
|
||||
<td align="center">2015-07-19</td>
|
||||
<td align="center">L8</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-negative</td>
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">coli</td>
|
||||
@ -653,8 +653,8 @@ Longest: 1</p>
|
||||
<code class="sourceCode R"><span><span class="va">data_1st</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span> <span class="fu"><a href="https://rdrr.io/pkg/cleaner/man/freq.html" class="external-link">freq</a></span><span class="op">(</span><span class="va">genus</span>, <span class="va">species</span><span class="op">)</span></span></code></pre></div>
|
||||
<p><strong>Frequency table</strong></p>
|
||||
<p>Class: character<br>
|
||||
Length: 10,700<br>
|
||||
Available: 10,700 (100.0%, NA: 0 = 0.0%)<br>
|
||||
Length: 10,666<br>
|
||||
Available: 10,666 (100.0%, NA: 0 = 0.0%)<br>
|
||||
Unique: 4</p>
|
||||
<p>Shortest: 16<br>
|
||||
Longest: 24</p>
|
||||
@ -671,33 +671,33 @@ Longest: 24</p>
|
||||
<tr class="odd">
|
||||
<td align="left">1</td>
|
||||
<td align="left">Escherichia coli</td>
|
||||
<td align="right">4,656</td>
|
||||
<td align="right">43.51%</td>
|
||||
<td align="right">4,656</td>
|
||||
<td align="right">43.51%</td>
|
||||
<td align="right">4,672</td>
|
||||
<td align="right">43.80%</td>
|
||||
<td align="right">4,672</td>
|
||||
<td align="right">43.80%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">2</td>
|
||||
<td align="left">Staphylococcus aureus</td>
|
||||
<td align="right">2,775</td>
|
||||
<td align="right">25.93%</td>
|
||||
<td align="right">7,431</td>
|
||||
<td align="right">69.45%</td>
|
||||
<td align="right">2,720</td>
|
||||
<td align="right">25.50%</td>
|
||||
<td align="right">7,392</td>
|
||||
<td align="right">69.30%</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">3</td>
|
||||
<td align="left">Streptococcus pneumoniae</td>
|
||||
<td align="right">2,097</td>
|
||||
<td align="right">19.60%</td>
|
||||
<td align="right">9,528</td>
|
||||
<td align="right">89.05%</td>
|
||||
<td align="right">2,083</td>
|
||||
<td align="right">19.53%</td>
|
||||
<td align="right">9,475</td>
|
||||
<td align="right">88.83%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">4</td>
|
||||
<td align="left">Klebsiella pneumoniae</td>
|
||||
<td align="right">1,172</td>
|
||||
<td align="right">10.95%</td>
|
||||
<td align="right">10,700</td>
|
||||
<td align="right">1,191</td>
|
||||
<td align="right">11.17%</td>
|
||||
<td align="right">10,666</td>
|
||||
<td align="right">100.00%</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -744,53 +744,53 @@ Longest: 24</p>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="center">2017-01-24</td>
|
||||
<td align="center">A5</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-negative</td>
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">coli</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2011-12-23</td>
|
||||
<td align="center">B5</td>
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">2016-01-03</td>
|
||||
<td align="center">V5</td>
|
||||
<td align="center">Hospital C</td>
|
||||
<td align="center">B_STRPT_PNMN</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">F</td>
|
||||
<td align="center">Gram-positive</td>
|
||||
<td align="center">Streptococcus</td>
|
||||
<td align="center">pneumoniae</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">2016-03-01</td>
|
||||
<td align="center">W9</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<tr class="even">
|
||||
<td align="center">2016-11-05</td>
|
||||
<td align="center">U5</td>
|
||||
<td align="center">Hospital C</td>
|
||||
<td align="center">B_STRPT_PNMN</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">F</td>
|
||||
<td align="center">Gram-negative</td>
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">coli</td>
|
||||
<td align="center">Gram-positive</td>
|
||||
<td align="center">Streptococcus</td>
|
||||
<td align="center">pneumoniae</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">2015-04-17</td>
|
||||
<td align="center">I4</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">B_STRPT_PNMN</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-positive</td>
|
||||
<td align="center">Streptococcus</td>
|
||||
<td align="center">pneumoniae</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2011-10-21</td>
|
||||
<td align="center">M6</td>
|
||||
<td align="center">2015-01-11</td>
|
||||
<td align="center">K6</td>
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">B_STRPT_PNMN</td>
|
||||
<td align="center">R</td>
|
||||
@ -804,30 +804,30 @@ Longest: 24</p>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">2017-09-13</td>
|
||||
<td align="center">D7</td>
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">2014-08-09</td>
|
||||
<td align="center">U1</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">B_STRPT_PNMN</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">Gram-negative</td>
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">coli</td>
|
||||
<td align="center">F</td>
|
||||
<td align="center">Gram-positive</td>
|
||||
<td align="center">Streptococcus</td>
|
||||
<td align="center">pneumoniae</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2011-06-26</td>
|
||||
<td align="center">L7</td>
|
||||
<td align="center">Hospital C</td>
|
||||
<td align="center">2011-12-13</td>
|
||||
<td align="center">W1</td>
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">M</td>
|
||||
<td align="center">F</td>
|
||||
<td align="center">Gram-negative</td>
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">coli</td>
|
||||
@ -854,50 +854,50 @@ Longest: 24</p>
|
||||
<tr class="odd">
|
||||
<td align="center">E. coli</td>
|
||||
<td align="center">AMX</td>
|
||||
<td align="center">2196</td>
|
||||
<td align="center">122</td>
|
||||
<td align="center">2338</td>
|
||||
<td align="center">4656</td>
|
||||
<td align="center">2238</td>
|
||||
<td align="center">117</td>
|
||||
<td align="center">2317</td>
|
||||
<td align="center">4672</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">E. coli</td>
|
||||
<td align="center">AMC</td>
|
||||
<td align="center">3393</td>
|
||||
<td align="center">163</td>
|
||||
<td align="center">1100</td>
|
||||
<td align="center">4656</td>
|
||||
<td align="center">3470</td>
|
||||
<td align="center">155</td>
|
||||
<td align="center">1047</td>
|
||||
<td align="center">4672</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">E. coli</td>
|
||||
<td align="center">CIP</td>
|
||||
<td align="center">3421</td>
|
||||
<td align="center">3430</td>
|
||||
<td align="center">0</td>
|
||||
<td align="center">1235</td>
|
||||
<td align="center">4656</td>
|
||||
<td align="center">1242</td>
|
||||
<td align="center">4672</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">E. coli</td>
|
||||
<td align="center">GEN</td>
|
||||
<td align="center">4068</td>
|
||||
<td align="center">4080</td>
|
||||
<td align="center">0</td>
|
||||
<td align="center">588</td>
|
||||
<td align="center">4656</td>
|
||||
<td align="center">592</td>
|
||||
<td align="center">4672</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">K. pneumoniae</td>
|
||||
<td align="center">AMX</td>
|
||||
<td align="center">0</td>
|
||||
<td align="center">0</td>
|
||||
<td align="center">1172</td>
|
||||
<td align="center">1172</td>
|
||||
<td align="center">1191</td>
|
||||
<td align="center">1191</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">K. pneumoniae</td>
|
||||
<td align="center">AMC</td>
|
||||
<td align="center">905</td>
|
||||
<td align="center">39</td>
|
||||
<td align="center">228</td>
|
||||
<td align="center">1172</td>
|
||||
<td align="center">910</td>
|
||||
<td align="center">35</td>
|
||||
<td align="center">246</td>
|
||||
<td align="center">1191</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -920,34 +920,34 @@ Longest: 24</p>
|
||||
<tr class="odd">
|
||||
<td align="center">E. coli</td>
|
||||
<td align="center">GEN</td>
|
||||
<td align="center">4068</td>
|
||||
<td align="center">4080</td>
|
||||
<td align="center">0</td>
|
||||
<td align="center">588</td>
|
||||
<td align="center">4656</td>
|
||||
<td align="center">592</td>
|
||||
<td align="center">4672</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">K. pneumoniae</td>
|
||||
<td align="center">GEN</td>
|
||||
<td align="center">1068</td>
|
||||
<td align="center">1082</td>
|
||||
<td align="center">0</td>
|
||||
<td align="center">104</td>
|
||||
<td align="center">1172</td>
|
||||
<td align="center">109</td>
|
||||
<td align="center">1191</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">S. aureus</td>
|
||||
<td align="center">GEN</td>
|
||||
<td align="center">2464</td>
|
||||
<td align="center">2414</td>
|
||||
<td align="center">0</td>
|
||||
<td align="center">311</td>
|
||||
<td align="center">2775</td>
|
||||
<td align="center">306</td>
|
||||
<td align="center">2720</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">S. pneumoniae</td>
|
||||
<td align="center">GEN</td>
|
||||
<td align="center">0</td>
|
||||
<td align="center">0</td>
|
||||
<td align="center">2097</td>
|
||||
<td align="center">2097</td>
|
||||
<td align="center">2083</td>
|
||||
<td align="center">2083</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -961,7 +961,7 @@ Longest: 24</p>
|
||||
<p>As per the EUCAST guideline of 2019, we calculate resistance as the proportion of R (<code><a href="../reference/proportion.html">proportion_R()</a></code>, equal to <code><a href="../reference/proportion.html">resistance()</a></code>) and susceptibility as the proportion of S and I (<code><a href="../reference/proportion.html">proportion_SI()</a></code>, equal to <code><a href="../reference/proportion.html">susceptibility()</a></code>). These functions can be used on their own:</p>
|
||||
<div class="sourceCode" id="cb26"><pre class="downlit sourceCode r">
|
||||
<code class="sourceCode R"><span><span class="va">data_1st</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span> <span class="fu"><a href="../reference/proportion.html">resistance</a></span><span class="op">(</span><span class="va">AMX</span><span class="op">)</span></span>
|
||||
<span><span class="co"># [1] 0.5437383</span></span></code></pre></div>
|
||||
<span><span class="co"># [1] 0.5417214</span></span></code></pre></div>
|
||||
<p>Or can be used in conjunction with <code><a href="https://dplyr.tidyverse.org/reference/group_by.html" class="external-link">group_by()</a></code> and <code><a href="https://dplyr.tidyverse.org/reference/summarise.html" class="external-link">summarise()</a></code>, both from the <code>dplyr</code> package:</p>
|
||||
<div class="sourceCode" id="cb27"><pre class="downlit sourceCode r">
|
||||
<code class="sourceCode R"><span><span class="va">data_1st</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span>
|
||||
@ -975,19 +975,19 @@ Longest: 24</p>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">0.5490758</td>
|
||||
<td align="center">0.5304916</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">0.5407427</td>
|
||||
<td align="center">0.5437333</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">Hospital C</td>
|
||||
<td align="center">0.5584975</td>
|
||||
<td align="center">0.5332512</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">0.5302961</td>
|
||||
<td align="center">0.5620789</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -1008,23 +1008,23 @@ Longest: 24</p>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">0.5490758</td>
|
||||
<td align="center">3138</td>
|
||||
<td align="center">0.5304916</td>
|
||||
<td align="center">3214</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">0.5407427</td>
|
||||
<td align="center">3743</td>
|
||||
<td align="center">0.5437333</td>
|
||||
<td align="center">3750</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">Hospital C</td>
|
||||
<td align="center">0.5584975</td>
|
||||
<td align="center">0.5332512</td>
|
||||
<td align="center">1624</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">0.5302961</td>
|
||||
<td align="center">2195</td>
|
||||
<td align="center">0.5620789</td>
|
||||
<td align="center">2078</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -1047,27 +1047,27 @@ Longest: 24</p>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">0.7637457</td>
|
||||
<td align="center">0.8737113</td>
|
||||
<td align="center">0.9755155</td>
|
||||
<td align="center">0.7758990</td>
|
||||
<td align="center">0.8732877</td>
|
||||
<td align="center">0.9796661</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">Klebsiella</td>
|
||||
<td align="center">0.8054608</td>
|
||||
<td align="center">0.9112628</td>
|
||||
<td align="center">0.9778157</td>
|
||||
<td align="center">0.7934509</td>
|
||||
<td align="center">0.9084803</td>
|
||||
<td align="center">0.9798489</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">Staphylococcus</td>
|
||||
<td align="center">0.7895495</td>
|
||||
<td align="center">0.8879279</td>
|
||||
<td align="center">0.9819820</td>
|
||||
<td align="center">0.7886029</td>
|
||||
<td align="center">0.8875000</td>
|
||||
<td align="center">0.9786765</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">Streptococcus</td>
|
||||
<td align="center">0.5398188</td>
|
||||
<td align="center">0.5424868</td>
|
||||
<td align="center">0.0000000</td>
|
||||
<td align="center">0.5398188</td>
|
||||
<td align="center">0.5424868</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -1092,23 +1092,23 @@ Longest: 24</p>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="left">Hospital A</td>
|
||||
<td align="right">54.9%</td>
|
||||
<td align="right">26.7%</td>
|
||||
<td align="right">53.0%</td>
|
||||
<td align="right">25.4%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Hospital B</td>
|
||||
<td align="right">54.1%</td>
|
||||
<td align="right">27.4%</td>
|
||||
<td align="right">54.4%</td>
|
||||
<td align="right">26.4%</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Hospital C</td>
|
||||
<td align="right">55.8%</td>
|
||||
<td align="right">27.2%</td>
|
||||
<td align="right">53.3%</td>
|
||||
<td align="right">25.9%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Hospital D</td>
|
||||
<td align="right">53.0%</td>
|
||||
<td align="right">26.1%</td>
|
||||
<td align="right">56.2%</td>
|
||||
<td align="right">28.5%</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -1206,16 +1206,18 @@ Longest: 24</p>
|
||||
<code class="sourceCode R"><span><span class="va">mic_values</span> <span class="op"><-</span> <span class="fu"><a href="../reference/random.html">random_mic</a></span><span class="op">(</span>size <span class="op">=</span> <span class="fl">100</span><span class="op">)</span></span>
|
||||
<span><span class="va">mic_values</span></span>
|
||||
<span><span class="co"># Class <mic></span></span>
|
||||
<span><span class="co"># [1] 8 0.001 0.0625 0.025 128 0.005 16 64 >=256 128 </span></span>
|
||||
<span><span class="co"># [11] 128 0.5 0.005 0.005 >=256 16 0.025 0.01 16 16 </span></span>
|
||||
<span><span class="co"># [21] 2 32 0.01 >=256 16 4 0.0625 8 128 1 </span></span>
|
||||
<span><span class="co"># [31] 0.25 >=256 8 64 0.01 32 0.25 32 0.25 8 </span></span>
|
||||
<span><span class="co"># [41] 0.25 128 16 1 0.5 0.5 0.01 2 64 0.002 </span></span>
|
||||
<span><span class="co"># [51] >=256 2 0.001 8 0.0625 16 0.025 64 16 0.5 </span></span>
|
||||
<span><span class="co"># [61] 128 16 0.025 16 8 128 0.001 >=256 2 0.001 </span></span>
|
||||
<span><span class="co"># [71] 16 1 32 16 16 0.25 0.025 32 0.0625 0.125 </span></span>
|
||||
<span><span class="co"># [81] 0.25 16 128 0.001 1 0.25 0.001 0.01 8 4 </span></span>
|
||||
<span><span class="co"># [91] 128 0.025 2 0.005 4 16 16 0.001 0.5 0.001</span></span></code></pre></div>
|
||||
<span><span class="co"># [1] 0.002 <=0.001 0.025 0.002 0.002 >=256 8 4 0.5 </span></span>
|
||||
<span><span class="co"># [10] >=256 8 2 0.25 0.125 0.25 4 1 0.25 </span></span>
|
||||
<span><span class="co"># [19] 32 32 0.25 0.01 0.125 1 128 32 0.5 </span></span>
|
||||
<span><span class="co"># [28] 0.01 128 2 0.125 0.002 32 >=256 64 0.005 </span></span>
|
||||
<span><span class="co"># [37] 16 0.005 2 128 1 32 0.0625 0.005 2 </span></span>
|
||||
<span><span class="co"># [46] 128 0.01 2 0.5 16 0.01 4 8 <=0.001</span></span>
|
||||
<span><span class="co"># [55] 0.25 32 0.125 0.002 <=0.001 0.005 16 0.125 4 </span></span>
|
||||
<span><span class="co"># [64] 32 32 0.01 0.002 64 0.01 0.0625 8 4 </span></span>
|
||||
<span><span class="co"># [73] 64 <=0.001 0.005 <=0.001 16 0.5 2 2 <=0.001</span></span>
|
||||
<span><span class="co"># [82] 128 0.005 0.025 1 1 0.025 32 64 0.0625 </span></span>
|
||||
<span><span class="co"># [91] 0.005 0.025 0.01 0.005 0.125 4 128 4 0.0625 </span></span>
|
||||
<span><span class="co"># [100] 0.005</span></span></code></pre></div>
|
||||
<div class="sourceCode" id="cb37"><pre class="downlit sourceCode r">
|
||||
<code class="sourceCode R"><span><span class="co"># base R:</span></span>
|
||||
<span><span class="fu"><a href="../reference/plot.html">plot</a></span><span class="op">(</span><span class="va">mic_values</span><span class="op">)</span></span></code></pre></div>
|
||||
@ -1242,10 +1244,10 @@ Longest: 24</p>
|
||||
<code class="sourceCode R"><span><span class="va">disk_values</span> <span class="op"><-</span> <span class="fu"><a href="../reference/random.html">random_disk</a></span><span class="op">(</span>size <span class="op">=</span> <span class="fl">100</span>, mo <span class="op">=</span> <span class="st">"E. coli"</span>, ab <span class="op">=</span> <span class="st">"cipro"</span><span class="op">)</span></span>
|
||||
<span><span class="va">disk_values</span></span>
|
||||
<span><span class="co"># Class <disk></span></span>
|
||||
<span><span class="co"># [1] 30 18 18 30 21 28 31 27 24 20 27 20 27 21 27 17 22 19 28 23 19 25 21 17 21</span></span>
|
||||
<span><span class="co"># [26] 24 22 27 26 18 22 17 18 21 26 17 17 22 31 24 30 20 28 23 17 29 19 30 22 24</span></span>
|
||||
<span><span class="co"># [51] 25 22 18 19 30 24 19 26 17 18 17 21 26 18 31 21 24 24 19 30 30 18 27 18 18</span></span>
|
||||
<span><span class="co"># [76] 25 26 22 31 26 19 17 24 24 22 28 17 26 17 19 30 18 20 18 18 18 27 23 25 30</span></span></code></pre></div>
|
||||
<span><span class="co"># [1] 26 17 18 21 22 21 20 25 25 26 25 19 19 27 21 29 19 31 20 31 18 26 26 25 26</span></span>
|
||||
<span><span class="co"># [26] 30 27 29 22 27 29 29 20 17 22 31 24 23 29 24 24 28 27 24 26 30 21 23 28 19</span></span>
|
||||
<span><span class="co"># [51] 18 30 23 27 24 30 26 29 30 19 19 17 24 30 23 29 23 18 19 29 23 28 21 28 19</span></span>
|
||||
<span><span class="co"># [76] 27 26 22 26 18 20 22 20 23 23 28 18 26 19 24 22 17 19 26 20 19 24 18 28 21</span></span></code></pre></div>
|
||||
<div class="sourceCode" id="cb43"><pre class="downlit sourceCode r">
|
||||
<code class="sourceCode R"><span><span class="co"># base R:</span></span>
|
||||
<span><span class="fu"><a href="../reference/plot.html">plot</a></span><span class="op">(</span><span class="va">disk_values</span>, mo <span class="op">=</span> <span class="st">"E. coli"</span>, ab <span class="op">=</span> <span class="st">"cipro"</span><span class="op">)</span></span></code></pre></div>
|
||||
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
@ -38,7 +38,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -38,7 +38,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -314,18 +314,18 @@ Unique: 2</p>
|
||||
<div class="sourceCode" id="cb8"><pre class="downlit sourceCode r">
|
||||
<code class="sourceCode R"><span><span class="fu"><a href="https://rdrr.io/r/utils/head.html" class="external-link">head</a></span><span class="op">(</span><span class="va">my_TB_data</span><span class="op">)</span></span>
|
||||
<span><span class="co"># rifampicin isoniazid gatifloxacin ethambutol pyrazinamide moxifloxacin</span></span>
|
||||
<span><span class="co"># 1 I S S S S S</span></span>
|
||||
<span><span class="co"># 2 I S S I S I</span></span>
|
||||
<span><span class="co"># 3 R R S S S S</span></span>
|
||||
<span><span class="co"># 4 S S S R R R</span></span>
|
||||
<span><span class="co"># 5 R R R R R S</span></span>
|
||||
<span><span class="co"># 6 I R I R I R</span></span>
|
||||
<span><span class="co"># 1 S R I I S I</span></span>
|
||||
<span><span class="co"># 2 S S S S I S</span></span>
|
||||
<span><span class="co"># 3 S I R I R S</span></span>
|
||||
<span><span class="co"># 4 I I I S R S</span></span>
|
||||
<span><span class="co"># 5 S I S S I R</span></span>
|
||||
<span><span class="co"># 6 S I R I R I</span></span>
|
||||
<span><span class="co"># kanamycin</span></span>
|
||||
<span><span class="co"># 1 R</span></span>
|
||||
<span><span class="co"># 2 R</span></span>
|
||||
<span><span class="co"># 2 I</span></span>
|
||||
<span><span class="co"># 3 R</span></span>
|
||||
<span><span class="co"># 4 S</span></span>
|
||||
<span><span class="co"># 5 I</span></span>
|
||||
<span><span class="co"># 4 R</span></span>
|
||||
<span><span class="co"># 5 S</span></span>
|
||||
<span><span class="co"># 6 S</span></span></code></pre></div>
|
||||
<p>We can now add the interpretation of MDR-TB to our data set. You can use:</p>
|
||||
<div class="sourceCode" id="cb9"><pre class="downlit sourceCode r">
|
||||
@ -357,40 +357,40 @@ Unique: 5</p>
|
||||
<tr class="odd">
|
||||
<td align="left">1</td>
|
||||
<td align="left">Mono-resistant</td>
|
||||
<td align="right">3214</td>
|
||||
<td align="right">64.28%</td>
|
||||
<td align="right">3214</td>
|
||||
<td align="right">64.28%</td>
|
||||
<td align="right">3282</td>
|
||||
<td align="right">65.64%</td>
|
||||
<td align="right">3282</td>
|
||||
<td align="right">65.64%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">2</td>
|
||||
<td align="left">Negative</td>
|
||||
<td align="right">967</td>
|
||||
<td align="right">19.34%</td>
|
||||
<td align="right">4181</td>
|
||||
<td align="right">83.62%</td>
|
||||
<td align="right">959</td>
|
||||
<td align="right">19.18%</td>
|
||||
<td align="right">4241</td>
|
||||
<td align="right">84.82%</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">3</td>
|
||||
<td align="left">Multi-drug-resistant</td>
|
||||
<td align="right">480</td>
|
||||
<td align="right">9.60%</td>
|
||||
<td align="right">4661</td>
|
||||
<td align="right">93.22%</td>
|
||||
<td align="right">437</td>
|
||||
<td align="right">8.74%</td>
|
||||
<td align="right">4678</td>
|
||||
<td align="right">93.56%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">4</td>
|
||||
<td align="left">Poly-resistant</td>
|
||||
<td align="right">224</td>
|
||||
<td align="right">4.48%</td>
|
||||
<td align="right">4885</td>
|
||||
<td align="right">97.70%</td>
|
||||
<td align="right">4902</td>
|
||||
<td align="right">98.04%</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">5</td>
|
||||
<td align="left">Extensively drug-resistant</td>
|
||||
<td align="right">115</td>
|
||||
<td align="right">2.30%</td>
|
||||
<td align="right">98</td>
|
||||
<td align="right">1.96%</td>
|
||||
<td align="right">5000</td>
|
||||
<td align="right">100.00%</td>
|
||||
</tr>
|
||||
|
@ -38,7 +38,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -38,7 +38,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -38,7 +38,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -38,7 +38,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -177,7 +177,7 @@
|
||||
</h2>
|
||||
<p>A data set with 48,787 rows and 22 columns, containing the following column names:<br><em>mo</em>, <em>fullname</em>, <em>status</em>, <em>kingdom</em>, <em>phylum</em>, <em>class</em>, <em>order</em>, <em>family</em>, <em>genus</em>, <em>species</em>, <em>subspecies</em>, <em>rank</em>, <em>ref</em>, <em>source</em>, <em>lpsn</em>, <em>lpsn_parent</em>, <em>lpsn_renamed_to</em>, <em>gbif</em>, <em>gbif_parent</em>, <em>gbif_renamed_to</em>, <em>prevalence</em> and <em>snomed</em>.</p>
|
||||
<p>This data set is in R available as <code>microorganisms</code>, after you load the <code>AMR</code> package.</p>
|
||||
<p>It was last updated on 10 October 2022 18:22:37 UTC. Find more info about the structure of this data set <a href="https://msberends.github.io/AMR/reference/microorganisms.html">here</a>.</p>
|
||||
<p>It was last updated on 10 October 2022 19:04:49 UTC. Find more info about the structure of this data set <a href="https://msberends.github.io/AMR/reference/microorganisms.html">here</a>.</p>
|
||||
<p><strong>Direct download links:</strong></p>
|
||||
<ul>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/microorganisms.rds" class="external-link">original R Data Structure (RDS) file</a> (1.1 MB)<br>
|
||||
@ -449,7 +449,7 @@
|
||||
</h2>
|
||||
<p>A data set with 464 rows and 14 columns, containing the following column names:<br><em>ab</em>, <em>cid</em>, <em>name</em>, <em>group</em>, <em>atc</em>, <em>atc_group1</em>, <em>atc_group2</em>, <em>abbreviations</em>, <em>synonyms</em>, <em>oral_ddd</em>, <em>oral_units</em>, <em>iv_ddd</em>, <em>iv_units</em> and <em>loinc</em>.</p>
|
||||
<p>This data set is in R available as <code>antibiotics</code>, after you load the <code>AMR</code> package.</p>
|
||||
<p>It was last updated on 10 October 2022 18:22:37 UTC. Find more info about the structure of this data set <a href="https://msberends.github.io/AMR/reference/antibiotics.html">here</a>.</p>
|
||||
<p>It was last updated on 10 October 2022 19:04:49 UTC. Find more info about the structure of this data set <a href="https://msberends.github.io/AMR/reference/antibiotics.html">here</a>.</p>
|
||||
<p><strong>Direct download links:</strong></p>
|
||||
<ul>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/antibiotics.rds" class="external-link">original R Data Structure (RDS) file</a> (36 kB)<br>
|
||||
@ -622,7 +622,7 @@
|
||||
</h2>
|
||||
<p>A data set with 102 rows and 9 columns, containing the following column names:<br><em>atc</em>, <em>cid</em>, <em>name</em>, <em>atc_group</em>, <em>synonyms</em>, <em>oral_ddd</em>, <em>oral_units</em>, <em>iv_ddd</em> and <em>iv_units</em>.</p>
|
||||
<p>This data set is in R available as <code>antivirals</code>, after you load the <code>AMR</code> package.</p>
|
||||
<p>It was last updated on 10 October 2022 18:22:37 UTC. Find more info about the structure of this data set <a href="https://msberends.github.io/AMR/reference/antibiotics.html">here</a>.</p>
|
||||
<p>It was last updated on 10 October 2022 19:04:49 UTC. Find more info about the structure of this data set <a href="https://msberends.github.io/AMR/reference/antibiotics.html">here</a>.</p>
|
||||
<p><strong>Direct download links:</strong></p>
|
||||
<ul>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/antivirals.rds" class="external-link">original R Data Structure (RDS) file</a> (4 kB)<br>
|
||||
@ -754,7 +754,7 @@
|
||||
</h2>
|
||||
<p>A data set with 20,369 rows and 11 columns, containing the following column names:<br><em>guideline</em>, <em>method</em>, <em>site</em>, <em>mo</em>, <em>rank_index</em>, <em>ab</em>, <em>ref_tbl</em>, <em>disk_dose</em>, <em>breakpoint_S</em>, <em>breakpoint_R</em> and <em>uti</em>.</p>
|
||||
<p>This data set is in R available as <code>rsi_translation</code>, after you load the <code>AMR</code> package.</p>
|
||||
<p>It was last updated on 10 October 2022 18:22:37 UTC. Find more info about the structure of this data set <a href="https://msberends.github.io/AMR/reference/rsi_translation.html">here</a>.</p>
|
||||
<p>It was last updated on 10 October 2022 19:04:49 UTC. Find more info about the structure of this data set <a href="https://msberends.github.io/AMR/reference/rsi_translation.html">here</a>.</p>
|
||||
<p><strong>Direct download links:</strong></p>
|
||||
<ul>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/rsi_translation.rds" class="external-link">original R Data Structure (RDS) file</a> (49 kB)<br>
|
||||
@ -913,7 +913,7 @@
|
||||
</h2>
|
||||
<p>A data set with 134,659 rows and 2 columns, containing the following column names:<br><em>mo</em> and <em>ab</em>.</p>
|
||||
<p>This data set is in R available as <code>intrinsic_resistant</code>, after you load the <code>AMR</code> package.</p>
|
||||
<p>It was last updated on 10 October 2022 18:22:37 UTC. Find more info about the structure of this data set <a href="https://msberends.github.io/AMR/reference/intrinsic_resistant.html">here</a>.</p>
|
||||
<p>It was last updated on 10 October 2022 19:04:49 UTC. Find more info about the structure of this data set <a href="https://msberends.github.io/AMR/reference/intrinsic_resistant.html">here</a>.</p>
|
||||
<p><strong>Direct download links:</strong></p>
|
||||
<ul>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/intrinsic_resistant.rds" class="external-link">original R Data Structure (RDS) file</a> (78 kB)<br>
|
||||
@ -1185,7 +1185,7 @@
|
||||
</h2>
|
||||
<p>A data set with 169 rows and 9 columns, containing the following column names:<br><em>ab</em>, <em>name</em>, <em>type</em>, <em>dose</em>, <em>dose_times</em>, <em>administration</em>, <em>notes</em>, <em>original_txt</em> and <em>eucast_version</em>.</p>
|
||||
<p>This data set is in R available as <code>dosage</code>, after you load the <code>AMR</code> package.</p>
|
||||
<p>It was last updated on 10 October 2022 18:22:37 UTC. Find more info about the structure of this data set <a href="https://msberends.github.io/AMR/reference/dosage.html">here</a>.</p>
|
||||
<p>It was last updated on 10 October 2022 19:04:49 UTC. Find more info about the structure of this data set <a href="https://msberends.github.io/AMR/reference/dosage.html">here</a>.</p>
|
||||
<p><strong>Direct download links:</strong></p>
|
||||
<ul>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/dosage.rds" class="external-link">original R Data Structure (RDS) file</a> (3 kB)<br>
|
||||
@ -1302,7 +1302,7 @@
|
||||
</h2>
|
||||
<p>A data set with 2,000 rows and 46 columns, containing the following column names:<br><em>date</em>, <em>patient</em>, <em>age</em>, <em>gender</em>, <em>ward</em>, <em>mo</em>, <em>PEN</em>, <em>OXA</em>, <em>FLC</em>, <em>AMX</em>, <em>AMC</em>, <em>AMP</em>, <em>TZP</em>, <em>CZO</em>, <em>FEP</em>, <em>CXM</em>, <em>FOX</em>, <em>CTX</em>, <em>CAZ</em>, <em>CRO</em>, <em>GEN</em>, <em>TOB</em>, <em>AMK</em>, <em>KAN</em>, <em>TMP</em>, <em>SXT</em>, <em>NIT</em>, <em>FOS</em>, <em>LNZ</em>, <em>CIP</em>, <em>MFX</em>, <em>VAN</em>, <em>TEC</em>, <em>TCY</em>, <em>TGC</em>, <em>DOX</em>, <em>ERY</em>, <em>CLI</em>, <em>AZM</em>, <em>IPM</em>, <em>MEM</em>, <em>MTR</em>, <em>CHL</em>, <em>COL</em>, <em>MUP</em> and <em>RIF</em>.</p>
|
||||
<p>This data set is in R available as <code>example_isolates</code>, after you load the <code>AMR</code> package.</p>
|
||||
<p>It was last updated on 10 October 2022 18:22:37 UTC. Find more info about the structure of this data set <a href="https://msberends.github.io/AMR/reference/example_isolates.html">here</a>.</p>
|
||||
<p>It was last updated on 10 October 2022 19:04:49 UTC. Find more info about the structure of this data set <a href="https://msberends.github.io/AMR/reference/example_isolates.html">here</a>.</p>
|
||||
<div class="section level3">
|
||||
<h3 id="source-6">Source<a class="anchor" aria-label="anchor" href="#source-6"></a>
|
||||
</h3>
|
||||
@ -1707,7 +1707,7 @@
|
||||
</h2>
|
||||
<p>A data set with 3,000 rows and 8 columns, containing the following column names:<br><em>patient_id</em>, <em>hospital</em>, <em>date</em>, <em>bacteria</em>, <em>AMX</em>, <em>AMC</em>, <em>CIP</em> and <em>GEN</em>.</p>
|
||||
<p>This data set is in R available as <code>example_isolates_unclean</code>, after you load the <code>AMR</code> package.</p>
|
||||
<p>It was last updated on 10 October 2022 18:22:37 UTC. Find more info about the structure of this data set <a href="https://msberends.github.io/AMR/reference/example_isolates_unclean.html">here</a>.</p>
|
||||
<p>It was last updated on 10 October 2022 19:04:49 UTC. Find more info about the structure of this data set <a href="https://msberends.github.io/AMR/reference/example_isolates_unclean.html">here</a>.</p>
|
||||
<div class="section level3">
|
||||
<h3 id="source-7">Source<a class="anchor" aria-label="anchor" href="#source-7"></a>
|
||||
</h3>
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -38,7 +38,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -38,7 +38,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -42,7 +42,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -127,10 +127,10 @@
|
||||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
<h2 class="pkg-version" data-toc-text="1.8.2.9011" id="amr-1829011">AMR 1.8.2.9011<a class="anchor" aria-label="anchor" href="#amr-1829011"></a></h2>
|
||||
<h2 class="pkg-version" data-toc-text="1.8.2.9012" id="amr-1829012">AMR 1.8.2.9012<a class="anchor" aria-label="anchor" href="#amr-1829012"></a></h2>
|
||||
<p>This version will eventually become v2.0! We’re happy to reach a new major milestone soon!</p>
|
||||
<div class="section level4">
|
||||
<h4 id="breaking-1-8-2-9011">Breaking<a class="anchor" aria-label="anchor" href="#breaking-1-8-2-9011"></a></h4>
|
||||
<h4 id="breaking-1-8-2-9012">Breaking<a class="anchor" aria-label="anchor" href="#breaking-1-8-2-9012"></a></h4>
|
||||
<ul><li>Removed all species of the taxonomic kingdom Chromista from the package. This was done for multiple reasons:<ul><li>CRAN allows packages to be around 5 MB maximum, some packages are exempted but this package is not one of them</li>
|
||||
<li>Chromista are not relevant when it comes to antimicrobial resistance, thus lacking the primary scope of this package</li>
|
||||
<li>Chromista are almost never clinically relevant, thus lacking the secondary scope of this package</li>
|
||||
@ -140,7 +140,7 @@
|
||||
<li>The <code><a href="../reference/mo_matching_score.html">mo_matching_score()</a></code> now count deletions and substitutions as 2 instead of 1, which impacts the outcome of <code><a href="../reference/as.mo.html">as.mo()</a></code> and any <code>mo_*()</code> function</li>
|
||||
</ul></div>
|
||||
<div class="section level4">
|
||||
<h4 id="new-1-8-2-9011">New<a class="anchor" aria-label="anchor" href="#new-1-8-2-9011"></a></h4>
|
||||
<h4 id="new-1-8-2-9012">New<a class="anchor" aria-label="anchor" href="#new-1-8-2-9012"></a></h4>
|
||||
<ul><li>EUCAST 2022 and CLSI 2022 guidelines have been added for <code><a href="../reference/as.rsi.html">as.rsi()</a></code>. EUCAST 2022 is now the new default guideline for all MIC and disks diffusion interpretations.</li>
|
||||
<li>All new algorithm for <code><a href="../reference/as.mo.html">as.mo()</a></code> (and thus internally all <code>mo_*()</code> functions) while still following our original set-up as described in our paper (DOI 10.18637/jss.v104.i03).<ul><li>A new argument <code>keep_synonyms</code> allows to <em>not</em> correct for updated taxonomy, in favour of the now deleted argument <code>allow_uncertain</code>
|
||||
</li>
|
||||
@ -157,7 +157,7 @@
|
||||
<li>Our data sets are now also continually exported to Apache Feather and Apache Parquet formats. You can find more info <a href="https://msberends.github.io/AMR/articles/datasets.html">in this article on our website</a>.</li>
|
||||
</ul></div>
|
||||
<div class="section level4">
|
||||
<h4 id="changed-1-8-2-9011">Changed<a class="anchor" aria-label="anchor" href="#changed-1-8-2-9011"></a></h4>
|
||||
<h4 id="changed-1-8-2-9012">Changed<a class="anchor" aria-label="anchor" href="#changed-1-8-2-9012"></a></h4>
|
||||
<ul><li>Fix for using <code><a href="../reference/as.rsi.html">as.rsi()</a></code> on certain EUCAST breakpoints for MIC values</li>
|
||||
<li>Fix for using <code><a href="../reference/as.rsi.html">as.rsi()</a></code> on <code>NA</code> values (e.g. <code>as.rsi(as.disk(NA), ...)</code>)</li>
|
||||
<li>Removed <code><a href="https://rdrr.io/r/base/integer.html" class="external-link">as.integer()</a></code> for MIC values, since MIC are not integer values and running <code><a href="https://rdrr.io/r/base/table.html" class="external-link">table()</a></code> on MIC values consequently failed for not being able to retrieve the level position (as that’s how normally <code><a href="https://rdrr.io/r/base/integer.html" class="external-link">as.integer()</a></code> on <code>factor</code>s work)</li>
|
||||
@ -183,7 +183,7 @@
|
||||
<li>Fix for using <code><a href="../reference/as.ab.html">as.ab()</a></code> on <code>NA</code> values</li>
|
||||
</ul></div>
|
||||
<div class="section level4">
|
||||
<h4 id="other-1-8-2-9011">Other<a class="anchor" aria-label="anchor" href="#other-1-8-2-9011"></a></h4>
|
||||
<h4 id="other-1-8-2-9012">Other<a class="anchor" aria-label="anchor" href="#other-1-8-2-9012"></a></h4>
|
||||
<ul><li>New website to make use of the new Bootstrap 5 and pkgdown 2.0. The website now contains results for all examples and will be automatically regenerated with every change to our repository, using GitHub Actions</li>
|
||||
<li>Added Peter Dutey-Magni, Dmytro Mykhailenko and Anton Mymrikov as contributors, to thank them for their valuable input</li>
|
||||
<li>All R and Rmd files in this project are now styled using the <code>styler</code> package</li>
|
||||
|
@ -11,7 +11,7 @@ articles:
|
||||
datasets: datasets.html
|
||||
resistance_predict: resistance_predict.html
|
||||
welcome_to_AMR: welcome_to_AMR.html
|
||||
last_built: 2022-10-10T18:24Z
|
||||
last_built: 2022-10-10T19:07Z
|
||||
urls:
|
||||
reference: https://msberends.github.io/AMR/reference
|
||||
article: https://msberends.github.io/AMR/articles
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -62,7 +62,7 @@ Principal component analysis for AMR
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.3 KiB |
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -146,8 +146,12 @@
|
||||
</dl></div>
|
||||
<div class="section level2">
|
||||
<h2 id="details">Details<a class="anchor" aria-label="anchor" href="#details"></a></h2>
|
||||
<p>Due to how <span style="R">R</span> works, the <code>add_custom_antimicrobials()</code> function has to be run in every <span style="R">R</span> session - added antimicrobials are not stored between sessions and are thus lost when <span style="R">R</span> is exited. It is possible to save the antimicrobial additions to your <code>.Rprofile</code> file to circumvent this, for example:</p>
|
||||
<p></p><div class="sourceCode r"><pre><code><span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va"><a href="https://msberends.github.io/AMR/">AMR</a></span><span class="op">)</span></span>
|
||||
<p>Due to how <span style="R">R</span> works, the <code>add_custom_antimicrobials()</code> function has to be run in every <span style="R">R</span> session - added antimicrobials are not stored between sessions and are thus lost when <span style="R">R</span> is exited. It is possible to save the antimicrobial additions to your <code>.Rprofile</code> file to circumvent this, although this requires to load the <code>AMR</code> package at every start-up:</p>
|
||||
<p></p><div class="sourceCode r"><pre><code><span><span class="co"># Open .Rprofile file</span></span>
|
||||
<span><span class="fu">utils</span><span class="fu">::</span><span class="fu"><a href="https://rdrr.io/r/utils/file.edit.html" class="external-link">file.edit</a></span><span class="op">(</span><span class="st">"~/.Rprofile"</span><span class="op">)</span></span>
|
||||
<span></span>
|
||||
<span><span class="co"># Add custom antibiotic codes:</span></span>
|
||||
<span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va"><a href="https://msberends.github.io/AMR/">AMR</a></span><span class="op">)</span></span>
|
||||
<span><span class="fu"><a href="../reference/add_custom_antimicrobials.html">add_custom_antimicrobials</a></span><span class="op">(</span></span>
|
||||
<span> <span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span>ab <span class="op">=</span> <span class="st">"TEST"</span>,</span>
|
||||
<span> name <span class="op">=</span> <span class="st">"Test Antibiotic"</span>,</span>
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -190,16 +190,16 @@
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="va">df</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> birth_date age age_exact age_at_y2k</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 1999-05-19 23 23.39452 0</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 1950-08-05 72 72.18082 49</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 1979-11-26 42 42.87123 20</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 1991-10-28 30 30.95068 8</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 1938-03-15 84 84.57260 61</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 1986-05-15 36 36.40548 13</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 1986-02-23 36 36.62740 13</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 1965-11-25 56 56.87397 34</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 1949-10-01 73 73.02466 50</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 1959-07-24 63 63.21370 40</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 1940-11-04 81 81.93151 59</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 1998-12-24 23 23.79452 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 1957-06-01 65 65.35890 42</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 1958-06-07 64 64.34247 41</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 1947-01-04 75 75.76438 52</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 1950-05-03 72 72.43836 49</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 1990-10-14 31 31.98904 9</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 1986-06-20 36 36.30685 13</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 1965-05-15 57 57.40548 34</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 1946-06-25 76 76.29315 53</span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -484,16 +484,16 @@ A microorganism is categorised as <em>Susceptible, Increased exposure</em> when
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 50 × 13</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> datetime index ab_input ab_consid…¹ mo_in…² mo_conside…³ guide…⁴</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><dttm></span> <span style="color: #949494; font-style: italic;"><int></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><ab></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><mo></span> <span style="color: #949494; font-style: italic;"><chr></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 2022-10-10 <span style="color: #949494;">18:24:54</span> 1 ampicillin AMP Strep … B_STRPT_PNMN EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 2022-10-10 <span style="color: #949494;">18:24:54</span> 1 AMP AMP Escher… B_ESCHR_COLI EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 2022-10-10 <span style="color: #949494;">18:24:54</span> 1 CIP CIP Escher… B_ESCHR_COLI EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 2022-10-10 <span style="color: #949494;">18:24:54</span> 1 GEN GEN Escher… B_ESCHR_COLI EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 2022-10-10 <span style="color: #949494;">18:24:55</span> 1 TOB TOB Escher… B_ESCHR_COLI EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 2022-10-10 <span style="color: #949494;">18:24:55</span> 1 AMX AMX B_STRP… B_STRPT_PNMN EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 2022-10-10 <span style="color: #949494;">18:24:55</span> 1 AMX AMX B_STRP… B_STRPT_PNMN EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 2022-10-10 <span style="color: #949494;">18:24:55</span> 2 AMX AMX B_STRP… B_STRPT_PNMN EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 2022-10-10 <span style="color: #949494;">18:24:55</span> 3 AMX AMX B_STRP… B_STRPT_PNMN EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 2022-10-10 <span style="color: #949494;">18:24:55</span> 4 AMX AMX B_STRP… B_STRPT_PNMN EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 2022-10-10 <span style="color: #949494;">19:08:01</span> 1 ampicillin AMP Strep … B_STRPT_PNMN EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 2022-10-10 <span style="color: #949494;">19:08:01</span> 1 AMP AMP Escher… B_ESCHR_COLI EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 2022-10-10 <span style="color: #949494;">19:08:02</span> 1 CIP CIP Escher… B_ESCHR_COLI EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 2022-10-10 <span style="color: #949494;">19:08:02</span> 1 GEN GEN Escher… B_ESCHR_COLI EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 2022-10-10 <span style="color: #949494;">19:08:02</span> 1 TOB TOB Escher… B_ESCHR_COLI EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 2022-10-10 <span style="color: #949494;">19:08:03</span> 1 AMX AMX B_STRP… B_STRPT_PNMN EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 2022-10-10 <span style="color: #949494;">19:08:03</span> 1 AMX AMX B_STRP… B_STRPT_PNMN EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 2022-10-10 <span style="color: #949494;">19:08:03</span> 2 AMX AMX B_STRP… B_STRPT_PNMN EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 2022-10-10 <span style="color: #949494;">19:08:03</span> 3 AMX AMX B_STRP… B_STRPT_PNMN EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 2022-10-10 <span style="color: #949494;">19:08:03</span> 4 AMX AMX B_STRP… B_STRPT_PNMN EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># … with 40 more rows, 6 more variables: ref_table <chr>, method <chr>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># breakpoint_S <dbl>, breakpoint_R <dbl>, input <dbl>, interpretation <rsi>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># and abbreviated variable names ¹ab_considered, ²mo_input, ³mo_considered,</span></span>
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -12,7 +12,7 @@ count_resistant() should be used to count resistant isolates, count_susceptible(
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -12,7 +12,7 @@ To improve the interpretation of the antibiogram before EUCAST rules are applied
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -177,40 +177,42 @@
|
||||
<span class="r-in"><span><span class="va">df</span> <span class="op"><-</span> <span class="va">example_isolates</span><span class="op">[</span><span class="fu"><a href="https://rdrr.io/r/base/sample.html" class="external-link">sample</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/seq.html" class="external-link">seq_len</a></span><span class="op">(</span><span class="fl">2000</span><span class="op">)</span>, size <span class="op">=</span> <span class="fl">200</span><span class="op">)</span>, <span class="op">]</span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">get_episode</span><span class="op">(</span><span class="va">df</span><span class="op">$</span><span class="va">date</span>, episode_days <span class="op">=</span> <span class="fl">60</span><span class="op">)</span> <span class="co"># indices</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 63 26 20 5 31 26 3 19 11 9 24 53 40 62 43 19 12 22 12 52 62 27 5 40 23</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [26] 22 39 56 13 5 58 32 59 38 23 57 51 17 15 24 35 34 37 11 4 64 62 45 32 20</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [51] 41 50 60 54 61 15 43 63 16 1 39 23 20 14 55 33 20 53 42 37 64 42 46 32 35</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [76] 49 59 13 50 62 32 19 3 31 27 31 1 18 44 12 39 51 1 7 24 61 13 31 21 8</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [101] 1 4 18 10 31 39 13 33 39 9 10 45 7 58 56 20 32 37 62 61 9 43 52 38 10</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [126] 57 62 23 29 38 25 54 40 63 46 52 33 45 29 58 37 48 28 48 12 50 29 59 23 18</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [151] 44 22 2 57 36 61 59 49 32 24 34 12 9 4 46 23 20 61 22 13 29 24 19 20 32</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [176] 28 29 24 5 30 21 6 52 39 21 25 7 16 45 1 44 36 1 64 23 47 10 55 2 55</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 37 39 3 44 61 24 46 32 31 21 56 51 54 56 47 15 39 16 60 51 40 43 57 26 34</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [26] 51 62 31 14 57 8 65 48 61 13 10 9 42 2 45 64 11 31 1 59 15 56 4 14 59</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [51] 3 55 41 48 32 6 19 33 3 46 21 38 43 46 33 38 32 37 10 63 44 51 59 6 14</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [76] 8 22 1 27 1 37 44 11 9 52 17 26 10 7 65 27 28 59 51 43 62 33 61 50 62</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [101] 34 27 46 12 46 35 60 34 20 39 5 2 25 2 35 39 46 52 55 2 30 11 16 43 9</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [126] 32 10 44 18 34 23 57 21 47 19 16 44 26 21 13 8 27 41 17 16 28 13 9 34 3</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [151] 12 19 53 16 14 22 22 42 16 41 49 50 63 62 29 29 62 58 6 18 55 6 61 11 22</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [176] 16 30 12 12 34 39 11 9 8 62 55 39 58 38 60 36 1 26 7 34 57 13 12 47 5</span>
|
||||
<span class="r-in"><span><span class="fu">is_new_episode</span><span class="op">(</span><span class="va">df</span><span class="op">$</span><span class="va">date</span>, episode_days <span class="op">=</span> <span class="fl">60</span><span class="op">)</span> <span class="co"># TRUE/FALSE</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] FALSE TRUE FALSE FALSE FALSE FALSE TRUE FALSE TRUE TRUE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] FALSE FALSE TRUE TRUE FALSE FALSE FALSE TRUE FALSE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] FALSE FALSE FALSE TRUE FALSE TRUE TRUE TRUE FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [37] TRUE TRUE TRUE FALSE TRUE FALSE FALSE FALSE TRUE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [49] FALSE FALSE TRUE FALSE TRUE FALSE TRUE FALSE FALSE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [61] FALSE FALSE FALSE TRUE FALSE TRUE TRUE TRUE FALSE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [73] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [85] TRUE FALSE TRUE FALSE FALSE TRUE TRUE FALSE FALSE TRUE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [97] FALSE TRUE TRUE TRUE FALSE FALSE FALSE TRUE FALSE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [109] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [121] FALSE FALSE FALSE TRUE FALSE FALSE TRUE FALSE FALSE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [133] FALSE TRUE TRUE FALSE FALSE FALSE TRUE FALSE TRUE FALSE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [145] FALSE TRUE FALSE FALSE FALSE TRUE FALSE FALSE FALSE TRUE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [157] TRUE TRUE FALSE TRUE TRUE FALSE FALSE FALSE FALSE TRUE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [169] TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [181] FALSE TRUE FALSE FALSE FALSE TRUE FALSE FALSE TRUE FALSE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [193] FALSE TRUE FALSE TRUE FALSE FALSE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] FALSE FALSE TRUE FALSE TRUE TRUE FALSE TRUE FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] TRUE TRUE FALSE TRUE FALSE FALSE TRUE FALSE TRUE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] FALSE FALSE FALSE TRUE FALSE FALSE TRUE FALSE TRUE FALSE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [37] FALSE FALSE FALSE TRUE TRUE FALSE FALSE FALSE FALSE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [49] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [61] TRUE FALSE TRUE FALSE FALSE TRUE FALSE TRUE FALSE TRUE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [73] FALSE FALSE TRUE FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [85] TRUE FALSE FALSE FALSE FALSE TRUE TRUE FALSE TRUE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [97] TRUE FALSE FALSE FALSE TRUE FALSE TRUE FALSE FALSE TRUE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [109] TRUE FALSE TRUE FALSE TRUE FALSE FALSE TRUE FALSE FALSE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [121] TRUE FALSE TRUE FALSE FALSE FALSE FALSE FALSE TRUE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [133] FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [145] FALSE TRUE FALSE TRUE FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [157] FALSE TRUE FALSE TRUE TRUE TRUE FALSE FALSE TRUE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [169] TRUE FALSE FALSE FALSE FALSE TRUE TRUE FALSE FALSE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [181] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [193] FALSE TRUE FALSE TRUE FALSE FALSE TRUE FALSE</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># filter on results from the third 60-day episode only, using base R</span></span></span>
|
||||
<span class="r-in"><span><span class="va">df</span><span class="op">[</span><span class="fu"><a href="https://rdrr.io/r/base/which.html" class="external-link">which</a></span><span class="op">(</span><span class="fu">get_episode</span><span class="op">(</span><span class="va">df</span><span class="op">$</span><span class="va">date</span>, <span class="fl">60</span><span class="op">)</span> <span class="op">==</span> <span class="fl">3</span><span class="op">)</span>, <span class="op">]</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 2 × 46</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> date patient age gender ward mo PEN OXA FLC AMX </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><date></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><mo></span> <span style="color: #949494; font-style: italic;"><rsi></span> <span style="color: #949494; font-style: italic;"><rsi></span> <span style="color: #949494; font-style: italic;"><rsi></span> <span style="color: #949494; font-style: italic;"><rsi></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> 2002-06-06 24D393 20 F Clinical B_ESCHR_COLI R NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> 2002-07-23 F35553 51 M ICU B_STPHY_AURS R NA S R </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 4 × 46</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> date patient age gender ward mo PEN OXA FLC AMX </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><date></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><mo></span> <span style="color: #949494; font-style: italic;"><rsi></span> <span style="color: #949494; font-style: italic;"><rsi></span> <span style="color: #949494; font-style: italic;"><rsi></span> <span style="color: #949494; font-style: italic;"><rsi></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> 2002-08-31 149442 80 F ICU B_STPHY_AURS R NA S R </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> 2002-09-23 F35553 51 M ICU B_STPHY_AURS S NA S NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> 2002-10-20 F35553 51 M ICU B_STPHY_AURS S NA S NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">4</span> 2002-10-18 E55128 57 F ICU B_STPHY_AURS R NA S R </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># … with 36 more variables: AMC <rsi>, AMP <rsi>, TZP <rsi>, CZO <rsi>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># FEP <rsi>, CXM <rsi>, FOX <rsi>, CTX <rsi>, CAZ <rsi>, CRO <rsi>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># GEN <rsi>, TOB <rsi>, AMK <rsi>, KAN <rsi>, TMP <rsi>, SXT <rsi>,</span></span>
|
||||
@ -246,16 +248,16 @@
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: condition [3]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> patient date condition new_episode</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><date></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><lgl></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 622358 2017-09-02 B FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 401043 2007-12-15 C FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> E19253 2006-08-22 A FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> E26415 2002-12-28 B FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 0DBB93 2009-05-08 C FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 9C1B92 2008-01-25 C FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 24D393 2002-06-06 C FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> F81262 2006-05-29 A FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 189363 2004-06-22 C FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 118928 2004-02-01 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> AD0350 2010-11-12 B FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 988763 2011-04-24 C FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 149442 2002-08-31 A FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 672020 2013-04-01 A FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> CD8C33 2017-02-25 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 965996 2007-12-03 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> E19748 2013-07-18 A FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> E24BF1 2009-10-03 A FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 144549 2009-09-01 C FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 262220 2007-02-23 C FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># … with 190 more rows</span></span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="va">df</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
@ -267,19 +269,19 @@
|
||||
<span class="r-in"><span> <span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 200 × 5</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: ward, patient [180]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> ward date patient new_index new_logical</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><date></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><lgl></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> ICU 2017-09-02 622358 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> Clinical 2007-12-15 401043 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> Clinical 2006-08-22 E19253 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> ICU 2002-12-28 E26415 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> ICU 2009-05-08 0DBB93 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> Clinical 2008-01-25 9C1B92 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> Clinical 2002-06-06 24D393 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> Clinical 2006-05-29 F81262 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> Clinical 2004-06-22 189363 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> Clinical 2004-02-01 118928 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: ward, patient [175]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> ward date patient new_index new_logical</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><date></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><lgl></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> Clinical 2010-11-12 AD0350 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> Clinical 2011-04-24 988763 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> ICU 2002-08-31 149442 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> Clinical 2013-04-01 672020 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> Clinical 2017-02-25 CD8C33 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> Clinical 2007-12-03 965996 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> Clinical 2013-07-18 E19748 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> Clinical 2009-10-03 E24BF1 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> Clinical 2009-09-01 144549 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> Outpatient 2007-02-23 262220 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># … with 190 more rows</span></span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="va">df</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
@ -294,9 +296,9 @@
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 3 × 5</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> ward n_patients n_episodes_365 n_episodes_60 n_episodes_30</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><int></span> <span style="color: #949494; font-style: italic;"><int></span> <span style="color: #949494; font-style: italic;"><int></span> <span style="color: #949494; font-style: italic;"><int></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> Clinical 115 14 55 75</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ICU 53 13 36 44</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> Outpatient 12 7 10 12</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> Clinical 114 15 55 75</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ICU 55 13 37 44</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> Outpatient 6 5 6 6</span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span> <span class="co"># grouping on patients and microorganisms leads to the same</span></span></span>
|
||||
@ -315,7 +317,7 @@
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://rdrr.io/r/base/identical.html" class="external-link">identical</a></span><span class="op">(</span><span class="va">x</span>, <span class="va">y</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Including isolates from ICU.</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] TRUE</span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span> <span class="co"># but is_new_episode() has a lot more flexibility than first_isolate(),</span></span></span>
|
||||
@ -326,19 +328,19 @@
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/select.html" class="external-link">select</a></span><span class="op">(</span><span class="fu"><a href="https://dplyr.tidyverse.org/reference/group_data.html" class="external-link">group_vars</a></span><span class="op">(</span><span class="va">.</span><span class="op">)</span>, <span class="va">flag_episode</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 200 × 4</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: patient, mo, ward [189]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> patient mo ward flag_episode</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><mo></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><lgl></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 622358 B_ESCHR_COLI ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 401043 B_ENTRC_FACM Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> E19253 B_STPHY_CONS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> E26415 B_STPHY_CONS ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 0DBB93 B_ESCHR_COLI ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 9C1B92 B_STPHY_CONS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 24D393 B_ESCHR_COLI Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> F81262 B_STRPT_PNMN Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 189363 B_STPHY_AURS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 118928 B_STPHY_AURS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: patient, mo, ward [179]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> patient mo ward flag_episode</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><mo></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><lgl></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> AD0350 B_ESCHR_COLI Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 988763 B_STPHY_AURS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 149442 B_STPHY_AURS ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 672020 B_STPHY_EPDR Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> CD8C33 B_STPHY_HMNS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 965996 B_STRPT_PNMN Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> E19748 B_ESCHR_COLI Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> E24BF1 B_STPHY_HMNS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 144549 B_ENTRBC_CLOC Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 262220 B_ESCHR_COLI Outpatient TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># … with 190 more rows</span></span>
|
||||
<span class="r-in"><span><span class="co"># }</span></span></span>
|
||||
</code></pre></div>
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -167,9 +167,9 @@
|
||||
<div class="section level2">
|
||||
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="fu">kurtosis</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/stats/Normal.html" class="external-link">rnorm</a></span><span class="op">(</span><span class="fl">10000</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 2.977264</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 3.043414</span>
|
||||
<span class="r-in"><span><span class="fu">kurtosis</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/stats/Normal.html" class="external-link">rnorm</a></span><span class="op">(</span><span class="fl">10000</span><span class="op">)</span>, excess <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.05527123</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.002110957</span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -195,10 +195,11 @@
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">x</span> <span class="op"><-</span> <span class="fu"><a href="random.html">random_mic</a></span><span class="op">(</span><span class="fl">10</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="va">x</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <mic></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 32 0.25 0.005 0.002 >=256 0.125 >=256 1 32 0.025</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.025 2 0.005 32 0.01 64 <=0.001 >=128 8 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [10] >=128 </span>
|
||||
<span class="r-in"><span><span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">x</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.80748877 -0.30231828 -1.19711705 -1.40670064 1.28312036 -0.46086214</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 1.28312036 0.01476945 0.80748877 -0.82898960</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.7904724 0.1587950 -1.1391209 0.7594139 -0.9889662 0.9095687</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -1.4877694 1.0597234 0.4591045 1.0597234</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="va">y</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span></span></span>
|
||||
<span class="r-in"><span> id <span class="op">=</span> <span class="va">LETTERS</span><span class="op">[</span><span class="fl">1</span><span class="op">:</span><span class="fl">10</span><span class="op">]</span>,</span></span>
|
||||
@ -208,38 +209,38 @@
|
||||
<span class="r-in"><span> tobr <span class="op">=</span> <span class="fu"><a href="random.html">random_mic</a></span><span class="op">(</span><span class="fl">10</span>, ab <span class="op">=</span> <span class="st">"tobr"</span>, mo <span class="op">=</span> <span class="st">"Escherichia coli"</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="va">y</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> id amox cipr gent tobr</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 A 16 0.25 1 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B 8 0.125 4 16</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C 2 >=2 1 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D 4 0.25 <=0.25 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E 16 0.025 4 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F 2 0.0625 1 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G 4 0.125 0.5 16</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H 1 0.5 2 16</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I 1 0.5 4 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J 8 0.5 <=0.25 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> id amox cipr gent tobr</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 A 8 1 0.5 8</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B 4 0.25 0.5 16</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C <=2 0.5 0.5 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D 4 1 4 <=1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E <=2 0.25 1 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F 16 0.5 4 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G 4 0.25 0.25 8</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H 16 1 2 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I 16 0.5 1 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J 4 <=0.0625 0.25 2</span>
|
||||
<span class="r-in"><span><span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">y</span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Calculating mean AMR distance based on columns "amox", "cipr", "gent",</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> "id" and "tobr"</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>NAs introduced by coercion</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.10394761 0.66349051 0.01965569 -0.28215761 0.23498276 -0.67838327</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.01166250 0.27821650 -0.10451638 -0.24689831</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.45989285 0.05711035 -0.37292235 0.12953221 -0.61206575 0.56287968</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -0.32111465 0.80202308 0.43288148 -1.13821691</span>
|
||||
<span class="r-in"><span><span class="va">y</span><span class="op">$</span><span class="va">amr_distance</span> <span class="op"><-</span> <span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">y</span>, <span class="fu">where</span><span class="op">(</span><span class="va">is.mic</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Calculating mean AMR distance based on columns "amox", "cipr", "gent" and</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> "tobr"</span>
|
||||
<span class="r-in"><span><span class="va">y</span><span class="op">[</span><span class="fu"><a href="https://rdrr.io/r/base/order.html" class="external-link">order</a></span><span class="op">(</span><span class="va">y</span><span class="op">$</span><span class="va">amr_distance</span><span class="op">)</span>, <span class="op">]</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> id amox cipr gent tobr amr_distance</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F 2 0.0625 1 1 -0.67838327</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D 4 0.25 <=0.25 4 -0.28215761</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J 8 0.5 <=0.25 1 -0.24689831</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I 1 0.5 4 1 -0.10451638</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G 4 0.125 0.5 16 0.01166250</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C 2 >=2 1 1 0.01965569</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 A 16 0.25 1 1 0.10394761</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E 16 0.025 4 4 0.23498276</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H 1 0.5 2 16 0.27821650</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B 8 0.125 4 16 0.66349051</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> id amox cipr gent tobr amr_distance</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J 4 <=0.0625 0.25 2 -1.13821691</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E <=2 0.25 1 2 -0.61206575</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C <=2 0.5 0.5 4 -0.37292235</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G 4 0.25 0.25 8 -0.32111465</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B 4 0.25 0.5 16 0.05711035</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D 4 1 4 <=1 0.12953221</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I 16 0.5 1 4 0.43288148</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 A 8 1 0.5 8 0.45989285</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F 16 0.5 4 2 0.56287968</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H 16 1 2 4 0.80202308</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="va">y</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
@ -251,17 +252,17 @@
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Calculating mean AMR distance based on columns "amox", "cipr", "gent" and</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> "tobr"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> id amox cipr gent tobr amr_distance check_id_C</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 C 2 >=2 1 1 0.01965569 0.000000000</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 G 4 0.125 0.5 16 0.01166250 0.007993193</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 A 16 0.25 1 1 0.10394761 0.084291915</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 I 1 0.5 4 1 -0.10451638 0.124172073</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E 16 0.025 4 4 0.23498276 0.215327070</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 H 1 0.5 2 16 0.27821650 0.258560809</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 J 8 0.5 <=0.25 1 -0.24689831 0.266554002</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 D 4 0.25 <=0.25 4 -0.28215761 0.301813300</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 B 8 0.125 4 16 0.66349051 0.643834823</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 F 2 0.0625 1 1 -0.67838327 0.698038966</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> id amox cipr gent tobr amr_distance check_id_C</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 C <=2 0.5 0.5 4 -0.37292235 0.0000000</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 G 4 0.25 0.25 8 -0.32111465 0.0518077</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 E <=2 0.25 1 2 -0.61206575 0.2391434</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 B 4 0.25 0.5 16 0.05711035 0.4300327</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 D 4 1 4 <=1 0.12953221 0.5024546</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 J 4 <=0.0625 0.25 2 -1.13821691 0.7652946</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 I 16 0.5 1 4 0.43288148 0.8058038</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 A 8 1 0.5 8 0.45989285 0.8328152</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 F 16 0.5 4 2 0.56287968 0.9358020</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 H 16 1 2 4 0.80202308 1.1749454</span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="co"># support for groups</span></span></span>
|
||||
<span class="r-in"><span> <span class="va">example_isolates</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -12,7 +12,7 @@ This is the fastest way to have your organisation (or analysis) specific codes p
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -12,7 +12,7 @@ resistance() should be used to calculate resistance, susceptibility() should be
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -178,42 +178,42 @@
|
||||
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="fu">random_mic</span><span class="op">(</span><span class="fl">25</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <mic></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 1 32 <=0.002 1 32 0.5 16 1 >=256 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [10] 128 32 32 4 >=256 0.005 0.0625 8 >=256 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [19] 0.125 2 64 <=0.002 64 0.5 0.005 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 32 0.0625 0.002 >=256 4 16 4 >=256 0.01 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [10] 8 8 4 0.0625 8 0.25 0.002 0.002 0.25 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [19] 0.0625 >=256 <=0.001 0.025 8 0.002 128 </span>
|
||||
<span class="r-in"><span><span class="fu">random_disk</span><span class="op">(</span><span class="fl">25</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <disk></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 31 42 37 30 8 32 50 16 33 20 11 50 20 43 17 20 21 47 15 48 25 41 18 9 43</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 40 43 40 50 12 30 46 29 23 39 31 20 33 50 33 41 13 47 40 40 10 29 50 41 47</span>
|
||||
<span class="r-in"><span><span class="fu">random_rsi</span><span class="op">(</span><span class="fl">25</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <rsi></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] I I R S R S S I R I R S R I S S I I S I R R S I I</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] S R R I R R R S R S S S I I I I S S R R I S S S R</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># \donttest{</span></span></span>
|
||||
<span class="r-in"><span><span class="co"># make the random generation more realistic by setting a bug and/or drug:</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">random_mic</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span> <span class="co"># range 0.0625-64</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <mic></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.002 0.0625 4 0.025 4 0.01 128 0.01 0.25 >=256 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [11] 8 0.5 0.002 4 0.005 0.5 16 0.0625 0.25 0.5 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] >=256 0.025 >=256 0.125 0.125 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 8 8 0.001 1 64 0.005 128 64 0.025 0.002 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [11] 128 0.25 0.025 16 0.025 32 32 2 0.0625 >=256 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] 0.001 0.005 0.005 16 8 </span>
|
||||
<span class="r-in"><span><span class="fu">random_mic</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Klebsiella pneumoniae"</span>, <span class="st">"meropenem"</span><span class="op">)</span> <span class="co"># range 0.0625-16</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <mic></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 8 <=1 2 >=16 4 4 8 <=1 <=1 4 2 4 4 <=1 2 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [16] >=16 <=1 >=16 8 <=1 2 <=1 4 4 4 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] >=16 4 2 2 8 1 1 0.5 4 2 0.5 1 1 >=16 2 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [16] >=16 8 0.5 8 2 4 4 8 2 >=16</span>
|
||||
<span class="r-in"><span><span class="fu">random_mic</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Streptococcus pneumoniae"</span>, <span class="st">"meropenem"</span><span class="op">)</span> <span class="co"># range 0.0625-4</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <mic></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.125 0.125 0.5 0.125 1 0.125 0.5 2 8 8 1 8 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] 4 2 0.125 0.25 1 4 0.5 0.5 8 0.25 0.25 0.125</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] 0.25 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 4 0.0625 1 1 4 1 0.25 0.0625 0.5 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [10] 2 0.5 1 <=0.025 4 0.5 0.0625 0.0625 0.25 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [19] >=8 0.25 0.25 0.25 0.25 0.0625 1 </span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">random_disk</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span> <span class="co"># range 8-50</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <disk></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 44 35 15 34 22 8 39 24 20 46 37 46 19 49 28 29 48 50 15 35 26 8 50 33 30</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 35 47 16 42 50 35 8 11 43 46 31 23 14 35 40 46 10 28 12 47 25 42 23 22 8</span>
|
||||
<span class="r-in"><span><span class="fu">random_disk</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Klebsiella pneumoniae"</span>, <span class="st">"ampicillin"</span><span class="op">)</span> <span class="co"># range 11-17</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <disk></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 14 14 15 13 11 17 15 12 14 16 14 15 15 12 14 14 11 15 12 14 17 14 11 12 16</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 14 11 14 13 17 16 14 16 14 11 14 15 17 16 13 14 12 11 13 16 15 13 11 13 17</span>
|
||||
<span class="r-in"><span><span class="fu">random_disk</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Streptococcus pneumoniae"</span>, <span class="st">"ampicillin"</span><span class="op">)</span> <span class="co"># range 12-27</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class <disk></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 15 25 23 22 24 22 16 20 22 17 24 22 27 18 19 27 20 24 15 25 24 24 20 25 23</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 15 27 24 16 20 23 20 24 18 23 26 25 22 17 25 19 19 25 18 24 21 27 22 22 23</span>
|
||||
<span class="r-in"><span><span class="co"># }</span></span></span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -12,7 +12,7 @@ When negative ('left-skewed'): the left tail is longer; the mass of the distribu
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -166,7 +166,7 @@ When negative ('left-skewed'): the left tail is longer; the mass of the distribu
|
||||
<div class="section level2">
|
||||
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="fu">skewness</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/stats/Uniform.html" class="external-link">runif</a></span><span class="op">(</span><span class="fl">1000</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.02114501</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.03720904</span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9011</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9012</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|