1
0
mirror of https://github.com/msberends/AMR.git synced 2026-03-29 22:55:56 +02:00

Built site for AMR@3.0.1.9037: 3d1412e

This commit is contained in:
github-actions
2026-03-22 19:55:49 +00:00
parent 3560dfd611
commit c95646d39c
120 changed files with 617 additions and 675 deletions

View File

@@ -30,7 +30,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="">3.0.1.9036</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9037</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">
@@ -91,7 +91,7 @@
website update since they are based on randomly created values and the
page was written in <a href="https://rmarkdown.rstudio.com/" class="external-link">R
Markdown</a>. However, the methodology remains unchanged. This page was
generated on 20 March 2026.</p>
generated on 22 March 2026.</p>
<div class="section level2">
<h2 id="introduction">Introduction<a class="anchor" aria-label="anchor" href="#introduction"></a>
</h2>
@@ -147,21 +147,21 @@ make the structure of your data generally look like this:</p>
</tr></thead>
<tbody>
<tr class="odd">
<td align="center">2026-03-20</td>
<td align="center">2026-03-22</td>
<td align="center">abcd</td>
<td align="center">Escherichia coli</td>
<td align="center">S</td>
<td align="center">S</td>
</tr>
<tr class="even">
<td align="center">2026-03-20</td>
<td align="center">2026-03-22</td>
<td align="center">abcd</td>
<td align="center">Escherichia coli</td>
<td align="center">S</td>
<td align="center">R</td>
</tr>
<tr class="odd">
<td align="center">2026-03-20</td>
<td align="center">2026-03-22</td>
<td align="center">efgh</td>
<td align="center">Escherichia coli</td>
<td align="center">R</td>
@@ -224,16 +224,16 @@ short, but still human readable. More importantly, <code><a href="../reference/a
supports all kinds of input:</p>
<div class="sourceCode" id="cb3"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="fu"><a href="../reference/as.mo.html">as.mo</a></span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span>
<span><span class="co">#&gt; Class 'mo'</span></span>
<span><span class="co">#&gt; Class <span style="color: #0000BB;">&lt;mo&gt;</span></span></span>
<span><span class="co">#&gt; [1] B_KLBSL_PNMN</span></span>
<span><span class="fu"><a href="../reference/as.mo.html">as.mo</a></span><span class="op">(</span><span class="st">"K. pneumoniae"</span><span class="op">)</span></span>
<span><span class="co">#&gt; Class 'mo'</span></span>
<span><span class="co">#&gt; Class <span style="color: #0000BB;">&lt;mo&gt;</span></span></span>
<span><span class="co">#&gt; [1] B_KLBSL_PNMN</span></span>
<span><span class="fu"><a href="../reference/as.mo.html">as.mo</a></span><span class="op">(</span><span class="st">"KLEPNE"</span><span class="op">)</span></span>
<span><span class="co">#&gt; Class 'mo'</span></span>
<span><span class="co">#&gt; Class <span style="color: #0000BB;">&lt;mo&gt;</span></span></span>
<span><span class="co">#&gt; [1] B_KLBSL_PNMN</span></span>
<span><span class="fu"><a href="../reference/as.mo.html">as.mo</a></span><span class="op">(</span><span class="st">"KLPN"</span><span class="op">)</span></span>
<span><span class="co">#&gt; Class 'mo'</span></span>
<span><span class="co">#&gt; Class <span style="color: #0000BB;">&lt;mo&gt;</span></span></span>
<span><span class="co">#&gt; [1] B_KLBSL_PNMN</span></span></code></pre></div>
<p>The first character in above codes denote their taxonomic kingdom,
such as Bacteria (B), Fungi (F), and Protozoa (P).</p>
@@ -266,16 +266,14 @@ user input can be used:</p>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> Retrieved values from the `microorganisms.codes` data set for "ESCCOL",</span></span>
<span><span class="co">#&gt; "KLEPNE", "STAAUR", and "STRPNE".</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> Microorganism translation was uncertain for four microorganisms. Run</span></span>
<span><span class="co">#&gt; `mo_uncertainties()` (`?AMR::mo_uncertainties()`) to review these</span></span>
<span><span class="co">#&gt; uncertainties, or use `add_custom_microorganisms()`</span></span>
<span><span class="co">#&gt; (`?AMR::add_custom_microorganisms()`) to add custom entries.</span></span></code></pre></div>
<span><span class="co">#&gt; `?mo_uncertainties()` to review these uncertainties, or use</span></span>
<span><span class="co">#&gt; `?add_custom_microorganisms()` to add custom entries.</span></span></code></pre></div>
<p>Apparently, there was some uncertainty about the translation to
taxonomic codes. Lets check this:</p>
<div class="sourceCode" id="cb6"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="fu"><a href="../reference/as.mo.html">mo_uncertainties</a></span><span class="op">(</span><span class="op">)</span></span>
<span><span class="co">#&gt; Matching scores are based on the resemblance between the input and the full</span></span>
<span><span class="co">#&gt; taxonomic name, and the pathogenicity in humans. See `mo_matching_score()`</span></span>
<span><span class="co">#&gt; (`?AMR::mo_matching_score()`).</span></span>
<span><span class="co">#&gt; taxonomic name, and the pathogenicity in humans. See `?mo_matching_score()`.</span></span>
<span><span class="co">#&gt; Colour keys: <span style="color: #080808; background-color: #FF5F5F;"> 0.000-0.549 </span><span style="color: #080808; background-color: #FFD787;"> 0.550-0.649 </span><span style="color: #080808; background-color: #FFFF87;"> 0.650-0.749 </span><span style="color: #080808; background-color: #5FD7AF;"> 0.750-1.000 </span></span></span>
<span><span class="co">#&gt; <span style="color: #B2B2B2;">-------------------------------------------------------------------------------</span></span></span>
<span><span class="co">#&gt; <span style="color: #0000BB;">"E. coli"</span> -&gt; <span style="font-weight: bold; font-style: italic;">Escherichia coli</span> (B_ESCHR_COLI, <span style="color: #080808; background-color: #FFFF87;">0.688</span>)</span></span>
@@ -307,10 +305,9 @@ taxonomic codes. Lets check this:</p>
<span><span class="co">#&gt; <span style="font-style: italic;">pseudintermedius</span><span style="color: #0000BB;"> (</span><span style="color: #080808; background-color: #FF5F5F;">0.532</span>), <span style="font-style: italic;">Serratia proteamaculans proteamaculans</span><span style="color: #0000BB;"> (</span><span style="color: #080808; background-color: #FF5F5F;">0.526</span>),</span></span>
<span><span class="co">#&gt; <span style="font-style: italic;">Streptococcus gallolyticus pasteurianus</span><span style="color: #0000BB;"> (</span><span style="color: #080808; background-color: #FF5F5F;">0.526</span>), <span style="font-style: italic;">Salmonella</span> Portanigra<span style="color: #0000BB;"> (</span><span style="color: #080808; background-color: #FF5F5F;">0.524</span>),</span></span>
<span><span class="co">#&gt; and <span style="font-style: italic;">Streptococcus periodonticum</span><span style="color: #0000BB;"> (</span><span style="color: #080808; background-color: #FF5F5F;">0.519</span>)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> Only the first 10 other matches of each record are shown. Run</span></span>
<span><span class="co">#&gt; `print(mo_uncertainties(), n = ...)` (`?AMR::mo_uncertainties()`) to view</span></span>
<span><span class="co">#&gt; more entries, or save `mo_uncertainties()` (`?AMR::mo_uncertainties()`) to an</span></span>
<span><span class="co">#&gt; object.</span></span></code></pre></div>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> Only the first 10 other matches of each record are shown. Run ``</span></span>
<span><span class="co">#&gt; ?`print(mo_uncertainties(), n = ...)` `` to view more entries, or save</span></span>
<span><span class="co">#&gt; `?mo_uncertainties()` to an object.</span></span></code></pre></div>
<p>Thats all good.</p>
</div>
<div class="section level3">
@@ -522,7 +519,8 @@ in:</p>
<div class="sourceCode" id="cb14"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">our_data_1st</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%&gt;%</a></span></span>
<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="va">date</span>, <span class="fu"><a href="../reference/antimicrobial_selectors.html">aminoglycosides</a></span><span class="op">(</span><span class="op">)</span><span class="op">)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `aminoglycosides()` using column '<span style="font-weight: bold;">GEN</span>' (gentamicin)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `?aminoglycosides()` using column <span style="color: #00BB00; font-weight: bold;">GEN</span></span></span>
<span><span class="co">#&gt; (gentamicin)</span></span>
<span><span class="co">#&gt; <span style="color: #949494;"># A tibble: 2,724 × 2</span></span></span>
<span><span class="co">#&gt; date GEN </span></span>
<span><span class="co">#&gt; <span style="color: #949494; font-style: italic;">&lt;date&gt;</span> <span style="color: #949494; font-style: italic;">&lt;sir&gt;</span></span></span>
@@ -540,7 +538,7 @@ in:</p>
<span></span>
<span><span class="va">our_data_1st</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%&gt;%</a></span></span>
<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="va">bacteria</span>, <span class="fu"><a href="../reference/antimicrobial_selectors.html">betalactams</a></span><span class="op">(</span><span class="op">)</span><span class="op">)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `betalactams()` using columns '<span style="font-weight: bold;">AMX</span>' (amoxicillin) and '<span style="font-weight: bold;">AMC</span>'</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `?betalactams()` using columns <span style="color: #00BB00; font-weight: bold;">AMX</span> (amoxicillin) and <span style="color: #00BB00; font-weight: bold;">AMC</span></span></span>
<span><span class="co">#&gt; (amoxicillin/clavulanic acid)</span></span>
<span><span class="co">#&gt; <span style="color: #949494;"># A tibble: 2,724 × 3</span></span></span>
<span><span class="co">#&gt; bacteria AMX AMC </span></span>
@@ -577,7 +575,8 @@ in:</p>
<span><span class="co"># filtering using AB selectors is also possible:</span></span>
<span><span class="va">our_data_1st</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%&gt;%</a></span></span>
<span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/filter.html" class="external-link">filter</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/any.html" class="external-link">any</a></span><span class="op">(</span><span class="fu"><a href="../reference/antimicrobial_selectors.html">aminoglycosides</a></span><span class="op">(</span><span class="op">)</span> <span class="op">==</span> <span class="st">"R"</span><span class="op">)</span><span class="op">)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `aminoglycosides()` using column '<span style="font-weight: bold;">GEN</span>' (gentamicin)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `?aminoglycosides()` using column <span style="color: #00BB00; font-weight: bold;">GEN</span></span></span>
<span><span class="co">#&gt; (gentamicin)</span></span>
<span><span class="co">#&gt; <span style="color: #949494;"># A tibble: 981 × 9</span></span></span>
<span><span class="co">#&gt; patient_id hospital date bacteria AMX AMC CIP GEN first</span></span>
<span><span class="co">#&gt; <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;date&gt;</span> <span style="color: #949494; font-style: italic;">&lt;mo&gt;</span> <span style="color: #949494; font-style: italic;">&lt;sir&gt;</span> <span style="color: #949494; font-style: italic;">&lt;sir&gt;</span> <span style="color: #949494; font-style: italic;">&lt;sir&gt;</span> <span style="color: #949494; font-style: italic;">&lt;sir&gt;</span> <span style="color: #949494; font-style: italic;">&lt;lgl&gt;</span></span></span>
@@ -595,7 +594,7 @@ in:</p>
<span></span>
<span><span class="va">our_data_1st</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%&gt;%</a></span></span>
<span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/filter.html" class="external-link">filter</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/all.html" class="external-link">all</a></span><span class="op">(</span><span class="fu"><a href="../reference/antimicrobial_selectors.html">betalactams</a></span><span class="op">(</span><span class="op">)</span> <span class="op">==</span> <span class="st">"R"</span><span class="op">)</span><span class="op">)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `betalactams()` using columns '<span style="font-weight: bold;">AMX</span>' (amoxicillin) and '<span style="font-weight: bold;">AMC</span>'</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `?betalactams()` using columns <span style="color: #00BB00; font-weight: bold;">AMX</span> (amoxicillin) and <span style="color: #00BB00; font-weight: bold;">AMC</span></span></span>
<span><span class="co">#&gt; (amoxicillin/clavulanic acid)</span></span>
<span><span class="co">#&gt; <span style="color: #949494;"># A tibble: 462 × 9</span></span></span>
<span><span class="co">#&gt; patient_id hospital date bacteria AMX AMC CIP GEN first</span></span>
@@ -614,7 +613,7 @@ in:</p>
<span></span>
<span><span class="co"># even works in base R (since R 3.0):</span></span>
<span><span class="va">our_data_1st</span><span class="op">[</span><span class="fu"><a href="https://rdrr.io/r/base/all.html" class="external-link">all</a></span><span class="op">(</span><span class="fu"><a href="../reference/antimicrobial_selectors.html">betalactams</a></span><span class="op">(</span><span class="op">)</span> <span class="op">==</span> <span class="st">"R"</span><span class="op">)</span>, <span class="op">]</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `betalactams()` using columns '<span style="font-weight: bold;">AMX</span>' (amoxicillin) and '<span style="font-weight: bold;">AMC</span>'</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `?betalactams()` using columns <span style="color: #00BB00; font-weight: bold;">AMX</span> (amoxicillin) and <span style="color: #00BB00; font-weight: bold;">AMC</span></span></span>
<span><span class="co">#&gt; (amoxicillin/clavulanic acid)</span></span>
<span><span class="co">#&gt; <span style="color: #949494;"># A tibble: 462 × 9</span></span></span>
<span><span class="co">#&gt; patient_id hospital date bacteria AMX AMC CIP GEN first</span></span>
@@ -696,9 +695,9 @@ previously mentioned antibiotic class selectors:</p>
<div class="sourceCode" id="cb16"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="fu"><a href="../reference/antibiogram.html">antibiogram</a></span><span class="op">(</span><span class="va">example_isolates</span>,</span>
<span> antibiotics <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fu"><a href="../reference/antimicrobial_selectors.html">aminoglycosides</a></span><span class="op">(</span><span class="op">)</span>, <span class="fu"><a href="../reference/antimicrobial_selectors.html">carbapenems</a></span><span class="op">(</span><span class="op">)</span><span class="op">)</span><span class="op">)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `aminoglycosides()` using columns '<span style="font-weight: bold;">GEN</span>' (gentamicin), '<span style="font-weight: bold;">TOB</span>' (tobramycin),</span></span>
<span><span class="co">#&gt; '<span style="font-weight: bold;">AMK</span>' (amikacin), and '<span style="font-weight: bold;">KAN</span>' (kanamycin)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `carbapenems()` using columns '<span style="font-weight: bold;">IPM</span>' (imipenem) and '<span style="font-weight: bold;">MEM</span>' (meropenem)</span></span></code></pre></div>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `?aminoglycosides()` using columns <span style="color: #00BB00; font-weight: bold;">GEN</span> (gentamicin), <span style="color: #00BB00; font-weight: bold;">TOB</span> (tobramycin),</span></span>
<span><span class="co">#&gt; <span style="color: #00BB00; font-weight: bold;">AMK</span> (amikacin), and <span style="color: #00BB00; font-weight: bold;">KAN</span> (kanamycin)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `?carbapenems()` using columns <span style="color: #00BB00; font-weight: bold;">IPM</span> (imipenem) and <span style="color: #00BB00; font-weight: bold;">MEM</span> (meropenem)</span></span></code></pre></div>
<table class="table">
<colgroup>
<col width="12%">
@@ -827,8 +826,8 @@ language to be Spanish using the <code>language</code> argument:</p>
<span> antibiotics <span class="op">=</span> <span class="fu"><a href="../reference/antimicrobial_selectors.html">aminoglycosides</a></span><span class="op">(</span><span class="op">)</span>,</span>
<span> ab_transform <span class="op">=</span> <span class="st">"name"</span>,</span>
<span> language <span class="op">=</span> <span class="st">"es"</span><span class="op">)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `aminoglycosides()` using columns '<span style="font-weight: bold;">GEN</span>' (gentamicin), '<span style="font-weight: bold;">TOB</span>' (tobramycin),</span></span>
<span><span class="co">#&gt; '<span style="font-weight: bold;">AMK</span>' (amikacin), and '<span style="font-weight: bold;">KAN</span>' (kanamycin)</span></span></code></pre></div>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `?aminoglycosides()` using columns <span style="color: #00BB00; font-weight: bold;">GEN</span> (gentamicin), <span style="color: #00BB00; font-weight: bold;">TOB</span> (tobramycin),</span></span>
<span><span class="co">#&gt; <span style="color: #00BB00; font-weight: bold;">AMK</span> (amikacin), and <span style="color: #00BB00; font-weight: bold;">KAN</span> (kanamycin)</span></span></code></pre></div>
<table class="table">
<colgroup>
<col width="15%">
@@ -953,9 +952,9 @@ argument must be used. This can be any column in the data, or e.g. an
<code class="sourceCode R"><span><span class="fu"><a href="../reference/antibiogram.html">antibiogram</a></span><span class="op">(</span><span class="va">example_isolates</span>,</span>
<span> antibiotics <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fu"><a href="../reference/antimicrobial_selectors.html">aminoglycosides</a></span><span class="op">(</span><span class="op">)</span>, <span class="fu"><a href="../reference/antimicrobial_selectors.html">carbapenems</a></span><span class="op">(</span><span class="op">)</span><span class="op">)</span>,</span>
<span> syndromic_group <span class="op">=</span> <span class="st">"ward"</span><span class="op">)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `aminoglycosides()` using columns '<span style="font-weight: bold;">GEN</span>' (gentamicin), '<span style="font-weight: bold;">TOB</span>' (tobramycin),</span></span>
<span><span class="co">#&gt; '<span style="font-weight: bold;">AMK</span>' (amikacin), and '<span style="font-weight: bold;">KAN</span>' (kanamycin)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `carbapenems()` using columns '<span style="font-weight: bold;">IPM</span>' (imipenem) and '<span style="font-weight: bold;">MEM</span>' (meropenem)</span></span></code></pre></div>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `?aminoglycosides()` using columns <span style="color: #00BB00; font-weight: bold;">GEN</span> (gentamicin), <span style="color: #00BB00; font-weight: bold;">TOB</span> (tobramycin),</span></span>
<span><span class="co">#&gt; <span style="color: #00BB00; font-weight: bold;">AMK</span> (amikacin), and <span style="color: #00BB00; font-weight: bold;">KAN</span> (kanamycin)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `?carbapenems()` using columns <span style="color: #00BB00; font-weight: bold;">IPM</span> (imipenem) and <span style="color: #00BB00; font-weight: bold;">MEM</span> (meropenem)</span></span></code></pre></div>
<table class="table">
<colgroup>
<col width="10%">
@@ -1282,10 +1281,9 @@ I (<code><a href="../reference/proportion.html">proportion_SI()</a></code>, equa
own:</p>
<div class="sourceCode" id="cb23"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">our_data_1st</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%&gt;%</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">#&gt; <span style="color: #00BBBB;"></span> `resistance()` (`?AMR::resistance()`) assumes the EUCAST guideline and thus</span></span>
<span><span class="co">#&gt; considers the 'I' category susceptible. Set the `guideline` argument or the</span></span>
<span><span class="co">#&gt; `AMR_guideline` option to either "CLSI" or "EUCAST", see AMR-options</span></span>
<span><span class="co">#&gt; (`?AMR::AMR-options`).</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> `?resistance()` assumes the EUCAST guideline and thus considers the 'I'</span></span>
<span><span class="co">#&gt; category susceptible. Set the `guideline` argument or the `AMR_guideline`</span></span>
<span><span class="co">#&gt; option to either "CLSI" or "EUCAST", see AMR-options.</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> This message will be shown once per session.</span></span>
<span><span class="co">#&gt; [1] 0.4203377</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

View File

@@ -3,7 +3,7 @@
**Note:** values on this page will change with every website update
since they are based on randomly created values and the page was written
in [R Markdown](https://rmarkdown.rstudio.com/). However, the
methodology remains unchanged. This page was generated on 20 March 2026.
methodology remains unchanged. This page was generated on 22 March 2026.
## Introduction
@@ -51,9 +51,9 @@ structure of your data generally look like this:
| date | patient_id | mo | AMX | CIP |
|:----------:|:----------:|:----------------:|:---:|:---:|
| 2026-03-20 | abcd | Escherichia coli | S | S |
| 2026-03-20 | abcd | Escherichia coli | S | R |
| 2026-03-20 | efgh | Escherichia coli | R | S |
| 2026-03-22 | abcd | Escherichia coli | S | S |
| 2026-03-22 | abcd | Escherichia coli | S | R |
| 2026-03-22 | efgh | Escherichia coli | R | S |
### Needed R packages
@@ -120,16 +120,16 @@ of input:
``` r
as.mo("Klebsiella pneumoniae")
#> Class 'mo'
#> Class <mo>
#> [1] B_KLBSL_PNMN
as.mo("K. pneumoniae")
#> Class 'mo'
#> Class <mo>
#> [1] B_KLBSL_PNMN
as.mo("KLEPNE")
#> Class 'mo'
#> Class <mo>
#> [1] B_KLBSL_PNMN
as.mo("KLPN")
#> Class 'mo'
#> Class <mo>
#> [1] B_KLBSL_PNMN
```
@@ -169,9 +169,8 @@ our_data$bacteria <- as.mo(our_data$bacteria, info = TRUE)
#> Retrieved values from the `microorganisms.codes` data set for "ESCCOL",
#> "KLEPNE", "STAAUR", and "STRPNE".
#> Microorganism translation was uncertain for four microorganisms. Run
#> `mo_uncertainties()` (`?AMR::mo_uncertainties()`) to review these
#> uncertainties, or use `add_custom_microorganisms()`
#> (`?AMR::add_custom_microorganisms()`) to add custom entries.
#> `?mo_uncertainties()` to review these uncertainties, or use
#> `?add_custom_microorganisms()` to add custom entries.
```
Apparently, there was some uncertainty about the translation to
@@ -180,8 +179,7 @@ taxonomic codes. Lets check this:
``` r
mo_uncertainties()
#> Matching scores are based on the resemblance between the input and the full
#> taxonomic name, and the pathogenicity in humans. See `mo_matching_score()`
#> (`?AMR::mo_matching_score()`).
#> taxonomic name, and the pathogenicity in humans. See `?mo_matching_score()`.
#> Colour keys: 0.000-0.549 0.550-0.649 0.650-0.749 0.750-1.000
#> -------------------------------------------------------------------------------
#> "E. coli" -> Escherichia coli (B_ESCHR_COLI, 0.688)
@@ -213,10 +211,9 @@ mo_uncertainties()
#> pseudintermedius (0.532), Serratia proteamaculans proteamaculans (0.526),
#> Streptococcus gallolyticus pasteurianus (0.526), Salmonella Portanigra (0.524),
#> and Streptococcus periodonticum (0.519)
#> Only the first 10 other matches of each record are shown. Run
#> `print(mo_uncertainties(), n = ...)` (`?AMR::mo_uncertainties()`) to view
#> more entries, or save `mo_uncertainties()` (`?AMR::mo_uncertainties()`) to an
#> object.
#> Only the first 10 other matches of each record are shown. Run ``
#> ?`print(mo_uncertainties(), n = ...)` `` to view more entries, or save
#> `?mo_uncertainties()` to an object.
```
Thats all good.
@@ -450,7 +447,8 @@ in:
``` r
our_data_1st %>%
select(date, aminoglycosides())
#> For `aminoglycosides()` using column 'GEN' (gentamicin)
#> For `?aminoglycosides()` using column GEN
#> (gentamicin)
#> # A tibble: 2,724 × 2
#> date GEN
#> <date> <sir>
@@ -468,7 +466,7 @@ our_data_1st %>%
our_data_1st %>%
select(bacteria, betalactams())
#> For `betalactams()` using columns 'AMX' (amoxicillin) and 'AMC'
#> For `?betalactams()` using columns AMX (amoxicillin) and AMC
#> (amoxicillin/clavulanic acid)
#> # A tibble: 2,724 × 3
#> bacteria AMX AMC
@@ -505,7 +503,8 @@ our_data_1st %>%
# filtering using AB selectors is also possible:
our_data_1st %>%
filter(any(aminoglycosides() == "R"))
#> For `aminoglycosides()` using column 'GEN' (gentamicin)
#> For `?aminoglycosides()` using column GEN
#> (gentamicin)
#> # A tibble: 981 × 9
#> patient_id hospital date bacteria AMX AMC CIP GEN first
#> <chr> <chr> <date> <mo> <sir> <sir> <sir> <sir> <lgl>
@@ -523,7 +522,7 @@ our_data_1st %>%
our_data_1st %>%
filter(all(betalactams() == "R"))
#> For `betalactams()` using columns 'AMX' (amoxicillin) and 'AMC'
#> For `?betalactams()` using columns AMX (amoxicillin) and AMC
#> (amoxicillin/clavulanic acid)
#> # A tibble: 462 × 9
#> patient_id hospital date bacteria AMX AMC CIP GEN first
@@ -542,7 +541,7 @@ our_data_1st %>%
# even works in base R (since R 3.0):
our_data_1st[all(betalactams() == "R"), ]
#> For `betalactams()` using columns 'AMX' (amoxicillin) and 'AMC'
#> For `?betalactams()` using columns AMX (amoxicillin) and AMC
#> (amoxicillin/clavulanic acid)
#> # A tibble: 462 × 9
#> patient_id hospital date bacteria AMX AMC CIP GEN first
@@ -625,9 +624,9 @@ antibiotic class selectors:
``` r
antibiogram(example_isolates,
antibiotics = c(aminoglycosides(), carbapenems()))
#> For `aminoglycosides()` using columns 'GEN' (gentamicin), 'TOB' (tobramycin),
#> 'AMK' (amikacin), and 'KAN' (kanamycin)
#> For `carbapenems()` using columns 'IPM' (imipenem) and 'MEM' (meropenem)
#> For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
#> AMK (amikacin), and KAN (kanamycin)
#> For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
```
| Pathogen | Amikacin | Gentamicin | Imipenem | Kanamycin | Meropenem | Tobramycin |
@@ -664,8 +663,8 @@ antibiogram(example_isolates,
antibiotics = aminoglycosides(),
ab_transform = "name",
language = "es")
#> For `aminoglycosides()` using columns 'GEN' (gentamicin), 'TOB' (tobramycin),
#> 'AMK' (amikacin), and 'KAN' (kanamycin)
#> For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
#> AMK (amikacin), and KAN (kanamycin)
```
| Patógeno | Amikacina | Gentamicina | Kanamicina | Tobramicina |
@@ -708,9 +707,9 @@ on certain columns:
antibiogram(example_isolates,
antibiotics = c(aminoglycosides(), carbapenems()),
syndromic_group = "ward")
#> For `aminoglycosides()` using columns 'GEN' (gentamicin), 'TOB' (tobramycin),
#> 'AMK' (amikacin), and 'KAN' (kanamycin)
#> For `carbapenems()` using columns 'IPM' (imipenem) and 'MEM' (meropenem)
#> For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
#> AMK (amikacin), and KAN (kanamycin)
#> For `?carbapenems()` using columns IPM (imipenem) and MEM (meropenem)
```
| Syndromic Group | Pathogen | Amikacin | Gentamicin | Imipenem | Kanamycin | Meropenem | Tobramycin |
@@ -841,10 +840,9 @@ These functions can be used on their own:
``` r
our_data_1st %>% resistance(AMX)
#> `resistance()` (`?AMR::resistance()`) assumes the EUCAST guideline and thus
#> considers the 'I' category susceptible. Set the `guideline` argument or the
#> `AMR_guideline` option to either "CLSI" or "EUCAST", see AMR-options
#> (`?AMR::AMR-options`).
#> `?resistance()` assumes the EUCAST guideline and thus considers the 'I'
#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
#> option to either "CLSI" or "EUCAST", see AMR-options.
#> This message will be shown once per session.
#> [1] 0.4203377
```

View File

@@ -30,7 +30,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="">3.0.1.9036</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9037</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">

View File

@@ -30,7 +30,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="">3.0.1.9036</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9037</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">
@@ -179,14 +179,13 @@ package.</p>
<span> mo <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/factor.html" class="external-link">as.factor</a></span><span class="op">(</span><span class="fu"><a href="../reference/mo_property.html">mo_gramstain</a></span><span class="op">(</span><span class="va">mo</span><span class="op">)</span><span class="op">)</span><span class="op">)</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%&gt;%</a></span></span>
<span> <span class="co"># drop NAs - the ones without a Gramstain (fungi, etc.)</span></span>
<span> <span class="fu">drop_na</span><span class="op">(</span><span class="op">)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `aminoglycosides()` using columns '<span style="font-weight: bold;">GEN</span>' (gentamicin), '<span style="font-weight: bold;">TOB</span>' (tobramycin),</span></span>
<span><span class="co">#&gt; '<span style="font-weight: bold;">AMK</span>' (amikacin), and '<span style="font-weight: bold;">KAN</span>' (kanamycin)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `betalactams()` using columns '<span style="font-weight: bold;">PEN</span>' (benzylpenicillin), '<span style="font-weight: bold;">OXA</span>'</span></span>
<span><span class="co">#&gt; (oxacillin), '<span style="font-weight: bold;">FLC</span>' (flucloxacillin), '<span style="font-weight: bold;">AMX</span>' (amoxicillin), '<span style="font-weight: bold;">AMC</span>'</span></span>
<span><span class="co">#&gt; (amoxicillin/clavulanic acid), '<span style="font-weight: bold;">AMP</span>' (ampicillin), '<span style="font-weight: bold;">TZP</span>'</span></span>
<span><span class="co">#&gt; (piperacillin/tazobactam), '<span style="font-weight: bold;">CZO</span>' (cefazolin), '<span style="font-weight: bold;">FEP</span>' (cefepime), '<span style="font-weight: bold;">CXM</span>'</span></span>
<span><span class="co">#&gt; (cefuroxime), '<span style="font-weight: bold;">FOX</span>' (cefoxitin), '<span style="font-weight: bold;">CTX</span>' (cefotaxime), '<span style="font-weight: bold;">CAZ</span>' (ceftazidime),</span></span>
<span><span class="co">#&gt; '<span style="font-weight: bold;">CRO</span>' (ceftriaxone), '<span style="font-weight: bold;">IPM</span>' (imipenem), and '<span style="font-weight: bold;">MEM</span>' (meropenem)</span></span></code></pre></div>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `?aminoglycosides()` using columns <span style="color: #00BB00; font-weight: bold;">GEN</span> (gentamicin), <span style="color: #00BB00; font-weight: bold;">TOB</span> (tobramycin),</span></span>
<span><span class="co">#&gt; <span style="color: #00BB00; font-weight: bold;">AMK</span> (amikacin), and <span style="color: #00BB00; font-weight: bold;">KAN</span> (kanamycin)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `?betalactams()` using columns <span style="color: #00BB00; font-weight: bold;">PEN</span> (benzylpenicillin), <span style="color: #00BB00; font-weight: bold;">OXA</span> (oxacillin),</span></span>
<span><span class="co">#&gt; <span style="color: #00BB00; font-weight: bold;">FLC</span> (flucloxacillin), <span style="color: #00BB00; font-weight: bold;">AMX</span> (amoxicillin), <span style="color: #00BB00; font-weight: bold;">AMC</span> (amoxicillin/clavulanic acid),</span></span>
<span><span class="co">#&gt; <span style="color: #00BB00; font-weight: bold;">AMP</span> (ampicillin), <span style="color: #00BB00; font-weight: bold;">TZP</span> (piperacillin/tazobactam), <span style="color: #00BB00; font-weight: bold;">CZO</span> (cefazolin), <span style="color: #00BB00; font-weight: bold;">FEP</span></span></span>
<span><span class="co">#&gt; (cefepime), <span style="color: #00BB00; font-weight: bold;">CXM</span> (cefuroxime), <span style="color: #00BB00; font-weight: bold;">FOX</span> (cefoxitin), <span style="color: #00BB00; font-weight: bold;">CTX</span> (cefotaxime), <span style="color: #00BB00; font-weight: bold;">CAZ</span></span></span>
<span><span class="co">#&gt; (ceftazidime), <span style="color: #00BB00; font-weight: bold;">CRO</span> (ceftriaxone), <span style="color: #00BB00; font-weight: bold;">IPM</span> (imipenem), and <span style="color: #00BB00; font-weight: bold;">MEM</span> (meropenem)</span></span></code></pre></div>
<p><strong>Explanation:</strong></p>
<ul>
<li>
@@ -227,14 +226,13 @@ we have with <code>step_corr()</code>, the necessary parameters can be
estimated from a training set using <code>prep()</code>:</p>
<div class="sourceCode" id="cb4"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="fu">prep</span><span class="op">(</span><span class="va">resistance_recipe</span><span class="op">)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `aminoglycosides()` using columns '<span style="font-weight: bold;">GEN</span>' (gentamicin), '<span style="font-weight: bold;">TOB</span>' (tobramycin),</span></span>
<span><span class="co">#&gt; '<span style="font-weight: bold;">AMK</span>' (amikacin), and '<span style="font-weight: bold;">KAN</span>' (kanamycin)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `betalactams()` using columns '<span style="font-weight: bold;">PEN</span>' (benzylpenicillin), '<span style="font-weight: bold;">OXA</span>'</span></span>
<span><span class="co">#&gt; (oxacillin), '<span style="font-weight: bold;">FLC</span>' (flucloxacillin), '<span style="font-weight: bold;">AMX</span>' (amoxicillin), '<span style="font-weight: bold;">AMC</span>'</span></span>
<span><span class="co">#&gt; (amoxicillin/clavulanic acid), '<span style="font-weight: bold;">AMP</span>' (ampicillin), '<span style="font-weight: bold;">TZP</span>'</span></span>
<span><span class="co">#&gt; (piperacillin/tazobactam), '<span style="font-weight: bold;">CZO</span>' (cefazolin), '<span style="font-weight: bold;">FEP</span>' (cefepime), '<span style="font-weight: bold;">CXM</span>'</span></span>
<span><span class="co">#&gt; (cefuroxime), '<span style="font-weight: bold;">FOX</span>' (cefoxitin), '<span style="font-weight: bold;">CTX</span>' (cefotaxime), '<span style="font-weight: bold;">CAZ</span>' (ceftazidime),</span></span>
<span><span class="co">#&gt; '<span style="font-weight: bold;">CRO</span>' (ceftriaxone), '<span style="font-weight: bold;">IPM</span>' (imipenem), and '<span style="font-weight: bold;">MEM</span>' (meropenem)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `?aminoglycosides()` using columns <span style="color: #00BB00; font-weight: bold;">GEN</span> (gentamicin), <span style="color: #00BB00; font-weight: bold;">TOB</span> (tobramycin),</span></span>
<span><span class="co">#&gt; <span style="color: #00BB00; font-weight: bold;">AMK</span> (amikacin), and <span style="color: #00BB00; font-weight: bold;">KAN</span> (kanamycin)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> For `?betalactams()` using columns <span style="color: #00BB00; font-weight: bold;">PEN</span> (benzylpenicillin), <span style="color: #00BB00; font-weight: bold;">OXA</span> (oxacillin),</span></span>
<span><span class="co">#&gt; <span style="color: #00BB00; font-weight: bold;">FLC</span> (flucloxacillin), <span style="color: #00BB00; font-weight: bold;">AMX</span> (amoxicillin), <span style="color: #00BB00; font-weight: bold;">AMC</span> (amoxicillin/clavulanic acid),</span></span>
<span><span class="co">#&gt; <span style="color: #00BB00; font-weight: bold;">AMP</span> (ampicillin), <span style="color: #00BB00; font-weight: bold;">TZP</span> (piperacillin/tazobactam), <span style="color: #00BB00; font-weight: bold;">CZO</span> (cefazolin), <span style="color: #00BB00; font-weight: bold;">FEP</span></span></span>
<span><span class="co">#&gt; (cefepime), <span style="color: #00BB00; font-weight: bold;">CXM</span> (cefuroxime), <span style="color: #00BB00; font-weight: bold;">FOX</span> (cefoxitin), <span style="color: #00BB00; font-weight: bold;">CTX</span> (cefotaxime), <span style="color: #00BB00; font-weight: bold;">CAZ</span></span></span>
<span><span class="co">#&gt; (ceftazidime), <span style="color: #00BB00; font-weight: bold;">CRO</span> (ceftriaxone), <span style="color: #00BB00; font-weight: bold;">IPM</span> (imipenem), and <span style="color: #00BB00; font-weight: bold;">MEM</span> (meropenem)</span></span>
<span><span class="co">#&gt; </span></span>
<span><span class="co">#&gt; </span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;">──</span> <span style="font-weight: bold;">Recipe</span> <span style="color: #00BBBB;">──────────────────────────────────────────────────────────────────────</span></span></span>
@@ -749,10 +747,9 @@ into a structured time-series format.</p>
<span> .groups <span class="op">=</span> <span class="st">"drop"</span><span class="op">)</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%&gt;%</a></span> </span>
<span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/filter.html" class="external-link">filter</a></span><span class="op">(</span><span class="op">!</span><span class="fu"><a href="https://rdrr.io/r/base/NA.html" class="external-link">is.na</a></span><span class="op">(</span><span class="va">res_AMX</span><span class="op">)</span> <span class="op">&amp;</span> <span class="op">!</span><span class="fu"><a href="https://rdrr.io/r/base/NA.html" class="external-link">is.na</a></span><span class="op">(</span><span class="va">res_AMC</span><span class="op">)</span> <span class="op">&amp;</span> <span class="op">!</span><span class="fu"><a href="https://rdrr.io/r/base/NA.html" class="external-link">is.na</a></span><span class="op">(</span><span class="va">res_CIP</span><span class="op">)</span><span class="op">)</span> <span class="co"># Drop missing values</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> Using column '<span style="font-weight: bold;">mo</span>' as input for `col_mo`.</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> `resistance()` (`?AMR::resistance()`) assumes the EUCAST guideline and thus</span></span>
<span><span class="co">#&gt; considers the 'I' category susceptible. Set the `guideline` argument or the</span></span>
<span><span class="co">#&gt; `AMR_guideline` option to either "CLSI" or "EUCAST", see AMR-options</span></span>
<span><span class="co">#&gt; (`?AMR::AMR-options`).</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> `?resistance()` assumes the EUCAST guideline and thus considers the 'I'</span></span>
<span><span class="co">#&gt; category susceptible. Set the `guideline` argument or the `AMR_guideline`</span></span>
<span><span class="co">#&gt; option to either "CLSI" or "EUCAST", see AMR-options.</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> This message will be shown once per session.</span></span>
<span></span>
<span><span class="va">data_time</span></span>

View File

@@ -94,14 +94,13 @@ data <- example_isolates %>%
mo = as.factor(mo_gramstain(mo))) %>%
# drop NAs - the ones without a Gramstain (fungi, etc.)
drop_na()
#> For `aminoglycosides()` using columns 'GEN' (gentamicin), 'TOB' (tobramycin),
#> 'AMK' (amikacin), and 'KAN' (kanamycin)
#> For `betalactams()` using columns 'PEN' (benzylpenicillin), 'OXA'
#> (oxacillin), 'FLC' (flucloxacillin), 'AMX' (amoxicillin), 'AMC'
#> (amoxicillin/clavulanic acid), 'AMP' (ampicillin), 'TZP'
#> (piperacillin/tazobactam), 'CZO' (cefazolin), 'FEP' (cefepime), 'CXM'
#> (cefuroxime), 'FOX' (cefoxitin), 'CTX' (cefotaxime), 'CAZ' (ceftazidime),
#> 'CRO' (ceftriaxone), 'IPM' (imipenem), and 'MEM' (meropenem)
#> For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
#> AMK (amikacin), and KAN (kanamycin)
#> For `?betalactams()` using columns PEN (benzylpenicillin), OXA (oxacillin),
#> FLC (flucloxacillin), AMX (amoxicillin), AMC (amoxicillin/clavulanic acid),
#> AMP (ampicillin), TZP (piperacillin/tazobactam), CZO (cefazolin), FEP
#> (cefepime), CXM (cefuroxime), FOX (cefoxitin), CTX (cefotaxime), CAZ
#> (ceftazidime), CRO (ceftriaxone), IPM (imipenem), and MEM (meropenem)
```
**Explanation:**
@@ -144,14 +143,13 @@ a training set using `prep()`:
``` r
prep(resistance_recipe)
#> For `aminoglycosides()` using columns 'GEN' (gentamicin), 'TOB' (tobramycin),
#> 'AMK' (amikacin), and 'KAN' (kanamycin)
#> For `betalactams()` using columns 'PEN' (benzylpenicillin), 'OXA'
#> (oxacillin), 'FLC' (flucloxacillin), 'AMX' (amoxicillin), 'AMC'
#> (amoxicillin/clavulanic acid), 'AMP' (ampicillin), 'TZP'
#> (piperacillin/tazobactam), 'CZO' (cefazolin), 'FEP' (cefepime), 'CXM'
#> (cefuroxime), 'FOX' (cefoxitin), 'CTX' (cefotaxime), 'CAZ' (ceftazidime),
#> 'CRO' (ceftriaxone), 'IPM' (imipenem), and 'MEM' (meropenem)
#> For `?aminoglycosides()` using columns GEN (gentamicin), TOB (tobramycin),
#> AMK (amikacin), and KAN (kanamycin)
#> For `?betalactams()` using columns PEN (benzylpenicillin), OXA (oxacillin),
#> FLC (flucloxacillin), AMX (amoxicillin), AMC (amoxicillin/clavulanic acid),
#> AMP (ampicillin), TZP (piperacillin/tazobactam), CZO (cefazolin), FEP
#> (cefepime), CXM (cefuroxime), FOX (cefoxitin), CTX (cefotaxime), CAZ
#> (ceftazidime), CRO (ceftriaxone), IPM (imipenem), and MEM (meropenem)
#>
#>
#> ── Recipe ──────────────────────────────────────────────────────────────────────
@@ -647,10 +645,9 @@ data_time <- example_isolates %>%
.groups = "drop") %>%
filter(!is.na(res_AMX) & !is.na(res_AMC) & !is.na(res_CIP)) # Drop missing values
#> Using column 'mo' as input for `col_mo`.
#> `resistance()` (`?AMR::resistance()`) assumes the EUCAST guideline and thus
#> considers the 'I' category susceptible. Set the `guideline` argument or the
#> `AMR_guideline` option to either "CLSI" or "EUCAST", see AMR-options
#> (`?AMR::AMR-options`).
#> `?resistance()` assumes the EUCAST guideline and thus considers the 'I'
#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
#> option to either "CLSI" or "EUCAST", see AMR-options.
#> This message will be shown once per session.
data_time

