mirror of
https://github.com/msberends/AMR.git
synced 2025-07-20 16:13:21 +02:00
cli-147-2091
This commit is contained in:
@ -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="">2.1.1.9051</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.1.1.9052</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">
|
||||
@ -242,7 +242,7 @@
|
||||
<span id="cb1-13"><a href="#cb1-13" tabindex="-1"></a><span class="co">#> 10 16 A</span></span></code></pre><p></p></div>
|
||||
<p>All so-called <a href="https://rdrr.io/r/base/groupGeneric.html" class="external-link">group generic functions</a> are implemented for the MIC class (such as <code>!</code>, <code>!=</code>, <code><</code>, <code>>=</code>, <code><a href="https://rdrr.io/r/base/Log.html" class="external-link">exp()</a></code>, <code><a href="https://rdrr.io/r/base/Log.html" class="external-link">log2()</a></code>). Some functions of the <code>stats</code> package are also implemented (such as <code><a href="https://rdrr.io/r/stats/quantile.html" class="external-link">quantile()</a></code>, <code><a href="https://rdrr.io/r/stats/median.html" class="external-link">median()</a></code>, <code><a href="https://rdrr.io/r/stats/fivenum.html" class="external-link">fivenum()</a></code>). Since <code><a href="https://rdrr.io/r/stats/sd.html" class="external-link">sd()</a></code> and <code><a href="https://rdrr.io/r/stats/cor.html" class="external-link">var()</a></code> are non-generic functions, these could not be extended. Use <code><a href="https://rdrr.io/r/stats/mad.html" class="external-link">mad()</a></code> as an alternative, or use e.g. <code>sd(as.numeric(x))</code> where <code>x</code> is your vector of MIC values.</p>
|
||||
<p>Using <code><a href="https://rdrr.io/r/base/double.html" class="external-link">as.double()</a></code> or <code><a href="https://rdrr.io/r/base/numeric.html" class="external-link">as.numeric()</a></code> on MIC values will remove the operators and return a numeric vector. Do <strong>not</strong> use <code><a href="https://rdrr.io/r/base/integer.html" class="external-link">as.integer()</a></code> on MIC values as by the <span style="R">R</span> convention on <a href="https://rdrr.io/r/base/factor.html" class="external-link">factor</a>s, it will return the index of the factor levels (which is often useless for regular users).</p>
|
||||
<p>Use <code><a href="https://rdrr.io/r/base/droplevels.html" class="external-link">droplevels()</a></code> to drop unused levels. At default, it will return a plain factor. Use <code>droplevels(..., as.mic = TRUE)</code> to maintain the <code>mic</code> class.</p>
|
||||
<p>Use <code><a href="https://rdatatable.gitlab.io/data.table/reference/fdroplevels.html" class="external-link">droplevels()</a></code> to drop unused levels. At default, it will return a plain factor. Use <code>droplevels(..., as.mic = TRUE)</code> to maintain the <code>mic</code> class.</p>
|
||||
<p>With <code>rescale_mic()</code>, existing MIC ranges can be limited to a defined range of MIC values. This can be useful to better compare MIC distributions.</p>
|
||||
<p>For <code>ggplot2</code>, use one of the <code><a href="plot.html">scale_*_mic()</a></code> functions to plot MIC values. They allows custom MIC ranges and to plot intermediate log2 levels for missing MIC values.</p>
|
||||
<p><code>NA_mic_</code> is a missing value of the new <code>mic</code> class, analogous to e.g. base <span style="R">R</span>'s <code><a href="https://rdrr.io/r/base/NA.html" class="external-link">NA_character_</a></code>.</p>
|
||||
@ -292,9 +292,7 @@
|
||||
<span class="r-msg co"><span class="r-pr">#></span> microorganisms might not have breakpoints for each antimicrobial drug in</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> EUCAST 2024.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMX' (amoxicillin), EUCAST 2024...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> NOTE </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for amoxicillin (AMX) in Streptococcus</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> pneumoniae - assuming body site 'Meningitis'.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'sir'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] R</span>
|
||||
<span class="r-in"><span><span class="fu"><a href="as.sir.html">as.sir</a></span><span class="op">(</span></span></span>
|
||||
@ -308,9 +306,7 @@
|
||||
<span class="r-msg co"><span class="r-pr">#></span> microorganisms might not have breakpoints for each antimicrobial drug in</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> EUCAST 2024.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMX' (amoxicillin), EUCAST 2024...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> NOTE </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for amoxicillin (AMX) in Streptococcus</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> pneumoniae - assuming body site 'Meningitis'.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'sir'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] S R R R</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
|
Reference in New Issue
Block a user