<codeclass="sourceCode R"><span><spanclass="va">our_data</span><spanclass="op">$</span><spanclass="va">bacteria</span><spanclass="op"><-</span><spanclass="fu"><ahref="../reference/as.mo.html">as.mo</a></span><spanclass="op">(</span><spanclass="va">our_data</span><spanclass="op">$</span><spanclass="va">bacteria</span>, info <spanclass="op">=</span><spanclass="cn">TRUE</span><spanclass="op">)</span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ Retrieved values from the </span><spanstyle="color: #0000BB; background-color: #444444;">`microorganisms.codes`</span><spanstyle="color: #0000BB;"> data set for "ESCCOL",</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ Retrieved values from the `microorganisms.codes` data set for "ESCCOL",</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#> "KLEPNE", "STAAUR", and "STRPNE".</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ Microorganism translation was uncertain for four microorganisms. Run</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#></span><spanstyle="color: #0000BB; background-color: #444444;">`mo_uncertainties()`</span><spanstyle="color: #0000BB;"> to review these uncertainties, or use</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#></span><spanstyle="color: #0000BB; background-color: #444444;">`add_custom_microorganisms()`</span><spanstyle="color: #0000BB;"> to add custom entries.</span></span></span></code></pre></div>
<span><spanclass="co"><spanstyle="color: #0000BB;">#>`mo_uncertainties()` to review these uncertainties, or use</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#>`add_custom_microorganisms()` to add custom entries.</span></span></span></code></pre></div>
<p>Apparently, there was some uncertainty about the translation to
<span><spanclass="co">#><spanstyle="color: #0000BB;">Matching scores are based on the resemblance between the input and the full</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#> taxonomic name, and the pathogenicity in humans. See </span><spanstyle="color: #0000BB; background-color: #444444;">`?mo_matching_score`</span><spanstyle="color: #0000BB;">.</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#> taxonomic name, and the pathogenicity in humans. See `?mo_matching_score`.</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#> Only the first 10 other matches of each record are shown. Run</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#></span><spanstyle="color: #0000BB; background-color: #444444;">`print(mo_uncertainties(), n = ...)`</span><spanstyle="color: #0000BB;"> to view more entries, or save</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#></span><spanstyle="color: #0000BB; background-color: #444444;">`mo_uncertainties()`</span><spanstyle="color: #0000BB;"> to an object.</span></span></span></code></pre></div>
<span><spanclass="co"><spanstyle="color: #0000BB;">#>`print(mo_uncertainties(), n = ...)` to view more entries, or save</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#>`mo_uncertainties()` to an object.</span></span></span></code></pre></div>
<p>That’s all good.</p>
</div>
<divclass="section level3">
@@ -400,11 +400,11 @@ the methods on the <code><a href="../reference/first_isolate.html">first_isolate
<span><spanclass="co">#><spanstyle="color: #BB0000;">ℹ Determining first isolates using an episode length of </span><spanstyle="color: #BB0000; font-weight: bold;">365 days</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ Using column '</span><spanstyle="color: #0000BB; font-weight: bold;">bacteria</span><spanstyle="color: #0000BB;">' as input for </span><spanstyle="color: #0000BB; background-color: #444444;">`col_mo`</span><spanstyle="color: #0000BB;">.</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ Using column '</span><spanstyle="color: #0000BB; font-weight: bold;">bacteria</span><spanstyle="color: #0000BB;">' as input for `col_mo`.</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ Column '</span><spanstyle="color: #0000BB; font-weight: bold;">first</span><spanstyle="color: #0000BB;">' is SIR eligible (despite only having empty values), since</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#> it seems to be cefozopran (ZOP)</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ Using column '</span><spanstyle="color: #0000BB; font-weight: bold;">date</span><spanstyle="color: #0000BB;">' as input for </span><spanstyle="color: #0000BB; background-color: #444444;">`col_date`</span><spanstyle="color: #0000BB;">.</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ Using column '</span><spanstyle="color: #0000BB; font-weight: bold;">patient_id</span><spanstyle="color: #0000BB;">' as input for </span><spanstyle="color: #0000BB; background-color: #444444;">`col_patient_id`</span><spanstyle="color: #0000BB;">.</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ Using column '</span><spanstyle="color: #0000BB; font-weight: bold;">date</span><spanstyle="color: #0000BB;">' as input for `col_date`.</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ Using column '</span><spanstyle="color: #0000BB; font-weight: bold;">patient_id</span><spanstyle="color: #0000BB;">' as input for `col_patient_id`.</span></span></span>
<span><spanclass="co">#><spanstyle="color: #BB0000;">ℹ Basing inclusion on all antimicrobial results, using a points threshold</span></span></span>
<span><spanclass="co"><spanstyle="color: #BB0000;">#> of 2</span></span></span>
<span><spanclass="co">#><spanstyle="color: #BBBBBB;">=> Found </span><spanstyle="color: #BBBBBB; font-weight: bold;">2,724 'phenotype-based' first isolates</span><spanstyle="color: #BBBBBB;"> (90.8% of total where a</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ</span><spanstyle="color: #0000BB; background-color: #444444;">`resistance()`</span><spanstyle="color: #0000BB;"> assumes the EUCAST guideline and thus considers the 'I'</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#> category susceptible. Set the </span><spanstyle="color: #0000BB; background-color: #444444;">`guideline`</span><spanstyle="color: #0000BB;"> argument or the </span><spanstyle="color: #0000BB; background-color: #444444;">`AMR_guideline`</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#> option to either "CLSI" or "EUCAST", see </span><spanstyle="color: #0000BB; background-color: #444444;">`?AMR-options`</span><spanstyle="color: #0000BB;">.</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ`resistance()` assumes the EUCAST guideline and thus considers the 'I'</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#> category susceptible. Set the `guideline` argument or the `AMR_guideline`</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#> option to either "CLSI" or "EUCAST", see `?AMR-options`.</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ This message will be shown once per session.</span></span></span>
<p>Or can be used in conjunction with <code><ahref="https://dplyr.tidyverse.org/reference/group_by.html"class="external-link">group_by()</a></code> and
<span> mo <spanclass="op">=</span><spanclass="fu"><ahref="https://rdrr.io/r/base/factor.html"class="external-link">as.factor</a></span><spanclass="op">(</span><spanclass="fu"><ahref="../reference/mo_property.html">mo_gramstain</a></span><spanclass="op">(</span><spanclass="va">mo</span><spanclass="op">)</span><spanclass="op">)</span><spanclass="op">)</span><spanclass="op"><ahref="https://magrittr.tidyverse.org/reference/pipe.html"class="external-link">%>%</a></span></span>
<span><spanclass="co"># drop NAs - the ones without a Gramstain (fungi, etc.)</span></span>
<span><spanclass="fu"><ahref="https://dplyr.tidyverse.org/reference/filter.html"class="external-link">filter</a></span><spanclass="op">(</span><spanclass="op">!</span><spanclass="fu"><ahref="https://rdrr.io/r/base/NA.html"class="external-link">is.na</a></span><spanclass="op">(</span><spanclass="va">res_AMX</span><spanclass="op">)</span><spanclass="op">&</span><spanclass="op">!</span><spanclass="fu"><ahref="https://rdrr.io/r/base/NA.html"class="external-link">is.na</a></span><spanclass="op">(</span><spanclass="va">res_AMC</span><spanclass="op">)</span><spanclass="op">&</span><spanclass="op">!</span><spanclass="fu"><ahref="https://rdrr.io/r/base/NA.html"class="external-link">is.na</a></span><spanclass="op">(</span><spanclass="va">res_CIP</span><spanclass="op">)</span><spanclass="op">)</span><spanclass="co"># Drop missing values</span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ Using column '</span><spanstyle="color: #0000BB; font-weight: bold;">mo</span><spanstyle="color: #0000BB;">' as input for </span><spanstyle="color: #0000BB; background-color: #444444;">`col_mo`</span><spanstyle="color: #0000BB;">.</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ</span><spanstyle="color: #0000BB; background-color: #444444;">`resistance()`</span><spanstyle="color: #0000BB;"> assumes the EUCAST guideline and thus considers the 'I'</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#> category susceptible. Set the </span><spanstyle="color: #0000BB; background-color: #444444;">`guideline`</span><spanstyle="color: #0000BB;"> argument or the </span><spanstyle="color: #0000BB; background-color: #444444;">`AMR_guideline`</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#> option to either "CLSI" or "EUCAST", see </span><spanstyle="color: #0000BB; background-color: #444444;">`?AMR-options`</span><spanstyle="color: #0000BB;">.</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ Using column '</span><spanstyle="color: #0000BB; font-weight: bold;">mo</span><spanstyle="color: #0000BB;">' as input for `col_mo`.</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ`resistance()` assumes the EUCAST guideline and thus considers the 'I'</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#> category susceptible. Set the `guideline` argument or the `AMR_guideline`</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#> option to either "CLSI" or "EUCAST", see `?AMR-options`.</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ This message will be shown once per session.</span></span></span>
<span><spanclass="op">)</span><spanclass="co"># and select only relevant columns</span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ</span><spanstyle="color: #0000BB; background-color: #444444;">`resistance()`</span><spanstyle="color: #0000BB;"> assumes the EUCAST guideline and thus considers the 'I'</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#> category susceptible. Set the </span><spanstyle="color: #0000BB; background-color: #444444;">`guideline`</span><spanstyle="color: #0000BB;"> argument or the </span><spanstyle="color: #0000BB; background-color: #444444;">`AMR_guideline`</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#> option to either "CLSI" or "EUCAST", see </span><spanstyle="color: #0000BB; background-color: #444444;">`?AMR-options`</span><spanstyle="color: #0000BB;">.</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ`resistance()` assumes the EUCAST guideline and thus considers the 'I'</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#> category susceptible. Set the `guideline` argument or the `AMR_guideline`</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#> option to either "CLSI" or "EUCAST", see `?AMR-options`.</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ This message will be shown once per session.</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ</span><spanstyle="color: #0000BB; background-color: #444444;">`susceptibility()`</span><spanstyle="color: #0000BB;"> assumes the EUCAST guideline and thus considers the</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#> 'I' category susceptible. Set the </span><spanstyle="color: #0000BB; background-color: #444444;">`guideline`</span><spanstyle="color: #0000BB;"> argument or the</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#></span><spanstyle="color: #0000BB; background-color: #444444;">`AMR_guideline`</span><spanstyle="color: #0000BB;"> option to either "CLSI" or "EUCAST", see </span><spanstyle="color: #0000BB; background-color: #444444;">`?AMR-options`</span><spanstyle="color: #0000BB;">.</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ`susceptibility()` assumes the EUCAST guideline and thus considers the</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#> 'I' category susceptible. Set the `guideline` argument or the</span></span></span>
<span><spanclass="co"><spanstyle="color: #0000BB;">#>`AMR_guideline` option to either "CLSI" or "EUCAST", see `?AMR-options`.</span></span></span>
<span><spanclass="co">#><spanstyle="color: #0000BB;">ℹ This message will be shown once per session.</span></span></span></code></pre></div>
<p><strong>Frequency table</strong></p>
<p>Class: factor > ordered > sir (numeric)<br>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.