View File

@@ -30,7 +30,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="">3.0.1.9036</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9037</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">

View File

@@ -30,7 +30,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="">3.0.1.9036</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9037</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">
@@ -163,10 +163,9 @@ per taxonomic order and genus:</p>
<span> <span class="va">order</span>, <span class="va">genus</span>, <span class="va">AMC</span>, <span class="va">CXM</span>, <span class="va">CTX</span>,</span>
<span> <span class="va">CAZ</span>, <span class="va">GEN</span>, <span class="va">TOB</span>, <span class="va">TMP</span>, <span class="va">SXT</span></span>
<span> <span class="op">)</span> <span class="co"># and select only relevant columns</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> `resistance()` (`?AMR::resistance()`) assumes the EUCAST guideline and thus</span></span>
<span><span class="co">#&gt; considers the 'I' category susceptible. Set the `guideline` argument or the</span></span>
<span><span class="co">#&gt; `AMR_guideline` option to either "CLSI" or "EUCAST", see AMR-options</span></span>
<span><span class="co">#&gt; (`?AMR::AMR-options`).</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> `?resistance()` assumes the EUCAST guideline and thus considers the 'I'</span></span>
<span><span class="co">#&gt; category susceptible. Set the `guideline` argument or the `AMR_guideline`</span></span>
<span><span class="co">#&gt; option to either "CLSI" or "EUCAST", see AMR-options.</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> This message will be shown once per session.</span></span>
<span></span>
<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">resistance_data</span><span class="op">)</span></span>

