Built site for AMR: 1.8.2.9085@cf16bc7
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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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">
|
||||
@ -380,12 +380,12 @@ data set:</p>
|
||||
<col width="13%">
|
||||
<col width="13%">
|
||||
<col width="13%">
|
||||
<col width="26%">
|
||||
<col width="28%">
|
||||
<col width="5%">
|
||||
<col width="5%">
|
||||
<col width="5%">
|
||||
<col width="5%">
|
||||
<col width="9%">
|
||||
<col width="8%">
|
||||
</colgroup>
|
||||
<thead><tr class="header">
|
||||
<th align="center">date</th>
|
||||
@ -400,67 +400,67 @@ data set:</p>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="center">2010-02-03</td>
|
||||
<td align="center">J4</td>
|
||||
<td align="center">2014-06-05</td>
|
||||
<td align="center">E8</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="even">
|
||||
<td align="center">2011-05-02</td>
|
||||
<td align="center">Z10</td>
|
||||
<td align="center">Hospital D</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">F</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">2016-05-03</td>
|
||||
<td align="center">N2</td>
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">Staphylococcus aureus</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">M</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2016-03-05</td>
|
||||
<td align="center">C5</td>
|
||||
<td align="center">2014-11-19</td>
|
||||
<td align="center">K4</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">Staphylococcus aureus</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">Escherichia 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">M</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">2010-06-18</td>
|
||||
<td align="center">X9</td>
|
||||
<td align="center">2010-02-27</td>
|
||||
<td align="center">S2</td>
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">Escherichia coli</td>
|
||||
<td align="center">Streptococcus pneumoniae</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">F</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2012-04-30</td>
|
||||
<td align="center">G8</td>
|
||||
<td align="center">2012-06-08</td>
|
||||
<td align="center">K9</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">Streptococcus pneumoniae</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">M</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">2012-09-13</td>
|
||||
<td align="center">G1</td>
|
||||
<td align="center">Hospital B</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">R</td>
|
||||
<td align="center">M</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2014-06-14</td>
|
||||
<td align="center">B1</td>
|
||||
<td align="center">Hospital B</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>
|
||||
@ -499,16 +499,16 @@ Longest: 1</p>
|
||||
<tr class="odd">
|
||||
<td align="left">1</td>
|
||||
<td align="left">M</td>
|
||||
<td align="right">10,423</td>
|
||||
<td align="right">52.12%</td>
|
||||
<td align="right">10,423</td>
|
||||
<td align="right">52.12%</td>
|
||||
<td align="right">10,371</td>
|
||||
<td align="right">51.86%</td>
|
||||
<td align="right">10,371</td>
|
||||
<td align="right">51.86%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">2</td>
|
||||
<td align="left">F</td>
|
||||
<td align="right">9,577</td>
|
||||
<td align="right">47.89%</td>
|
||||
<td align="right">9,629</td>
|
||||
<td align="right">48.15%</td>
|
||||
<td align="right">20,000</td>
|
||||
<td align="right">100.00%</td>
|
||||
</tr>
|
||||
@ -621,9 +621,9 @@ takes into account the antimicrobial susceptibility test results using
|
||||
<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,719 'phenotype-based' first isolates (53.6% of total where a</span></span>
|
||||
<span><span class="co"># => Found 10,701 'phenotype-based' first isolates (53.5% of total where a</span></span>
|
||||
<span><span class="co"># microbial ID was available)</span></span></code></pre></div>
|
||||
<p>So only 53.6% is suitable for resistance analysis! We can now filter
|
||||
<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>
|
||||
<div class="sourceCode" id="cb15"><pre class="downlit sourceCode r">
|
||||
@ -634,7 +634,7 @@ on it with the <code><a href="https://dplyr.tidyverse.org/reference/filter.html"
|
||||
<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,719 isolates for analysis. Now our data looks
|
||||
<p>So we end up with 10,701 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>
|
||||
@ -674,75 +674,27 @@ like:</p>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="left">1</td>
|
||||
<td align="center">2010-02-03</td>
|
||||
<td align="center">J4</td>
|
||||
<td align="center">2014-06-05</td>
|
||||
<td align="center">E8</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">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>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">4</td>
|
||||
<td align="center">2016-03-05</td>
|
||||
<td align="center">C5</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">B_STPHY_AURS</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">I</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">M</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">5</td>
|
||||
<td align="center">2010-06-18</td>
|
||||
<td align="center">X9</td>
|
||||
<td align="center">Hospital D</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">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">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">8</td>
|
||||
<td align="center">2013-12-21</td>
|
||||
<td align="center">Q1</td>
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">B_STPHY_AURS</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</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">9</td>
|
||||
<td align="center">2016-02-01</td>
|
||||
<td align="center">F7</td>
|
||||
<td align="left">2</td>
|
||||
<td align="center">2014-11-19</td>
|
||||
<td align="center">K4</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
@ -752,22 +704,70 @@ like:</p>
|
||||
<td align="center">coli</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">11</td>
|
||||
<td align="center">2017-03-22</td>
|
||||
<td align="center">U3</td>
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">B_KLBSL_PNMN</td>
|
||||
<tr class="odd">
|
||||
<td align="left">3</td>
|
||||
<td align="center">2010-02-27</td>
|
||||
<td align="center">S2</td>
|
||||
<td align="center">Hospital D</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">I</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">Klebsiella</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">5</td>
|
||||
<td align="center">2012-09-13</td>
|
||||
<td align="center">G1</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</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">6</td>
|
||||
<td align="center">2014-06-14</td>
|
||||
<td align="center">B1</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">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">7</td>
|
||||
<td align="center">2015-12-25</td>
|
||||
<td align="center">Z2</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>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>Time for the analysis!</p>
|
||||
@ -801,8 +801,8 @@ readable:</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://msberends.github.io/cleaner/reference/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,719<br>
|
||||
Available: 10,719 (100%, NA: 0 = 0%)<br>
|
||||
Length: 10,701<br>
|
||||
Available: 10,701 (100%, NA: 0 = 0%)<br>
|
||||
Unique: 4</p>
|
||||
<p>Shortest: 16<br>
|
||||
Longest: 24</p>
|
||||
@ -827,33 +827,33 @@ Longest: 24</p>
|
||||
<tr class="odd">
|
||||
<td align="left">1</td>
|
||||
<td align="left">Escherichia coli</td>
|
||||
<td align="right">4,696</td>
|
||||
<td align="right">4,688</td>
|
||||
<td align="right">43.81%</td>
|
||||
<td align="right">4,696</td>
|
||||
<td align="right">4,688</td>
|
||||
<td align="right">43.81%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">2</td>
|
||||
<td align="left">Staphylococcus aureus</td>
|
||||
<td align="right">2,753</td>
|
||||
<td align="right">25.68%</td>
|
||||
<td align="right">7,449</td>
|
||||
<td align="right">69.49%</td>
|
||||
<td align="right">2,715</td>
|
||||
<td align="right">25.37%</td>
|
||||
<td align="right">7,403</td>
|
||||
<td align="right">69.18%</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">3</td>
|
||||
<td align="left">Streptococcus pneumoniae</td>
|
||||
<td align="right">2,070</td>
|
||||
<td align="right">19.31%</td>
|
||||
<td align="right">9,519</td>
|
||||
<td align="right">88.80%</td>
|
||||
<td align="right">2,125</td>
|
||||
<td align="right">19.86%</td>
|
||||
<td align="right">9,528</td>
|
||||
<td align="right">89.04%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">4</td>
|
||||
<td align="left">Klebsiella pneumoniae</td>
|
||||
<td align="right">1,200</td>
|
||||
<td align="right">11.20%</td>
|
||||
<td align="right">10,719</td>
|
||||
<td align="right">1,173</td>
|
||||
<td align="right">10.96%</td>
|
||||
<td align="right">10,701</td>
|
||||
<td align="right">100.00%</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -874,14 +874,14 @@ antibiotic class they are in:</p>
|
||||
<col width="9%">
|
||||
<col width="9%">
|
||||
<col width="9%">
|
||||
<col width="10%">
|
||||
<col width="11%">
|
||||
<col width="3%">
|
||||
<col width="3%">
|
||||
<col width="3%">
|
||||
<col width="3%">
|
||||
<col width="6%">
|
||||
<col width="11%">
|
||||
<col width="12%">
|
||||
<col width="11%">
|
||||
<col width="9%">
|
||||
<col width="5%">
|
||||
</colgroup>
|
||||
@ -902,54 +902,39 @@ antibiotic class they are in:</p>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="center">2010-06-18</td>
|
||||
<td align="center">X9</td>
|
||||
<td align="center">2010-02-27</td>
|
||||
<td align="center">S2</td>
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">B_ESCHR_COLI</td>
|
||||
<td align="center">R</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">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="center">2013-12-21</td>
|
||||
<td align="center">Q1</td>
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">B_STPHY_AURS</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</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">Streptococcus</td>
|
||||
<td align="center">pneumoniae</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">2012-03-21</td>
|
||||
<td align="center">Q5</td>
|
||||
<td align="center">Hospital C</td>
|
||||
<tr class="even">
|
||||
<td align="center">2012-09-13</td>
|
||||
<td align="center">G1</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">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">F</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">2016-10-25</td>
|
||||
<td align="center">M2</td>
|
||||
<td align="center">Hospital D</td>
|
||||
<tr class="odd">
|
||||
<td align="center">2014-06-14</td>
|
||||
<td align="center">B1</td>
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">B_STRPT_PNMN</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
@ -961,13 +946,13 @@ antibiotic class they are in:</p>
|
||||
<td align="center">pneumoniae</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">2013-07-04</td>
|
||||
<td align="center">T3</td>
|
||||
<td align="center">Hospital D</td>
|
||||
<tr class="even">
|
||||
<td align="center">2010-10-28</td>
|
||||
<td align="center">Z4</td>
|
||||
<td align="center">Hospital A</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">S</td>
|
||||
<td align="center">R</td>
|
||||
<td align="center">F</td>
|
||||
@ -976,16 +961,31 @@ antibiotic class they are in:</p>
|
||||
<td align="center">pneumoniae</td>
|
||||
<td align="center">TRUE</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2015-12-29</td>
|
||||
<td align="center">K1</td>
|
||||
<tr class="odd">
|
||||
<td align="center">2010-05-22</td>
|
||||
<td align="center">R3</td>
|
||||
<td align="center">Hospital A</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="center">2015-05-29</td>
|
||||
<td align="center">P3</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">F</td>
|
||||
<td align="center">Gram-positive</td>
|
||||
<td align="center">Streptococcus</td>
|
||||
<td align="center">pneumoniae</td>
|
||||
@ -1013,50 +1013,50 @@ different bug/drug combinations, you can use the
|
||||
<tr class="odd">
|
||||
<td align="center">E. coli</td>
|
||||
<td align="center">AMX</td>
|
||||
<td align="center">2212</td>
|
||||
<td align="center">133</td>
|
||||
<td align="center">2351</td>
|
||||
<td align="center">4696</td>
|
||||
<td align="center">2182</td>
|
||||
<td align="center">124</td>
|
||||
<td align="center">2382</td>
|
||||
<td align="center">4688</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">E. coli</td>
|
||||
<td align="center">AMC</td>
|
||||
<td align="center">3440</td>
|
||||
<td align="center">180</td>
|
||||
<td align="center">1076</td>
|
||||
<td align="center">4696</td>
|
||||
<td align="center">3412</td>
|
||||
<td align="center">179</td>
|
||||
<td align="center">1097</td>
|
||||
<td align="center">4688</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">E. coli</td>
|
||||
<td align="center">CIP</td>
|
||||
<td align="center">3409</td>
|
||||
<td align="center">3428</td>
|
||||
<td align="center">0</td>
|
||||
<td align="center">1287</td>
|
||||
<td align="center">4696</td>
|
||||
<td align="center">1260</td>
|
||||
<td align="center">4688</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">E. coli</td>
|
||||
<td align="center">GEN</td>
|
||||
<td align="center">4091</td>
|
||||
<td align="center">4098</td>
|
||||
<td align="center">0</td>
|
||||
<td align="center">605</td>
|
||||
<td align="center">4696</td>
|
||||
<td align="center">590</td>
|
||||
<td align="center">4688</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">1200</td>
|
||||
<td align="center">1200</td>
|
||||
<td align="center">1173</td>
|
||||
<td align="center">1173</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">K. pneumoniae</td>
|
||||
<td align="center">AMC</td>
|
||||
<td align="center">950</td>
|
||||
<td align="center">50</td>
|
||||
<td align="center">200</td>
|
||||
<td align="center">1200</td>
|
||||
<td align="center">932</td>
|
||||
<td align="center">35</td>
|
||||
<td align="center">206</td>
|
||||
<td align="center">1173</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -1078,34 +1078,34 @@ different bug/drug combinations, you can use the
|
||||
<tr class="odd">
|
||||
<td align="center">E. coli</td>
|
||||
<td align="center">GEN</td>
|
||||
<td align="center">4091</td>
|
||||
<td align="center">4098</td>
|
||||
<td align="center">0</td>
|
||||
<td align="center">605</td>
|
||||
<td align="center">4696</td>
|
||||
<td align="center">590</td>
|
||||
<td align="center">4688</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">K. pneumoniae</td>
|
||||
<td align="center">GEN</td>
|
||||
<td align="center">1083</td>
|
||||
<td align="center">1059</td>
|
||||
<td align="center">0</td>
|
||||
<td align="center">117</td>
|
||||
<td align="center">1200</td>
|
||||
<td align="center">114</td>
|
||||
<td align="center">1173</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">S. aureus</td>
|
||||
<td align="center">GEN</td>
|
||||
<td align="center">2450</td>
|
||||
<td align="center">2435</td>
|
||||
<td align="center">0</td>
|
||||
<td align="center">303</td>
|
||||
<td align="center">2753</td>
|
||||
<td align="center">280</td>
|
||||
<td align="center">2715</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">2070</td>
|
||||
<td align="center">2070</td>
|
||||
<td align="center">2125</td>
|
||||
<td align="center">2125</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -1137,7 +1137,7 @@ I (<code><a href="../reference/proportion.html">proportion_SI()</a></code>, equa
|
||||
own:</p>
|
||||
<div class="sourceCode" id="cb25"><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.5435209</span></span></code></pre></div>
|
||||
<span><span class="co"># [1] 0.5451827</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="cb26"><pre class="downlit sourceCode r">
|
||||
@ -1152,19 +1152,19 @@ own:</p>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">0.5481644</td>
|
||||
<td align="center">0.5509074</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">0.5404344</td>
|
||||
<td align="center">0.5428951</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">Hospital C</td>
|
||||
<td align="center">0.5331288</td>
|
||||
<td align="center">0.5330813</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">0.5502162</td>
|
||||
<td align="center">0.5495710</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -1189,23 +1189,23 @@ all isolates available for every group (i.e. values S, I or R):</p>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="center">Hospital A</td>
|
||||
<td align="center">0.5481644</td>
|
||||
<td align="center">3187</td>
|
||||
<td align="center">0.5509074</td>
|
||||
<td align="center">3251</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">Hospital B</td>
|
||||
<td align="center">0.5404344</td>
|
||||
<td align="center">3821</td>
|
||||
<td align="center">0.5428951</td>
|
||||
<td align="center">3765</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">Hospital C</td>
|
||||
<td align="center">0.5331288</td>
|
||||
<td align="center">1630</td>
|
||||
<td align="center">0.5330813</td>
|
||||
<td align="center">1587</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">Hospital D</td>
|
||||
<td align="center">0.5502162</td>
|
||||
<td align="center">2081</td>
|
||||
<td align="center">0.5495710</td>
|
||||
<td align="center">2098</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -1230,27 +1230,27 @@ therapies very easily:</p>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="center">Escherichia</td>
|
||||
<td align="center">0.7708688</td>
|
||||
<td align="center">0.8711670</td>
|
||||
<td align="center">0.9795571</td>
|
||||
<td align="center">0.7659983</td>
|
||||
<td align="center">0.8741468</td>
|
||||
<td align="center">0.9718430</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">Klebsiella</td>
|
||||
<td align="center">0.8333333</td>
|
||||
<td align="center">0.9025000</td>
|
||||
<td align="center">0.9900000</td>
|
||||
<td align="center">0.8243819</td>
|
||||
<td align="center">0.9028133</td>
|
||||
<td align="center">0.9838022</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">Staphylococcus</td>
|
||||
<td align="center">0.7976753</td>
|
||||
<td align="center">0.8899382</td>
|
||||
<td align="center">0.9771159</td>
|
||||
<td align="center">0.7977901</td>
|
||||
<td align="center">0.8968692</td>
|
||||
<td align="center">0.9830571</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">Streptococcus</td>
|
||||
<td align="center">0.5521739</td>
|
||||
<td align="center">0.5303529</td>
|
||||
<td align="center">0.0000000</td>
|
||||
<td align="center">0.5521739</td>
|
||||
<td align="center">0.5303529</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -1278,23 +1278,23 @@ classes, use a antibiotic class selector such as
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="left">Hospital A</td>
|
||||
<td align="right">54.8%</td>
|
||||
<td align="right">26.2%</td>
|
||||
<td align="right">55.1%</td>
|
||||
<td align="right">27.1%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Hospital B</td>
|
||||
<td align="right">54.0%</td>
|
||||
<td align="right">24.9%</td>
|
||||
<td align="right">54.3%</td>
|
||||
<td align="right">26.5%</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Hospital C</td>
|
||||
<td align="right">53.3%</td>
|
||||
<td align="right">26.4%</td>
|
||||
<td align="right">27.3%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Hospital D</td>
|
||||
<td align="right">55.0%</td>
|
||||
<td align="right">26.0%</td>
|
||||
<td align="right">25.5%</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -1410,16 +1410,18 @@ classes) <code><mic></code> and <code><disk></code>:</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] 0.25 0.002 0.001 1 0.5 0.025 0.25 0.005 1 0.5 </span></span>
|
||||
<span><span class="co"># [11] 8 0.025 0.025 0.01 0.005 2 2 8 0.5 1 </span></span>
|
||||
<span><span class="co"># [21] 0.01 0.5 0.001 128 0.005 0.025 128 4 0.25 16 </span></span>
|
||||
<span><span class="co"># [31] 16 0.25 0.005 0.01 4 0.25 8 0.01 0.125 256 </span></span>
|
||||
<span><span class="co"># [41] 0.002 2 0.5 16 0.125 1 0.0625 0.0625 0.025 2 </span></span>
|
||||
<span><span class="co"># [51] 0.01 2 32 0.005 0.025 0.025 4 128 0.001 4 </span></span>
|
||||
<span><span class="co"># [61] 0.01 4 64 0.125 0.0625 0.0625 2 256 0.125 0.025 </span></span>
|
||||
<span><span class="co"># [71] 8 0.5 64 0.0625 8 0.005 0.25 0.001 256 16 </span></span>
|
||||
<span><span class="co"># [81] 128 64 0.125 0.025 0.5 2 0.005 0.0625 32 16 </span></span>
|
||||
<span><span class="co"># [91] 1 8 128 0.25 0.0625 64 0.002 4 0.025 64</span></span></code></pre></div>
|
||||
<span><span class="co"># [1] 0.005 64 2 128 0.5 2 >=256 0.005 0.5 </span></span>
|
||||
<span><span class="co"># [10] >=256 0.002 4 16 2 0.25 16 128 0.005 </span></span>
|
||||
<span><span class="co"># [19] 16 0.01 32 <=0.001 1 0.002 0.0625 0.002 1 </span></span>
|
||||
<span><span class="co"># [28] 0.5 32 0.005 0.002 0.01 0.5 0.125 0.002 0.5 </span></span>
|
||||
<span><span class="co"># [37] 0.5 32 2 16 >=256 <=0.001 2 >=256 0.125 </span></span>
|
||||
<span><span class="co"># [46] >=256 0.002 8 0.125 64 4 0.125 128 0.125 </span></span>
|
||||
<span><span class="co"># [55] 0.002 0.002 0.0625 0.002 0.0625 0.002 64 128 0.5 </span></span>
|
||||
<span><span class="co"># [64] 2 <=0.001 2 8 >=256 0.0625 0.125 0.002 64 </span></span>
|
||||
<span><span class="co"># [73] 0.5 0.025 64 0.125 0.125 <=0.001 0.0625 32 <=0.001</span></span>
|
||||
<span><span class="co"># [82] 1 0.005 0.002 0.002 0.5 4 0.125 0.01 >=256 </span></span>
|
||||
<span><span class="co"># [91] 32 0.5 0.125 0.01 0.0625 0.005 <=0.001 <=0.001 32 </span></span>
|
||||
<span><span class="co"># [100] 0.002</span></span></code></pre></div>
|
||||
<div class="sourceCode" id="cb36"><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>
|
||||
@ -1453,10 +1455,10 @@ plotting:</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] 24 18 27 18 24 19 22 17 18 31 24 25 28 21 25 22 21 21 20 25 23 28 31 24 24</span></span>
|
||||
<span><span class="co"># [26] 23 22 18 17 23 30 26 20 23 19 20 17 19 29 24 20 31 29 29 30 20 30 20 30 25</span></span>
|
||||
<span><span class="co"># [51] 19 27 22 21 29 29 23 28 21 31 29 20 20 18 17 22 23 29 25 23 23 30 28 30 30</span></span>
|
||||
<span><span class="co"># [76] 28 19 20 29 30 30 20 20 19 22 20 24 25 26 31 23 23 20 24 17 28 24 28 19 26</span></span></code></pre></div>
|
||||
<span><span class="co"># [1] 30 27 20 24 17 17 24 24 29 28 30 30 23 28 20 31 26 27 30 24 27 18 28 20 23</span></span>
|
||||
<span><span class="co"># [26] 28 17 29 30 29 24 26 18 21 18 29 29 31 22 19 21 23 19 17 22 24 21 18 24 18</span></span>
|
||||
<span><span class="co"># [51] 27 26 21 25 25 31 17 21 28 28 27 19 24 30 25 22 20 27 28 27 29 21 17 29 30</span></span>
|
||||
<span><span class="co"># [76] 21 24 21 19 29 23 29 21 17 27 18 28 17 31 24 18 19 24 21 22 30 22 28 18 24</span></span></code></pre></div>
|
||||
<div class="sourceCode" id="cb42"><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: 38 KiB |
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 55 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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">
|
||||
@ -375,19 +375,19 @@ names or codes, this would have worked exactly the same way:</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 R R I S R R</span></span>
|
||||
<span><span class="co"># 2 R I S R R I</span></span>
|
||||
<span><span class="co"># 3 S R S R R I</span></span>
|
||||
<span><span class="co"># 4 R I R S I R</span></span>
|
||||
<span><span class="co"># 5 S I I I R R</span></span>
|
||||
<span><span class="co"># 6 I I I S I I</span></span>
|
||||
<span><span class="co"># 1 S R S R R R</span></span>
|
||||
<span><span class="co"># 2 I I S R S S</span></span>
|
||||
<span><span class="co"># 3 I I R I S R</span></span>
|
||||
<span><span class="co"># 4 R I S S I R</span></span>
|
||||
<span><span class="co"># 5 R R S R R I</span></span>
|
||||
<span><span class="co"># 6 R R R I S I</span></span>
|
||||
<span><span class="co"># kanamycin</span></span>
|
||||
<span><span class="co"># 1 I</span></span>
|
||||
<span><span class="co"># 2 I</span></span>
|
||||
<span><span class="co"># 3 R</span></span>
|
||||
<span><span class="co"># 1 S</span></span>
|
||||
<span><span class="co"># 2 R</span></span>
|
||||
<span><span class="co"># 3 I</span></span>
|
||||
<span><span class="co"># 4 R</span></span>
|
||||
<span><span class="co"># 5 R</span></span>
|
||||
<span><span class="co"># 6 I</span></span></code></pre></div>
|
||||
<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">
|
||||
@ -428,40 +428,40 @@ Unique: 5</p>
|
||||
<tr class="odd">
|
||||
<td align="left">1</td>
|
||||
<td align="left">Mono-resistant</td>
|
||||
<td align="right">3185</td>
|
||||
<td align="right">63.70%</td>
|
||||
<td align="right">3185</td>
|
||||
<td align="right">63.70%</td>
|
||||
<td align="right">3268</td>
|
||||
<td align="right">65.36%</td>
|
||||
<td align="right">3268</td>
|
||||
<td align="right">65.36%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">2</td>
|
||||
<td align="left">Negative</td>
|
||||
<td align="right">989</td>
|
||||
<td align="right">19.78%</td>
|
||||
<td align="right">4174</td>
|
||||
<td align="right">83.48%</td>
|
||||
<td align="right">961</td>
|
||||
<td align="right">19.22%</td>
|
||||
<td align="right">4229</td>
|
||||
<td align="right">84.58%</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">3</td>
|
||||
<td align="left">Multi-drug-resistant</td>
|
||||
<td align="right">470</td>
|
||||
<td align="right">9.40%</td>
|
||||
<td align="right">4644</td>
|
||||
<td align="right">92.88%</td>
|
||||
<td align="right">438</td>
|
||||
<td align="right">8.76%</td>
|
||||
<td align="right">4667</td>
|
||||
<td align="right">93.34%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">4</td>
|
||||
<td align="left">Poly-resistant</td>
|
||||
<td align="right">258</td>
|
||||
<td align="right">5.16%</td>
|
||||
<td align="right">4902</td>
|
||||
<td align="right">98.04%</td>
|
||||
<td align="right">232</td>
|
||||
<td align="right">4.64%</td>
|
||||
<td align="right">4899</td>
|
||||
<td align="right">97.98%</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">5</td>
|
||||
<td align="left">Extensively drug-resistant</td>
|
||||
<td align="right">98</td>
|
||||
<td align="right">1.96%</td>
|
||||
<td align="right">101</td>
|
||||
<td align="right">2.02%</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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">
|
||||
@ -132,7 +132,7 @@
|
||||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
<h2 class="pkg-version" data-toc-text="1.8.2.9084" id="amr-1829084">AMR 1.8.2.9084<a class="anchor" aria-label="anchor" href="#amr-1829084"></a></h2>
|
||||
<h2 class="pkg-version" data-toc-text="1.8.2.9085" id="amr-1829085">AMR 1.8.2.9085<a class="anchor" aria-label="anchor" href="#amr-1829085"></a></h2>
|
||||
<p><em>(this beta version will eventually become v2.0! We’re happy to reach a new major milestone soon!)</em></p>
|
||||
<p>This is a new major release of the AMR package, with great new additions but also some breaking changes for current users. These are all listed below.</p>
|
||||
<p><strong><a href="https://en.wikipedia.org/wiki/TL;DR" class="external-link">TL;DR</a></strong></p>
|
||||
@ -145,19 +145,19 @@
|
||||
<li>Many new interesting functions, such as <code><a href="../reference/proportion.html">rsi_confidence_interval()</a></code> and <code><a href="../reference/mean_amr_distance.html">mean_amr_distance()</a></code>, and <code><a href="../reference/add_custom_microorganisms.html">add_custom_microorganisms()</a></code> to add custom microorganisms to this package</li>
|
||||
<li>Many small bug fixes</li>
|
||||
</ul><div class="section level3">
|
||||
<h3 id="new-1-8-2-9084">New<a class="anchor" aria-label="anchor" href="#new-1-8-2-9084"></a></h3>
|
||||
<h3 id="new-1-8-2-9085">New<a class="anchor" aria-label="anchor" href="#new-1-8-2-9085"></a></h3>
|
||||
<div class="section level4">
|
||||
<h4 id="interpretation-of-mic-and-disk-diffusion-values-1-8-2-9084">Interpretation of MIC and disk diffusion values<a class="anchor" aria-label="anchor" href="#interpretation-of-mic-and-disk-diffusion-values-1-8-2-9084"></a></h4>
|
||||
<h4 id="interpretation-of-mic-and-disk-diffusion-values-1-8-2-9085">Interpretation of MIC and disk diffusion values<a class="anchor" aria-label="anchor" href="#interpretation-of-mic-and-disk-diffusion-values-1-8-2-9085"></a></h4>
|
||||
<p>The clinical breakpoints and intrinsic resistance of EUCAST 2022 and CLSI 2022 have been added for <code><a href="../reference/as.rsi.html">as.rsi()</a></code>. EUCAST 2022 (v12.0) is now the new default guideline for all MIC and disks diffusion interpretations, and for <code><a href="../reference/eucast_rules.html">eucast_rules()</a></code> to apply EUCAST Expert Rules. The default guideline (EUCAST) can now be changed with the new <code>AMR_guideline</code> option, such as: <code>options(AMR_guideline = "CLSI 2020")</code>.</p>
|
||||
<p>Interpretation guidelines older than 10 years were removed, the oldest now included guidelines of EUCAST and CLSI are from 2013.</p>
|
||||
</div>
|
||||
<div class="section level4">
|
||||
<h4 id="supported-languages-1-8-2-9084">Supported languages<a class="anchor" aria-label="anchor" href="#supported-languages-1-8-2-9084"></a></h4>
|
||||
<h4 id="supported-languages-1-8-2-9085">Supported languages<a class="anchor" aria-label="anchor" href="#supported-languages-1-8-2-9085"></a></h4>
|
||||
<p>We added support for the following languages: Chinese, Greek, Japanese, Polish, Turkish and Ukrainian. All antibiotic names are now available in these languages, and the AMR package will automatically determine a supported language based on the user system language.</p>
|
||||
<p>We are very grateful for the valuable input by our colleagues from other countries. The <code>AMR</code> package is now available in 16 languages and according to download stats used in almost all countries in the world!</p>
|
||||
</div>
|
||||
<div class="section level4">
|
||||
<h4 id="microbiological-taxonomy-1-8-2-9084">Microbiological taxonomy<a class="anchor" aria-label="anchor" href="#microbiological-taxonomy-1-8-2-9084"></a></h4>
|
||||
<h4 id="microbiological-taxonomy-1-8-2-9085">Microbiological taxonomy<a class="anchor" aria-label="anchor" href="#microbiological-taxonomy-1-8-2-9085"></a></h4>
|
||||
<p>The <code>microorganisms</code> data set no longer relies on the Catalogue of Life, but on the List of Prokaryotic names with Standing in Nomenclature (LPSN) and is supplemented with the ‘backbone taxonomy’ from the Global Biodiversity Information Facility (GBIF). The structure of this data set has changed to include separate LPSN and GBIF identifiers. Almost all previous MO codes were retained. It contains over 1,400 taxonomic names from 2022.</p>
|
||||
<p>We previously relied on our own experience to categorise species into pathogenic groups, but we were very happy to encounter the very recent work of Bartlett <em>et al.</em> (2022, DOI <a href="https://doi.org/10.1099/mic.0.001269" class="external-link">10.1099/mic.0.001269</a>) who extensively studied medical-scientific literature to categorise all bacterial species into groups. See <code><a href="../reference/mo_matching_score.html">mo_matching_score()</a></code> on how their work was incorporated into the <code>prevalence</code> column of the <code>microorganisms</code> data set. Using their results, the <code><a href="../reference/as.mo.html">as.mo()</a></code> and all <code>mo_*()</code> functions are now much better capable of converting user input to valid taxonomic records.</p>
|
||||
<p>The new function <code><a href="../reference/add_custom_microorganisms.html">add_custom_microorganisms()</a></code> allows users to add custom microorganisms to the <code>AMR</code> package.</p>
|
||||
@ -181,7 +181,7 @@
|
||||
<li>The <code>microorganisms.old</code> data set was removed, and all previously accepted names are now included in the <code>microorganisms</code> data set. A new column <code>status</code> contains <code>"accepted"</code> for currently accepted names and <code>"synonym"</code> for taxonomic synonyms; currently invalid names. All previously accepted names now have a microorganisms ID and - if available - an LPSN, GBIF and SNOMED CT identifier.</li>
|
||||
</ul></div>
|
||||
<div class="section level4">
|
||||
<h4 id="antibiotic-agents-and-selectors-1-8-2-9084">Antibiotic agents and selectors<a class="anchor" aria-label="anchor" href="#antibiotic-agents-and-selectors-1-8-2-9084"></a></h4>
|
||||
<h4 id="antibiotic-agents-and-selectors-1-8-2-9085">Antibiotic agents and selectors<a class="anchor" aria-label="anchor" href="#antibiotic-agents-and-selectors-1-8-2-9085"></a></h4>
|
||||
<p>The new function <code><a href="../reference/add_custom_antimicrobials.html">add_custom_antimicrobials()</a></code> allows users to add custom antimicrobial codes and names to the <code>AMR</code> package.</p>
|
||||
<p>The <code>antibiotics</code> data set was greatly updated:</p>
|
||||
<ul><li>The following 20 antibiotics have been added (also includes the <a href="https://www.whocc.no/atc_ddd_index/?code=J01RA&showdescription=no" class="external-link">new J01RA ATC group</a>): azithromycin/fluconazole/secnidazole (AFC), cefepime/amikacin (CFA), cefixime/ornidazole (CEO), ceftriaxone/beta-lactamase inhibitor (CEB), ciprofloxacin/metronidazole (CIM), ciprofloxacin/ornidazole (CIO), ciprofloxacin/tinidazole (CIT), furazidin (FUR), isoniazid/sulfamethoxazole/trimethoprim/pyridoxine (IST), lascufloxacin (LSC), levofloxacin/ornidazole (LEO), nemonoxacin (NEM), norfloxacin/metronidazole (NME), norfloxacin/tinidazole (NTI), ofloxacin/ornidazole (OOR), oteseconazole (OTE), rifampicin/ethambutol/isoniazid (REI), sarecycline (SRC), tetracycline/oleandomycin (TOL), and thioacetazone (TAT)</li>
|
||||
@ -193,14 +193,14 @@
|
||||
</ul><p>Also, we added support for using antibiotic selectors in scoped <code>dplyr</code> verbs (with or without using <code><a href="https://dplyr.tidyverse.org/reference/vars.html" class="external-link">vars()</a></code>), such as in: <code>... %>% summarise_at(aminoglycosides(), resistance)</code>, please see <code><a href="../reference/proportion.html">resistance()</a></code> for examples.</p>
|
||||
</div>
|
||||
<div class="section level4">
|
||||
<h4 id="antiviral-agents-1-8-2-9084">Antiviral agents<a class="anchor" aria-label="anchor" href="#antiviral-agents-1-8-2-9084"></a></h4>
|
||||
<h4 id="antiviral-agents-1-8-2-9085">Antiviral agents<a class="anchor" aria-label="anchor" href="#antiviral-agents-1-8-2-9085"></a></h4>
|
||||
<p>We now added extensive support for antiviral agents! For the first time, the <code>AMR</code> package has extensive support for antiviral drugs and to work with their names, codes and other data in any way.</p>
|
||||
<ul><li>The <code>antivirals</code> data set has been extended with 18 new drugs (also from the <a href="https://www.whocc.no/atc_ddd_index/?code=J05AJ&showdescription=no" class="external-link">new J05AJ ATC group</a>) and now also contains antiviral identifiers and LOINC codes</li>
|
||||
<li>A new data type <code>av</code> (<em>antivirals</em>) has been added, which is functionally similar to <code>ab</code> for antibiotics</li>
|
||||
<li>Functions <code><a href="../reference/as.av.html">as.av()</a></code>, <code><a href="../reference/av_property.html">av_name()</a></code>, <code><a href="../reference/av_property.html">av_atc()</a></code>, <code><a href="../reference/av_property.html">av_synonyms()</a></code>, <code><a href="../reference/av_from_text.html">av_from_text()</a></code> have all been added as siblings to their <code>ab_*()</code> equivalents</li>
|
||||
</ul></div>
|
||||
<div class="section level4">
|
||||
<h4 id="other-new-functions-1-8-2-9084">Other new functions<a class="anchor" aria-label="anchor" href="#other-new-functions-1-8-2-9084"></a></h4>
|
||||
<h4 id="other-new-functions-1-8-2-9085">Other new functions<a class="anchor" aria-label="anchor" href="#other-new-functions-1-8-2-9085"></a></h4>
|
||||
<ul><li>Function <code><a href="../reference/proportion.html">rsi_confidence_interval()</a></code> to add confidence intervals in AMR calculation. This is now also included in <code><a href="../reference/proportion.html">rsi_df()</a></code> and <code><a href="../reference/proportion.html">proportion_df()</a></code>.</li>
|
||||
<li>Function <code><a href="../reference/mean_amr_distance.html">mean_amr_distance()</a></code> to calculate the mean AMR distance. The mean AMR distance is a normalised numeric value to compare AMR test results and can help to identify similar isolates, without comparing antibiograms by hand.</li>
|
||||
<li>Function <code><a href="../reference/as.rsi.html">rsi_interpretation_history()</a></code> to view the history of previous runs of <code><a href="../reference/as.rsi.html">as.rsi()</a></code>. This returns a ‘logbook’ with the selected guideline, reference table and specific interpretation of each row in a data set on which <code><a href="../reference/as.rsi.html">as.rsi()</a></code> was run.</li>
|
||||
@ -209,7 +209,7 @@
|
||||
</ul></div>
|
||||
</div>
|
||||
<div class="section level3">
|
||||
<h3 id="changes-1-8-2-9084">Changes<a class="anchor" aria-label="anchor" href="#changes-1-8-2-9084"></a></h3>
|
||||
<h3 id="changes-1-8-2-9085">Changes<a class="anchor" aria-label="anchor" href="#changes-1-8-2-9085"></a></h3>
|
||||
<ul><li>Argument <code>combine_IR</code> has been removed from this package (affecting functions <code><a href="../reference/count.html">count_df()</a></code>, <code><a href="../reference/proportion.html">proportion_df()</a></code>, and <code><a href="../reference/proportion.html">rsi_df()</a></code> and some plotting functions), since it was replaced with <code>combine_SI</code> three years ago</li>
|
||||
<li>Using <code>units</code> in <code>ab_ddd(..., units = "...")</code> had been deprecated for some time and is now not supported anymore. Use <code><a href="../reference/ab_property.html">ab_ddd_units()</a></code> instead.</li>
|
||||
<li>Support for <code>data.frame</code>-enhancing R packages, more specifically: <code><a href="https://Rdatatable.gitlab.io/data.table/reference/data.table.html" class="external-link">data.table::data.table</a></code>, <code><a href="https://rdrr.io/pkg/janitor/man/tabyl.html" class="external-link">janitor::tabyl</a></code>, <code><a href="https://tibble.tidyverse.org/reference/tibble.html" class="external-link">tibble::tibble</a></code>, and <code><a href="https://tsibble.tidyverts.org/reference/tsibble.html" class="external-link">tsibble::tsibble</a></code>. AMR package functions that have a data set as output (such as <code><a href="../reference/proportion.html">rsi_df()</a></code> and <code><a href="../reference/bug_drug_combinations.html">bug_drug_combinations()</a></code>), will now return the same data type as the input.</li>
|
||||
@ -248,7 +248,7 @@
|
||||
<li>Cleaning columns with <code><a href="../reference/as.rsi.html">as.rsi()</a></code>, <code><a href="../reference/as.mic.html">as.mic()</a></code>, or <code><a href="../reference/as.disk.html">as.disk()</a></code> will now show the column name in the warning for invalid results</li>
|
||||
</ul></div>
|
||||
<div class="section level3">
|
||||
<h3 id="other-1-8-2-9084">Other<a class="anchor" aria-label="anchor" href="#other-1-8-2-9084"></a></h3>
|
||||
<h3 id="other-1-8-2-9085">Other<a class="anchor" aria-label="anchor" href="#other-1-8-2-9085"></a></h3>
|
||||
<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, Anton Mymrikov, and Jonas Salm 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: 2023-01-06T12:40Z
|
||||
last_built: 2023-01-06T12:48Z
|
||||
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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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: 13 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 8.2 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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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,16 +195,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 1964-03-18 58 58.80548 35</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 1956-03-13 66 66.81918 43</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 1986-03-21 36 36.79726 13</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 1952-10-10 70 70.24110 47</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 1951-10-02 71 71.26301 48</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 1975-02-02 47 47.92603 24</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 1963-06-25 59 59.53425 36</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 1997-02-25 25 25.86301 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 1934-05-28 88 88.61096 65</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 1955-12-30 67 67.01918 44</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 1995-06-11 27 27.57260 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 1964-08-06 58 58.41918 35</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 1964-04-30 58 58.68767 35</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 1935-08-11 87 87.40548 64</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 1932-04-21 90 90.71233 67</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 1932-09-01 90 90.34795 67</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 1978-05-01 44 44.68493 21</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 1977-10-10 45 45.24110 22</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 1947-10-20 75 75.21370 52</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 1982-05-27 40 40.61370 17</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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">
|
||||
@ -506,16 +506,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 × 12</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> datetime index ab_input ab_gu…¹ mo_in…² mo_guideline 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> 2023-01-06 <span style="color: #949494;">12:40:36</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> 2023-01-06 <span style="color: #949494;">12:40:37</span> 1 AMP AMP Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 2023-01-06 <span style="color: #949494;">12:40:37</span> 1 CIP CIP Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 2023-01-06 <span style="color: #949494;">12:40:38</span> 1 GEN GEN Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 2023-01-06 <span style="color: #949494;">12:40:38</span> 1 TOB TOB Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 2023-01-06 <span style="color: #949494;">12:40:39</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> 2023-01-06 <span style="color: #949494;">12:40:40</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> 2023-01-06 <span style="color: #949494;">12:40:40</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> 2023-01-06 <span style="color: #949494;">12:40:40</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> 2023-01-06 <span style="color: #949494;">12:40:40</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> 2023-01-06 <span style="color: #949494;">12:49:07</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> 2023-01-06 <span style="color: #949494;">12:49:08</span> 1 AMP AMP Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 2023-01-06 <span style="color: #949494;">12:49:08</span> 1 CIP CIP Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 2023-01-06 <span style="color: #949494;">12:49:08</span> 1 GEN GEN Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 2023-01-06 <span style="color: #949494;">12:49:09</span> 1 TOB TOB Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 2023-01-06 <span style="color: #949494;">12:49:09</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> 2023-01-06 <span style="color: #949494;">12:49:10</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> 2023-01-06 <span style="color: #949494;">12:49:10</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> 2023-01-06 <span style="color: #949494;">12:49:10</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> 2023-01-06 <span style="color: #949494;">12:49:10</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, 5 more variables: ref_table <chr>, method <chr>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># input <dbl>, outcome <rsi>, breakpoint_S_R <chr>, and abbreviated variable</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># names ¹ab_guideline, ²mo_input, ³guideline</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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">
|
||||
@ -182,40 +182,43 @@
|
||||
<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] 35 62 35 6 5 61 64 22 27 58 10 64 57 60 29 58 21 9 15 3 46 19 32 23 55</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [26] 5 58 29 21 36 62 41 18 12 20 41 62 6 38 26 37 41 33 35 22 15 20 61 4 19</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [51] 25 41 51 48 50 44 11 42 10 57 45 2 27 16 53 35 41 62 28 54 36 12 7 39 5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [76] 12 58 19 14 63 30 28 10 8 54 17 46 30 53 32 14 31 30 17 46 16 39 59 48 52</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [101] 49 1 12 57 33 37 51 12 22 13 27 16 60 36 9 64 10 33 2 42 40 4 24 15 60</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [126] 31 63 49 2 43 45 53 53 38 48 38 39 48 60 61 12 4 27 37 37 27 28 56 34 28</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [151] 47 11 14 58 24 54 64 16 59 15 7 31 45 23 10 32 21 61 43 21 14 38 58 13 14</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [176] 12 1 59 24 23 60 6 19 7 5 3 7 32 37 24 54 24 52 24 39 15 58 32 9 14</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 46 12 62 58 1 50 44 18 56 48 8 63 1 19 54 62 29 63 13 49 17 50 58 32 53</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [26] 65 47 11 60 65 33 59 19 41 35 7 5 60 61 38 15 15 39 62 65 9 7 59 3 67</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [51] 42 55 3 11 52 46 43 28 23 63 32 36 57 21 24 58 22 23 38 3 59 66 41 3 45</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [76] 18 39 29 44 65 67 20 46 47 24 8 55 16 51 25 51 26 16 57 48 58 56 54 44 26</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [101] 59 64 3 9 18 10 19 1 29 23 31 28 63 49 37 43 52 5 38 17 46 29 13 31 19</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [126] 51 10 49 54 10 66 32 35 30 4 32 21 14 21 41 33 6 26 13 11 63 17 13 54 47</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [151] 34 21 6 4 30 4 58 53 48 19 9 20 64 40 13 61 10 64 22 7 47 28 45 54 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [176] 40 64 42 32 49 51 4 4 2 12 12 4 18 45 67 19 65 8 14 24 18 20 60 42 27</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 FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] TRUE FALSE TRUE FALSE FALSE FALSE FALSE TRUE TRUE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [37] TRUE FALSE FALSE TRUE FALSE FALSE FALSE TRUE TRUE TRUE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [49] FALSE TRUE TRUE TRUE TRUE FALSE TRUE TRUE FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [61] TRUE FALSE FALSE TRUE FALSE FALSE FALSE FALSE TRUE TRUE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [73] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [85] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE TRUE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [97] FALSE TRUE FALSE TRUE TRUE FALSE FALSE FALSE TRUE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [109] FALSE TRUE FALSE FALSE TRUE TRUE FALSE FALSE FALSE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [121] TRUE TRUE FALSE FALSE FALSE FALSE TRUE FALSE TRUE TRUE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [133] FALSE TRUE FALSE FALSE TRUE TRUE FALSE FALSE FALSE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [145] FALSE FALSE FALSE TRUE TRUE FALSE TRUE TRUE FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [157] TRUE FALSE FALSE FALSE TRUE TRUE FALSE FALSE FALSE TRUE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [169] FALSE TRUE FALSE FALSE FALSE FALSE TRUE FALSE TRUE FALSE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [181] FALSE TRUE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [193] FALSE FALSE FALSE FALSE TRUE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] FALSE TRUE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] TRUE TRUE FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [37] TRUE TRUE TRUE TRUE TRUE FALSE FALSE TRUE TRUE TRUE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [49] TRUE TRUE TRUE TRUE FALSE FALSE FALSE TRUE TRUE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [61] TRUE TRUE TRUE FALSE FALSE TRUE TRUE FALSE FALSE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [73] FALSE FALSE TRUE FALSE TRUE FALSE TRUE FALSE FALSE TRUE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [85] TRUE TRUE FALSE FALSE TRUE TRUE FALSE TRUE TRUE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [97] TRUE FALSE FALSE FALSE FALSE TRUE FALSE FALSE TRUE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [109] TRUE FALSE FALSE FALSE TRUE FALSE TRUE FALSE TRUE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [121] FALSE FALSE FALSE TRUE FALSE FALSE TRUE FALSE TRUE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [133] TRUE TRUE FALSE FALSE TRUE TRUE FALSE TRUE TRUE TRUE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [145] TRUE FALSE TRUE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [157] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [169] FALSE FALSE FALSE TRUE FALSE FALSE FALSE TRUE FALSE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [181] FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [193] FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE</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-10-11 871360 78 M Clinical B_STPHY_EPDR R NA S NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> 2002-11-11 D80753 74 F Outpatie… B_STPHY_CONS R NA S NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 5 × 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-18 012595 30 M ICU B_CRYNB I 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: #BCBCBC;">3</span> 2002-07-21 955940 82 F Clinical B_PSDMN_AERG R NA NA R </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">4</span> 2002-07-15 426426 67 F ICU B_ESCHR_COLI R NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">5</span> 2002-08-14 785317 51 F ICU B_ESCHR_COLI R NA NA NA </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>
|
||||
@ -251,16 +254,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> 387C40 2010-12-06 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 6FC260 2017-06-07 C FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 829641 2011-01-03 C FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 914520 2003-07-31 B FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 114570 2003-04-08 B FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 612042 2017-03-15 A FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> C80762 2017-12-21 C FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 650870 2007-09-10 B FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> CD4354 2009-02-19 B FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> C6F894 2016-07-11 C FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> C541BC 2012-09-03 A FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> F35553 2004-09-24 A FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> C76410 2016-09-09 B FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> A76045 2015-10-06 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 067927 2002-01-13 A FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 835073 2013-09-27 B FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 76F141 2012-05-04 C FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> A2C4D5 2006-01-10 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> E99D61 2015-04-07 A FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> B43936 2013-05-16 B 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>
|
||||
@ -272,19 +275,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 [179]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: ward, patient [178]</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-12-06 387C40 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> ICU 2017-06-07 6FC260 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> Clinical 2011-01-03 829641 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> Clinical 2003-07-31 914520 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> ICU 2003-04-08 114570 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> ICU 2017-03-15 612042 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> ICU 2017-12-21 C80762 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> ICU 2007-09-10 650870 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> ICU 2009-02-19 CD4354 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> ICU 2016-07-11 C6F894 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> Clinical 2012-09-03 C541BC 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> ICU 2004-09-24 F35553 5 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> Clinical 2016-09-09 C76410 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> ICU 2015-10-06 A76045 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> ICU 2002-01-13 067927 1 FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> Clinical 2013-09-27 835073 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> Clinical 2012-05-04 76F141 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> Clinical 2006-01-10 A2C4D5 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> ICU 2015-04-07 E99D61 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> ICU 2013-05-16 B43936 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>
|
||||
@ -299,9 +302,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 106 14 52 73</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ICU 60 12 36 48</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> Outpatient 13 9 13 13</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> Clinical 114 15 57 76</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ICU 56 12 38 45</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> Outpatient 8 4 7 7</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>
|
||||
@ -331,19 +334,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 [192]</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> 387C40 B_KLBSL_PNMN Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 6FC260 B_STPHY_HMNS ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 829641 B_ESCHR_COLI Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 914520 B_STPHY_AURS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 114570 B_STRPT_GRPA ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 612042 B_ESCHR_COLI ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> C80762 B_ESCHR_COLI ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 650870 B_ENTRBC_CLOC ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> CD4354 B_ESCHR_COLI ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> C6F894 B_STPHY_AURS ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: patient, mo, ward [186]</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> C541BC B_ESCHR_COLI Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> F35553 B_STPHY_AURS ICU FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> C76410 B_STPHY_EPDR Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> A76045 B_STPHY_HMNS ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 067927 B_STPHY_EPDR ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 835073 B_STPHY_HMNS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 76F141 B_ESCHR_COLI Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> A2C4D5 B_STRPT_GRPG Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> E99D61 B_STPHY_EPDR ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> B43936 B_BCTRD_FRGL ICU 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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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">
|
||||
@ -172,9 +172,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] 3.01942</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 2.968667</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.01086304</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.008827245</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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">
|
||||
@ -191,31 +191,31 @@
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">rsi</span> <span class="op"><-</span> <span class="fu"><a href="random.html">random_rsi</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">rsi</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] R S S I S I R I S I</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] I I I I S S R S S R</span>
|
||||
<span class="r-in"><span><span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">rsi</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 1.8973666 -0.4743416 -0.4743416 -0.4743416 -0.4743416 -0.4743416</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 1.8973666 -0.4743416 -0.4743416 -0.4743416</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.4743416 -0.4743416 -0.4743416 -0.4743416 -0.4743416 -0.4743416</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 1.8973666 -0.4743416 -0.4743416 1.8973666</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="va">mic</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">mic</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 2 <=0.001 <=0.001 <=0.001 >=16 0.002 0.125 0.125 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [10] 8 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 32 4 0.005 <=0.002 8 0.125 16 64 >=256 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [10] 0.025 </span>
|
||||
<span class="r-in"><span><span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">mic</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.6534187 0.8306741 -1.1130696 -1.1130696 -1.1130696 1.3624400</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -0.9358143 0.1216528 0.1216528 1.1851847</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.7759961 0.2799572 -1.3146188 -1.5331947 0.4453035 -0.5467743</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.6106498 0.9413425 1.2720351 -0.9306965</span>
|
||||
<span class="r-in"><span><span class="co"># equal to the Z-score of their log2:</span></span></span>
|
||||
<span class="r-in"><span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/Log.html" class="external-link">log2</a></span><span class="op">(</span><span class="va">mic</span><span class="op">)</span> <span class="op">-</span> <span class="fu"><a href="https://rdrr.io/r/base/mean.html" class="external-link">mean</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/Log.html" class="external-link">log2</a></span><span class="op">(</span><span class="va">mic</span><span class="op">)</span><span class="op">)</span><span class="op">)</span> <span class="op">/</span> <span class="fu"><a href="https://rdrr.io/r/stats/sd.html" class="external-link">sd</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/Log.html" class="external-link">log2</a></span><span class="op">(</span><span class="va">mic</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.6534187 0.8306741 -1.1130696 -1.1130696 -1.1130696 1.3624400</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -0.9358143 0.1216528 0.1216528 1.1851847</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.7759961 0.2799572 -1.3146188 -1.5331947 0.4453035 -0.5467743</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.6106498 0.9413425 1.2720351 -0.9306965</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="va">disk</span> <span class="op"><-</span> <span class="fu"><a href="random.html">random_disk</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">disk</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] 19 41 24 49 8 47 23 25 8 21</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 34 40 49 17 45 36 20 20 48 18</span>
|
||||
<span class="r-in"><span><span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">disk</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.5123570 0.9905569 -0.1707857 1.5370711 -1.2638140 1.4004425</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -0.2390999 -0.1024714 -1.2638140 -0.3757285</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.1006272 0.5650602 1.2617097 -1.2152664 0.9520877 0.2554382</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -0.9830499 -0.9830499 1.1843042 -1.1378609</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>
|
||||
@ -226,35 +226,35 @@
|
||||
<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 R 20 1 <=0.5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B I 22 >=2 >=16</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C S 24 >=2 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D R 26 >=2 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E S 21 0.5 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F R 20 0.5 <=0.5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G I 23 >=2 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H I 24 1 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I I 19 <=0.25 <=0.5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J S 27 <=0.25 <=0.5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 A I 19 <=0.25 <=0.5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B R 21 0.5 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C I 30 1 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D S 30 8 >=4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E R 18 <=0.25 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F I 29 16 >=4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G S 24 4 <=0.5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H I 21 4 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I I 28 2 >=4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J S 26 0.5 <=0.5</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" and</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> "tobr"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.05259924 0.57930600 0.15889055 0.86335651 -0.22456313 -0.25597154</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.21726521 0.10735130 -1.07035142 -0.32268424</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -1.0443988 0.1699505 0.1816530 0.7332860 -0.1102573 0.7972126</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -0.3020597 -0.2666282 0.3891516 -0.5479098</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 "gent" and "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> 9 I I 19 <=0.25 <=0.5 -1.1572729</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J S 27 <=0.25 <=0.5 -1.1572729</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F R 20 0.5 <=0.5 -0.7505283</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 A R 20 1 <=0.5 -0.3437837</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E S 21 0.5 4 0.1604701</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H I 24 1 2 0.2635486</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C S 24 >=2 1 0.3666271</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D R 26 >=2 1 0.3666271</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G I 23 >=2 2 0.6702932</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B I 22 >=2 >=16 1.5812916</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 A I 19 <=0.25 <=0.5 -1.24603939</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J S 26 0.5 <=0.5 -1.01004560</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E R 18 <=0.25 2 -0.45546997</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G S 24 4 <=0.5 -0.30206422</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B R 21 0.5 2 -0.21947618</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C I 30 1 2 0.01651761</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H I 21 4 1 0.09322048</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I I 28 2 >=4 0.64779611</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D S 30 8 >=4 1.11978369</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F I 29 16 >=4 1.35577748</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>
|
||||
@ -267,16 +267,16 @@
|
||||
<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 S 24 >=2 1 0.15889055 0.00000000</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 H I 24 1 2 0.10735130 0.05153924</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 G I 23 >=2 2 0.21726521 0.05837466</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 A R 20 1 <=0.5 -0.05259924 0.21148979</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E S 21 0.5 4 -0.22456313 0.38345368</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F R 20 0.5 <=0.5 -0.25597154 0.41486209</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 B I 22 >=2 >=16 0.57930600 0.42041545</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 J S 27 <=0.25 <=0.5 -0.32268424 0.48157478</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 D R 26 >=2 1 0.86335651 0.70446596</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 I I 19 <=0.25 <=0.5 -1.07035142 1.22924196</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 C I 30 1 2 0.1816530 0.00000000</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B R 21 0.5 2 0.1699505 0.01170248</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 I I 28 2 >=4 0.3891516 0.20749866</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 E R 18 <=0.25 2 -0.1102573 0.29191026</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 H I 21 4 1 -0.2666282 0.44828121</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 G S 24 4 <=0.5 -0.3020597 0.48371268</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 D S 30 8 >=4 0.7332860 0.55163304</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 F I 29 16 >=4 0.7972126 0.61555964</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 J S 26 0.5 <=0.5 -0.5479098 0.72956278</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 A I 19 <=0.25 <=0.5 -1.0443988 1.22605173</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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: 27 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 57 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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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">
|
||||
@ -183,43 +183,41 @@
|
||||
<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] 4 16 1 1 128 0.125 0.5 32 8 2 0.005 >=256</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] 0.005 32 0.025 >=256 >=256 16 64 2 0.001 16 16 0.025</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] >=256</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.5 2 64 0.125 0.002 0.002 0.025 0.01 0.125 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [10] 0.0625 2 8 0.0625 <=0.001 0.005 0.01 64 0.01 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [19] 8 4 128 0.025 0.002 0.0625 1 </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] 26 29 39 47 43 15 17 40 11 45 41 48 28 25 46 49 36 44 46 13 11 26 29 47 36</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 14 47 8 11 16 15 29 41 30 34 42 48 31 11 30 49 13 47 13 35 9 50 41 16 48</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] R S I I R S I S R R I R R I R S R S R R R S I R R</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] R I R R I I I R R R I R S I S R S R S I S R I R 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] 4 16 4 0.001 >=256 0.25 0.25 8 0.001 0.002 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [11] 2 2 1 0.25 0.25 64 0.125 8 0.0625 64 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] 4 0.5 0.5 0.01 0.5 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 1 0.01 0.125 4 0.0625 2 64 >=256 8 0.125 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [11] 0.002 16 64 0.0625 128 0.025 8 128 >=256 128 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] 0.025 0.001 0.5 4 0.002 </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] 4 <=0.5 >=32 8 2 16 <=0.5 8 16 1 4 1 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] 8 <=0.5 1 8 8 1 4 <=0.5 8 2 2 2 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] 2 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 32 32 1 16 2 16 16 8 2 4 16 1 4 16 2 1 1 8 16 8 2 16 16 1 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">"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] 4 0.0625 0.5 1 0.25 0.25 4 0.0625 2 4 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [11] 0.0625 0.5 0.5 4 0.125 0.0625 1 0.25 1 0.5 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] 0.25 1 0.125 1 1 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] <=0.025 8 1 0.125 2 <=0.025 0.5 0.5 0.125 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [10] <=0.025 2 8 0.0625 >=16 0.0625 8 0.25 2 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [19] >=16 0.25 >=16 0.125 <=0.025 >=16 >=16 </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] 12 47 48 45 12 36 36 14 49 39 42 38 45 47 47 42 46 50 25 50 9 42 50 41 28</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 33 15 41 31 31 36 49 42 34 9 42 31 16 37 50 42 17 44 40 46 8 40 44 42 46</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] 15 12 11 15 16 17 12 11 14 11 11 15 12 17 11 13 12 17 16 14 15 17 16 12 11</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 16 15 12 17 11 12 15 17 11 12 14 17 15 14 13 12 11 16 13 17 13 13 15 16 12</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] 25 18 23 25 25 21 19 15 24 20 19 24 20 18 17 26 20 17 21 16 15 25 27 25 22</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 20 17 25 16 19 17 21 23 27 24 15 27 25 22 21 15 23 25 20 18 21 15 21 17 24</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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">
|
||||
@ -171,7 +171,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.0254348</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.03805861</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.9084</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8.2.9085</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">
|
||||
|