View File

@@ -78,10 +78,9 @@ resistance_data <- example_isolates %>%
order, genus, AMC, CXM, CTX,
CAZ, GEN, TOB, TMP, SXT
) # and select only relevant columns
#> `resistance()` (`?AMR::resistance()`) assumes the EUCAST guideline and thus
#> considers the 'I' category susceptible. Set the `guideline` argument or the
#> `AMR_guideline` option to either "CLSI" or "EUCAST", see AMR-options
#> (`?AMR::AMR-options`).
#> `?resistance()` assumes the EUCAST guideline and thus considers the 'I'
#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
#> option to either "CLSI" or "EUCAST", see AMR-options.
#> This message will be shown once per session.
head(resistance_data)

View File

@@ -30,7 +30,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="">3.0.1.9036</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9037</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">
@@ -255,10 +255,9 @@ Longest: 40</p>
<code class="sourceCode R"><span><span class="co"># our transformed antibiotic columns</span></span>
<span><span class="co"># amoxicillin/clavulanic acid (J01CR02) as an example</span></span>
<span><span class="va">data</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%&gt;%</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">AMC_ND2</span><span class="op">)</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> `susceptibility()` (`?AMR::susceptibility()`) assumes the EUCAST guideline</span></span>
<span><span class="co">#&gt; and thus considers the 'I' category susceptible. Set the `guideline` argument</span></span>
<span><span class="co">#&gt; or the `AMR_guideline` option to either "CLSI" or "EUCAST", see AMR-options</span></span>
<span><span class="co">#&gt; (`?AMR::AMR-options`).</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> `?susceptibility()` assumes the EUCAST guideline and thus considers the 'I'</span></span>
<span><span class="co">#&gt; category susceptible. Set the `guideline` argument or the `AMR_guideline`</span></span>
<span><span class="co">#&gt; option to either "CLSI" or "EUCAST", see AMR-options.</span></span>
<span><span class="co">#&gt; <span style="color: #00BBBB;"></span> This message will be shown once per session.</span></span></code></pre></div>
<p><strong>Frequency table</strong></p>
<p>Class: factor &gt; ordered &gt; sir (numeric)<br>

View File

@@ -101,10 +101,9 @@ Longest: 40
# our transformed antibiotic columns
# amoxicillin/clavulanic acid (J01CR02) as an example
data %>% freq(AMC_ND2)
#> `susceptibility()` (`?AMR::susceptibility()`) assumes the EUCAST guideline
#> and thus considers the 'I' category susceptible. Set the `guideline` argument
#> or the `AMR_guideline` option to either "CLSI" or "EUCAST", see AMR-options
#> (`?AMR::AMR-options`).
#> `?susceptibility()` assumes the EUCAST guideline and thus considers the 'I'
#> category susceptible. Set the `guideline` argument or the `AMR_guideline`
#> option to either "CLSI" or "EUCAST", see AMR-options.
#> This message will be shown once per session.
```

View File

@@ -30,7 +30,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="">3.0.1.9036</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9037</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">

View File

@@ -30,7 +30,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="">3.0.1.9036</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9037</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">
@@ -80,7 +80,7 @@
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.svg" class="logo" alt=""><h1>Download data sets for download / own use</h1>
<h4 data-toc-skip class="date">20 March 2026</h4>
<h4 data-toc-skip class="date">22 March 2026</h4>
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/main/vignettes/datasets.Rmd" class="external-link"><code>vignettes/datasets.Rmd</code></a></small>
<div class="d-none name"><code>datasets.Rmd</code></div>

View File

@@ -7,7 +7,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="">3.0.1.9036</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.0.1.9037</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">