Built site for AMR: 2.0.0.9004@549790c
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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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">
|
||||
@ -187,7 +187,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 16 March 2023.</p>
|
||||
generated on 20 March 2023.</p>
|
||||
<div class="section level2">
|
||||
<h2 id="introduction">Introduction<a class="anchor" aria-label="anchor" href="#introduction"></a>
|
||||
</h2>
|
||||
@ -243,21 +243,21 @@ make the structure of your data generally look like this:</p>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="center">2023-03-16</td>
|
||||
<td align="center">2023-03-20</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">2023-03-16</td>
|
||||
<td align="center">2023-03-20</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">2023-03-16</td>
|
||||
<td align="center">2023-03-20</td>
|
||||
<td align="center">efgh</td>
|
||||
<td align="center">Escherichia coli</td>
|
||||
<td align="center">R</td>
|
||||
@ -962,111 +962,111 @@ antibiograms:</p>
|
||||
<tr class="odd">
|
||||
<td align="left">Cardial</td>
|
||||
<td align="left">
|
||||
<em>E. coli</em> (386-386)</td>
|
||||
<td align="right">61</td>
|
||||
<em>E. coli</em> (410-410)</td>
|
||||
<td align="right">64</td>
|
||||
<td align="right">58</td>
|
||||
<td align="right">57</td>
|
||||
<td align="right">59</td>
|
||||
<td align="right">62</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">
|
||||
<em>E. coli</em> (400-400)</td>
|
||||
<td align="right">65</td>
|
||||
<td align="right">61</td>
|
||||
<td align="right">56</td>
|
||||
<td align="right">62</td>
|
||||
<em>E. coli</em> (430-430)</td>
|
||||
<td align="right">64</td>
|
||||
<td align="right">57</td>
|
||||
<td align="right">59</td>
|
||||
<td align="right">63</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">
|
||||
<em>E. coli</em> (464-464)</td>
|
||||
<td align="right">65</td>
|
||||
<em>E. coli</em> (410-410)</td>
|
||||
<td align="right">63</td>
|
||||
<td align="right">60</td>
|
||||
<td align="right">56</td>
|
||||
<td align="right">59</td>
|
||||
<td align="right">65</td>
|
||||
<td align="right">64</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Cardial</td>
|
||||
<td align="left">
|
||||
<em>K. pneumoniae</em> (104-104)</td>
|
||||
<em>K. pneumoniae</em> (96-96)</td>
|
||||
<td align="right">65</td>
|
||||
<td align="right">45</td>
|
||||
<td align="right">57</td>
|
||||
<td align="right">62</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">
|
||||
<em>K. pneumoniae</em> (108-108)</td>
|
||||
<td align="right">68</td>
|
||||
<td align="right">62</td>
|
||||
<td align="right">64</td>
|
||||
<td align="right">60</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">
|
||||
<em>K. pneumoniae</em> (112-112)</td>
|
||||
<td align="right">57</td>
|
||||
<td align="right">50</td>
|
||||
<td align="right">55</td>
|
||||
<td align="right">58</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Cardial</td>
|
||||
<td align="left">
|
||||
<em>S. aureus</em> (220-220)</td>
|
||||
<td align="right">64</td>
|
||||
<td align="right">61</td>
|
||||
<td align="right">57</td>
|
||||
<td align="right">63</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">
|
||||
<em>S. aureus</em> (198-198)</td>
|
||||
<td align="right">64</td>
|
||||
<td align="right">52</td>
|
||||
<td align="right">58</td>
|
||||
<td align="right">62</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">
|
||||
<em>K. pneumoniae</em> (94-94)</td>
|
||||
<td align="right">66</td>
|
||||
<td align="right">45</td>
|
||||
<td align="right">60</td>
|
||||
<td align="right">62</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">
|
||||
<em>K. pneumoniae</em> (118-118)</td>
|
||||
<td align="right">59</td>
|
||||
<td align="right">59</td>
|
||||
<td align="right">59</td>
|
||||
<td align="right">58</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Cardial</td>
|
||||
<td align="left">
|
||||
<em>S. aureus</em> (230-230)</td>
|
||||
<td align="right">63</td>
|
||||
<td align="right">57</td>
|
||||
<td align="right">56</td>
|
||||
<td align="right">66</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">
|
||||
<em>S. aureus</em> (222-222)</td>
|
||||
<td align="right">66</td>
|
||||
<td align="right">58</td>
|
||||
<td align="right">57</td>
|
||||
<td align="right">60</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">
|
||||
<em>S. aureus</em> (209-209)</td>
|
||||
<td align="right">65</td>
|
||||
<td align="right">56</td>
|
||||
<td align="right">60</td>
|
||||
<td align="right">63</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Cardial</td>
|
||||
<td align="left">
|
||||
<em>S. pneumoniae</em> (110-110)</td>
|
||||
<td align="right">68</td>
|
||||
<td align="right">57</td>
|
||||
<td align="right">60</td>
|
||||
<td align="right">64</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">
|
||||
<em>S. pneumoniae</em> (142-142)</td>
|
||||
<td align="right">67</td>
|
||||
<td align="right">62</td>
|
||||
<td align="right">65</td>
|
||||
<td align="right">72</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">
|
||||
<em>S. pneumoniae</em> (147-147)</td>
|
||||
<em>S. aureus</em> (243-243)</td>
|
||||
<td align="right">65</td>
|
||||
<td align="right">57</td>
|
||||
<td align="right">58</td>
|
||||
<td align="right">49</td>
|
||||
<td align="right">54</td>
|
||||
<td align="right">61</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Cardial</td>
|
||||
<td align="left">
|
||||
<em>S. pneumoniae</em> (124-124)</td>
|
||||
<td align="right">62</td>
|
||||
<td align="right">56</td>
|
||||
<td align="right">60</td>
|
||||
<td align="right">63</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">
|
||||
<em>S. pneumoniae</em> (141-141)</td>
|
||||
<td align="right">62</td>
|
||||
<td align="right">52</td>
|
||||
<td align="right">58</td>
|
||||
<td align="right">65</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">
|
||||
<em>S. pneumoniae</em> (134-134)</td>
|
||||
<td align="right">67</td>
|
||||
<td align="right">60</td>
|
||||
<td align="right">61</td>
|
||||
<td align="right">69</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="sourceCode" id="cb20"><pre class="downlit sourceCode r">
|
||||
@ -1090,45 +1090,45 @@ antibiograms:</p>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="left">Cardial</td>
|
||||
<td align="left">Gram-negative (490-490)</td>
|
||||
<td align="right">62</td>
|
||||
<td align="right">56</td>
|
||||
<td align="left">Gram-negative (506-506)</td>
|
||||
<td align="right">64</td>
|
||||
<td align="right">55</td>
|
||||
<td align="right">62</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">Gram-negative (494-494)</td>
|
||||
<td align="left">Gram-negative (538-538)</td>
|
||||
<td align="right">65</td>
|
||||
<td align="right">58</td>
|
||||
<td align="right">63</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">Gram-negative (522-522)</td>
|
||||
<td align="right">62</td>
|
||||
<td align="right">58</td>
|
||||
<td align="right">62</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">Gram-negative (582-582)</td>
|
||||
<td align="right">64</td>
|
||||
<td align="right">57</td>
|
||||
<td align="right">63</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Cardial</td>
|
||||
<td align="left">Gram-positive (340-340)</td>
|
||||
<td align="right">64</td>
|
||||
<td align="right">57</td>
|
||||
<td align="right">65</td>
|
||||
<td align="left">Gram-positive (344-344)</td>
|
||||
<td align="right">63</td>
|
||||
<td align="right">59</td>
|
||||
<td align="right">63</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">Gram-positive (364-364)</td>
|
||||
<td align="right">66</td>
|
||||
<td align="right">59</td>
|
||||
<td align="left">Gram-positive (339-339)</td>
|
||||
<td align="right">63</td>
|
||||
<td align="right">52</td>
|
||||
<td align="right">65</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">Gram-positive (356-356)</td>
|
||||
<td align="right">62</td>
|
||||
<td align="right">53</td>
|
||||
<td align="right">62</td>
|
||||
<td align="left">Gram-positive (377-377)</td>
|
||||
<td align="right">66</td>
|
||||
<td align="right">58</td>
|
||||
<td align="right">64</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -1152,45 +1152,45 @@ antibiograms:</p>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="left">Cardial</td>
|
||||
<td align="left">Gram-negative (490-490)</td>
|
||||
<td align="right">62</td>
|
||||
<td align="left">Gram-negative (506-506)</td>
|
||||
<td align="right">64</td>
|
||||
<td align="right">76</td>
|
||||
<td align="right">75</td>
|
||||
<td align="right">74</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">Gram-negative (494-494)</td>
|
||||
<td align="left">Gram-negative (538-538)</td>
|
||||
<td align="right">65</td>
|
||||
<td align="right">78</td>
|
||||
<td align="right">77</td>
|
||||
<td align="right">75</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">Gram-negative (582-582)</td>
|
||||
<td align="right">64</td>
|
||||
<td align="right">75</td>
|
||||
<td align="right">75</td>
|
||||
<td align="left">Gram-negative (522-522)</td>
|
||||
<td align="right">62</td>
|
||||
<td align="right">74</td>
|
||||
<td align="right">73</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Cardial</td>
|
||||
<td align="left">Gram-positive (340-340)</td>
|
||||
<td align="right">64</td>
|
||||
<td align="left">Gram-positive (344-344)</td>
|
||||
<td align="right">63</td>
|
||||
<td align="right">75</td>
|
||||
<td align="right">75</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">Respiratory</td>
|
||||
<td align="left">Gram-positive (364-364)</td>
|
||||
<td align="right">66</td>
|
||||
<td align="right">80</td>
|
||||
<td align="left">Gram-positive (339-339)</td>
|
||||
<td align="right">63</td>
|
||||
<td align="right">77</td>
|
||||
<td align="right">74</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">Rheumatic</td>
|
||||
<td align="left">Gram-positive (356-356)</td>
|
||||
<td align="right">62</td>
|
||||
<td align="left">Gram-positive (377-377)</td>
|
||||
<td align="right">66</td>
|
||||
<td align="right">79</td>
|
||||
<td align="right">77</td>
|
||||
<td align="right">74</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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">
|
||||
@ -385,19 +385,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 R I R I</span></span>
|
||||
<span><span class="co">#> 2 I R S I I R</span></span>
|
||||
<span><span class="co">#> 3 I R I I I R</span></span>
|
||||
<span><span class="co">#> 4 R I I S S I</span></span>
|
||||
<span><span class="co">#> 5 I R R R I S</span></span>
|
||||
<span><span class="co">#> 6 S S S R I R</span></span>
|
||||
<span><span class="co">#> 1 I R I I S R</span></span>
|
||||
<span><span class="co">#> 2 I R R S S I</span></span>
|
||||
<span><span class="co">#> 3 I R S R R R</span></span>
|
||||
<span><span class="co">#> 4 R R I R I R</span></span>
|
||||
<span><span class="co">#> 5 R R R R R S</span></span>
|
||||
<span><span class="co">#> 6 S R S S R S</span></span>
|
||||
<span><span class="co">#> kanamycin</span></span>
|
||||
<span><span class="co">#> 1 I</span></span>
|
||||
<span><span class="co">#> 2 R</span></span>
|
||||
<span><span class="co">#> 3 I</span></span>
|
||||
<span><span class="co">#> 2 I</span></span>
|
||||
<span><span class="co">#> 3 S</span></span>
|
||||
<span><span class="co">#> 4 S</span></span>
|
||||
<span><span class="co">#> 5 S</span></span>
|
||||
<span><span class="co">#> 6 I</span></span></code></pre></div>
|
||||
<span><span class="co">#> 5 R</span></span>
|
||||
<span><span class="co">#> 6 S</span></span></code></pre></div>
|
||||
<p>We can now add the interpretation of MDR-TB to our data set. You can
|
||||
use:</p>
|
||||
<div class="sourceCode" id="cb9"><pre class="downlit sourceCode r">
|
||||
@ -438,32 +438,32 @@ Unique: 5</p>
|
||||
<tr class="odd">
|
||||
<td align="left">1</td>
|
||||
<td align="left">Mono-resistant</td>
|
||||
<td align="right">3239</td>
|
||||
<td align="right">64.78%</td>
|
||||
<td align="right">3239</td>
|
||||
<td align="right">64.78%</td>
|
||||
<td align="right">3251</td>
|
||||
<td align="right">65.02%</td>
|
||||
<td align="right">3251</td>
|
||||
<td align="right">65.02%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">2</td>
|
||||
<td align="left">Negative</td>
|
||||
<td align="right">1004</td>
|
||||
<td align="right">20.08%</td>
|
||||
<td align="right">4243</td>
|
||||
<td align="right">84.86%</td>
|
||||
<td align="right">971</td>
|
||||
<td align="right">19.42%</td>
|
||||
<td align="right">4222</td>
|
||||
<td align="right">84.44%</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">3</td>
|
||||
<td align="left">Multi-drug-resistant</td>
|
||||
<td align="right">423</td>
|
||||
<td align="right">8.46%</td>
|
||||
<td align="right">4666</td>
|
||||
<td align="right">93.32%</td>
|
||||
<td align="right">468</td>
|
||||
<td align="right">9.36%</td>
|
||||
<td align="right">4690</td>
|
||||
<td align="right">93.80%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">4</td>
|
||||
<td align="left">Poly-resistant</td>
|
||||
<td align="right">250</td>
|
||||
<td align="right">5.00%</td>
|
||||
<td align="right">226</td>
|
||||
<td align="right">4.52%</td>
|
||||
<td align="right">4916</td>
|
||||
<td align="right">98.32%</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -178,7 +178,7 @@
|
||||
<h4 data-toc-skip class="author">Dr. Matthijs
|
||||
Berends</h4>
|
||||
|
||||
<h4 data-toc-skip class="date">16 March 2023</h4>
|
||||
<h4 data-toc-skip class="date">20 March 2023</h4>
|
||||
|
||||
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/HEAD/vignettes/SPSS.Rmd" class="external-link"><code>vignettes/SPSS.Rmd</code></a></small>
|
||||
<div class="d-none name"><code>SPSS.Rmd</code></div>
|
||||
@ -257,7 +257,7 @@ data using a custom made website. The webdesign knowledge needed
|
||||
<li>
|
||||
<p><strong>R has a huge community.</strong></p>
|
||||
<p>Many R users just ask questions on websites like <a href="https://stackoverflow.com" class="external-link">StackOverflow.com</a>, the largest
|
||||
online community for programmers. At the time of writing, <a href="https://stackoverflow.com/questions/tagged/r?sort=votes" class="external-link">484 006
|
||||
online community for programmers. At the time of writing, <a href="https://stackoverflow.com/questions/tagged/r?sort=votes" class="external-link">484 734
|
||||
R-related questions</a> have already been asked on this platform (that
|
||||
covers questions and answers for any programming language). In my own
|
||||
experience, most questions are answered within a couple of
|
||||
|
@ -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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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">
|
||||
@ -176,7 +176,7 @@
|
||||
<main id="main" class="col-md-9"><div class="page-header">
|
||||
<img src="../logo.svg" class="logo" alt=""><h1>Data sets for download / own use</h1>
|
||||
|
||||
<h4 data-toc-skip class="date">16 March 2023</h4>
|
||||
<h4 data-toc-skip class="date">20 March 2023</h4>
|
||||
|
||||
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/HEAD/vignettes/datasets.Rmd" class="external-link"><code>vignettes/datasets.Rmd</code></a></small>
|
||||
<div class="d-none name"><code>datasets.Rmd</code></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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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">
|
||||
@ -142,9 +142,9 @@
|
||||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
<h2 class="pkg-version" data-toc-text="2.0.0.9003" id="amr-2009003">AMR 2.0.0.9003<a class="anchor" aria-label="anchor" href="#amr-2009003"></a></h2>
|
||||
<h2 class="pkg-version" data-toc-text="2.0.0.9004" id="amr-2009004">AMR 2.0.0.9004<a class="anchor" aria-label="anchor" href="#amr-2009004"></a></h2>
|
||||
<div class="section level3">
|
||||
<h3 id="changed-2-0-0-9003">Changed<a class="anchor" aria-label="anchor" href="#changed-2-0-0-9003"></a></h3>
|
||||
<h3 id="changed-2-0-0-9004">Changed<a class="anchor" aria-label="anchor" href="#changed-2-0-0-9004"></a></h3>
|
||||
<ul><li>formatting fix for <code><a href="../reference/as.sir.html">sir_interpretation_history()</a></code>
|
||||
</li>
|
||||
</ul></div>
|
||||
|
@ -11,7 +11,7 @@ articles:
|
||||
datasets: datasets.html
|
||||
resistance_predict: resistance_predict.html
|
||||
welcome_to_AMR: welcome_to_AMR.html
|
||||
last_built: 2023-03-16T08:00Z
|
||||
last_built: 2023-03-20T21:06Z
|
||||
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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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">
|
||||
|
@ -24,7 +24,7 @@ The AMR package is available in English, Chinese, Czech, Danish, Dutch, Finnish,
|
||||
|
||||
<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.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 7.9 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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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">
|
||||
@ -205,16 +205,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 1960-01-29 63 63.12603 39</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 1987-04-14 35 35.92055 12</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 1976-01-12 47 47.17260 23</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 1951-10-24 71 71.39178 48</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 1982-07-07 40 40.69041 17</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 1997-02-24 26 26.05479 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 1940-02-14 83 83.08219 59</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 1975-04-24 47 47.89315 24</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 1996-09-25 26 26.47123 3</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 1949-01-29 74 74.12603 50</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 1967-04-14 55 55.93151 32</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 1984-03-05 39 39.04110 15</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 1947-12-29 75 75.22192 52</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 1974-01-19 49 49.16438 25</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 1975-05-15 47 47.84658 24</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 1951-11-30 71 71.30137 48</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 1995-06-13 27 27.76712 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 1948-06-28 74 74.72603 51</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 1989-11-03 33 33.37534 10</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 1983-10-24 39 39.40274 16</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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,13 +506,16 @@
|
||||
<span class="r-in"><span><span class="co"># in an Rmd file, you would just need to return `ureido` in a chunk,</span></span></span>
|
||||
<span class="r-in"><span><span class="co"># but to be explicit here:</span></span></span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/ns-load.html" class="external-link">requireNamespace</a></span><span class="op">(</span><span class="st">"knitr"</span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="fu">knitr</span><span class="fu">::</span><span class="fu"><a href="https://rdrr.io/pkg/knitr/man/knit_print.html" class="external-link">knit_print</a></span><span class="op">(</span><span class="va">ureido</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://rdrr.io/r/base/cat.html" class="external-link">cat</a></span><span class="op">(</span><span class="fu">knitr</span><span class="fu">::</span><span class="fu"><a href="https://rdrr.io/pkg/knitr/man/knit_print.html" class="external-link">knit_print</a></span><span class="op">(</span><span class="va">ureido</span><span class="op">)</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> [1] "\n\n|Pathogen (N) | Piperacillin/tazobactam|\n|:---------------------|-----------------------:|\n|CoNS (33) | 30|\n|*E. coli* (416) | 94|\n|*K. pneumoniae* (53) | 89|\n|*S. pneumoniae* (112) | 100|"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> attr(,"class")</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "knit_asis"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> attr(,"knit_cacheable")</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> |Pathogen (N) | Piperacillin/tazobactam|</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> |:---------------------|-----------------------:|</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> |CoNS (33) | 30|</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> |*E. coli* (416) | 94|</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> |*K. pneumoniae* (53) | 89|</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> |*S. pneumoniae* (112) | 100|</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># Generate plots with ggplot2 or base R --------------------------------</span></span></span>
|
||||
|
@ -12,7 +12,7 @@ In short, if you have a column name that resembles an antimicrobial drug, it wil
|
||||
|
||||
<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.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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">
|
||||
@ -610,10 +610,10 @@ In short, if you have a column name that resembles an antimicrobial drug, it wil
|
||||
<span class="r-out co"><span class="r-pr">#></span> kefzol</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><sir></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> S </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> S </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> I </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> I </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">4</span> I </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">5</span> I </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">4</span> S </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">5</span> S </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="co"># get AMR for all aminoglycosides e.g., per ward:</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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 @@ All breakpoints used for interpretation are publicly available in the clinical_b
|
||||
|
||||
<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.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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">
|
||||
@ -534,16 +534,16 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<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_guid…¹ 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-03-16 <span style="color: #949494;">08:01:12</span> 1 TOB TOB Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 2023-03-16 <span style="color: #949494;">08:01:12</span> 1 GEN GEN Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 2023-03-16 <span style="color: #949494;">08:01:11</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-03-16 <span style="color: #949494;">08:01:11</span> 1 AMP AMP Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 2023-03-16 <span style="color: #949494;">08:01:07</span> 1 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 2023-03-16 <span style="color: #949494;">08:01:07</span> 2 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 2023-03-16 <span style="color: #949494;">08:01:07</span> 3 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 2023-03-16 <span style="color: #949494;">08:01:07</span> 4 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 2023-03-16 <span style="color: #949494;">08:01:07</span> 5 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 2023-03-16 <span style="color: #949494;">08:01:07</span> 6 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 2023-03-20 <span style="color: #949494;">21:07:08</span> 1 TOB TOB Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 2023-03-20 <span style="color: #949494;">21:07:07</span> 1 GEN GEN Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 2023-03-20 <span style="color: #949494;">21:07:07</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-03-20 <span style="color: #949494;">21:07:06</span> 1 AMP AMP Escher… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 2023-03-20 <span style="color: #949494;">21:07:01</span> 1 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 2023-03-20 <span style="color: #949494;">21:07:01</span> 2 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 2023-03-20 <span style="color: #949494;">21:07:01</span> 3 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 2023-03-20 <span style="color: #949494;">21:07:01</span> 4 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 2023-03-20 <span style="color: #949494;">21:07:01</span> 5 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR EUCAST…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 2023-03-20 <span style="color: #949494;">21:07:01</span> 6 CIP CIP B_ESCH… B_[ORD]_ENTRBCTR 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 <sir>, 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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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">
|
||||
@ -246,19 +246,19 @@
|
||||
<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">100</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] 9 18 19 37 25 43 21 38 23 21 50 4 13 25 49 13 47 17 18 49 4 10 20 39 32</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [26] 17 38 4 23 40 41 2 32 47 45 42 31 41 30 5 26 34 8 46 14 11 1 13 45 48</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [51] 1 33 45 3 30 22 6 6 16 24 9 47 35 7 10 47 44 19 6 18 28 12 16 11 49</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [76] 27 15 33 29 28 7 10 22 6 46 10 12 22 41 32 36 40 40 25 23 5 16 46 46 8</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 37 24 6 18 45 9 35 41 47 24 4 23 9 23 32 39 13 44 15 16 2 25 2 21 15</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [26] 6 39 31 40 21 27 28 22 12 46 43 19 40 39 47 13 42 25 36 13 4 7 6 42 12</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [51] 9 14 45 24 8 17 12 43 5 5 3 43 15 26 38 29 8 7 30 32 27 31 42 39 9</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [76] 25 20 26 21 45 11 12 7 44 35 33 6 1 5 31 31 10 2 34 24 17 17 20 35 34</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] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] TRUE FALSE TRUE FALSE TRUE TRUE FALSE FALSE FALSE TRUE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] TRUE FALSE FALSE FALSE FALSE TRUE TRUE TRUE FALSE FALSE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [37] TRUE FALSE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [49] FALSE TRUE FALSE TRUE FALSE TRUE FALSE TRUE TRUE FALSE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [61] FALSE FALSE TRUE TRUE FALSE FALSE TRUE FALSE FALSE FALSE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [73] FALSE FALSE FALSE TRUE TRUE FALSE TRUE FALSE FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [85] FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] FALSE FALSE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] FALSE FALSE FALSE TRUE TRUE FALSE TRUE TRUE TRUE TRUE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [37] TRUE FALSE FALSE FALSE FALSE TRUE FALSE TRUE FALSE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [49] FALSE FALSE FALSE TRUE FALSE FALSE TRUE TRUE FALSE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [61] TRUE FALSE FALSE TRUE TRUE TRUE FALSE FALSE TRUE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [73] FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE TRUE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [85] FALSE TRUE FALSE TRUE FALSE FALSE FALSE TRUE FALSE TRUE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [97] FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># filter on results from the third 60-day episode only, using base R</span></span></span>
|
||||
@ -266,7 +266,7 @@
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 1 × 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;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> 2002-08-28 390178 57 M Clinical B_STRPT_SLVR S NA NA S </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</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 <sir>, AMP <sir>, TZP <sir>, CZO <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># FEP <sir>, CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># GEN <sir>, TOB <sir>, AMK <sir>, KAN <sir>, TMP <sir>, SXT <sir>,</span></span>
|
||||
@ -301,19 +301,19 @@
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/arrange.html" class="external-link">arrange</a></span><span class="op">(</span><span class="va">patient</span>, <span class="va">condition</span>, <span class="va">date</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: 100 × 4</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: patient, condition [98]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: patient, condition [97]</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> 001213 2009-08-03 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 082413 2002-06-04 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 097186 2015-10-28 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 0E2483 2007-05-29 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 107DD1 2012-09-03 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 138869 2009-05-20 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 13DF24 2011-08-14 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 151041 2006-02-10 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 156730 2012-04-12 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 189363 2004-03-16 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 001213 2009-08-03 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 008218 2009-05-05 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 008218 2009-04-27 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 023456 2012-11-24 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 082622 2014-02-08 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 0D7D34 2011-03-16 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 0DBF93 2015-10-12 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 151041 2003-01-31 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 175532 2010-04-10 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># … with 90 more rows</span></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>
|
||||
@ -327,19 +327,19 @@
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/arrange.html" class="external-link">arrange</a></span><span class="op">(</span><span class="va">patient</span>, <span class="va">ward</span>, <span class="va">date</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: 100 × 5</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: ward, patient [99]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: ward, patient [94]</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;"><int></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 2009-08-03 001213 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> ICU 2002-06-04 082413 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> Clinical 2015-10-28 097186 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> Clinical 2007-05-29 0E2483 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> Clinical 2012-09-03 107DD1 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> Outpatient 2009-05-20 138869 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> Clinical 2011-08-14 13DF24 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> Clinical 2006-02-10 151041 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> Clinical 2012-04-12 156730 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> Clinical 2004-03-16 189363 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> Clinical 2009-08-03 001213 1 FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> Clinical 2009-04-27 008218 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> Clinical 2009-05-05 008218 1 FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> Clinical 2012-11-24 023456 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> ICU 2014-02-08 082622 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> ICU 2011-03-16 0D7D34 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> Clinical 2015-10-12 0DBF93 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> Clinical 2003-01-31 151041 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> ICU 2010-04-10 175532 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># … with 90 more rows</span></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>
|
||||
@ -355,9 +355,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 60 13 39 48</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ICU 29 10 22 26</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> Outpatient 10 7 9 9</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> Clinical 59 13 35 46</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ICU 26 10 20 22</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> Outpatient 9 6 8 8</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>
|
||||
<span class="r-in"><span><span class="co"># results as first_isolate() when using 'episode-based':</span></span></span>
|
||||
@ -386,19 +386,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: 100 × 4</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: patient, mo, ward [100]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: patient, mo, ward [96]</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> E9C268 B_STPHY_EPDR ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 352466 B_STRPT_PNMN ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 521167 B_STPHY_AURS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 261028 B_STPHY_AURS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 189564 B_STRPT_GRPA ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 3B8892 B_ESCHR_COLI Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 31C6D2 B_STPHY_CONS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 960698 B_ESCHR_COLI Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 408807 B_STPHY_CONS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> AB0003 B_EKNLL_CRRD Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 082622 B_ESCHR_COLI ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 210105 B_ENTRC Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> C98963 B_STPHY_AURS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> F3BD65 B_STRPT ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 337539 B_STPHY_EPDR Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 987802 B_STPHY_CONS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 451000 B_STPHY_EPDR Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 837103 F_CANDD_GLBR Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 527306 B_STRPT_SLVR ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> AB0003 B_ESCHR_COLI Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># … with 90 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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -178,7 +178,7 @@
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "An overview of *S. aureus* isolates"</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/cat.html" class="external-link">cat</a></span><span class="op">(</span><span class="fu">italicise_taxonomy</span><span class="op">(</span><span class="st">"An overview of S. aureus isolates"</span>, type <span class="op">=</span> <span class="st">"ansi"</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> An overview of S. aureus isolates</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> An overview of <span style="font-style: italic;">S. aureus</span> isolates</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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,9 +182,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.041446</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 3.00756</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.01480853</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.05800041</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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">
|
||||
@ -201,31 +201,31 @@
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">sir</span> <span class="op"><-</span> <span class="fu"><a href="random.html">random_sir</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">sir</span></span></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 S I I S R R R I I</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] S R S R I I I S I S</span>
|
||||
<span class="r-in"><span><span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">sir</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.621059 -0.621059 -0.621059 -0.621059 -0.621059 1.449138 1.449138</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [8] 1.449138 -0.621059 -0.621059</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.4743416 1.8973666 -0.4743416 1.8973666 -0.4743416 -0.4743416</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -0.4743416 -0.4743416 -0.4743416 -0.4743416</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] 0.5 0.002 <=0.001 0.025 0.0625 0.25 <=0.001 64 >=256 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [10] 32 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] <=0.005 2 1 0.25 0.025 0.0625 8 32 0.01 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [10] 64 </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.18238584 -1.00659270 -1.15585340 -0.46270817 -0.26539626 0.03312514</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -1.15585340 1.22721075 1.52573215 1.07795004</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -1.3607297 0.4260156 0.2193087 -0.1941053 -0.8807710 -0.6075192</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.8394296 1.2528435 -1.1540227 1.4595505</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.18238584 -1.00659270 -1.15585340 -0.46270817 -0.26539626 0.03312514</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -1.15585340 1.22721075 1.52573215 1.07795004</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -1.3607297 0.4260156 0.2193087 -0.1941053 -0.8807710 -0.6075192</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.8394296 1.2528435 -1.1540227 1.4595505</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] 20 27 47 48 29 33 49 6 11 50</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 16 6 32 43 12 17 31 27 6 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.73638265 -0.30682611 0.92047832 0.98184354 -0.18409566 0.06136522</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 1.04320876 -1.59549575 -1.28866965 1.10457398</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.3961070 -1.2213298 0.9242496 1.8319947 -0.7261961 -0.3135847</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.8417273 0.5116382 -1.2213298 -0.2310624</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>
|
||||
@ -236,21 +236,21 @@
|
||||
<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 30 >=16 <=0.25</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B S 30 4 >=4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C S 17 >=16 0.5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D I 18 8 >=4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E R 18 4 0.5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F S 27 >=16 0.5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G S 24 >=16 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H I 17 >=16 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I I 28 4 0.5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J I 18 >=16 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 A R 28 4 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B I 27 1 <=0.25</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C R 21 4 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D R 20 2 0.5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E S 22 8 >=4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F R 29 1 <=0.25</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G S 28 1 <=0.25</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H R 21 2 0.5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I S 18 4 0.5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J R 29 2 2</span>
|
||||
<span class="r-in"><span><span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">y</span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Calculating mean AMR distance based on columns "amox", "cipr", "gent",</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> and "tobr"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.62894141 0.21607485 -0.36363778 -0.05249015 -0.25341632 0.07976901</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.30030036 -0.01008439 -0.40293659 -0.14252040</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.8654806 -0.6844269 0.2812779 -0.1937023 0.4465067 -0.0832094</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -0.6258796 -0.1351550 -0.5528584 0.6819664</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"><a href="https://tidyselect.r-lib.org/reference/where.html" class="external-link">where</a></span><span class="op">(</span><span class="va">is.mic</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .subset(x, j):</span> invalid subscript type 'list'</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>
|
||||
@ -267,16 +267,16 @@
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Calculating mean AMR distance based on columns "amox", "cipr", "gent",</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> and "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 17 >=16 0.5 -0.36363778 0.00000000</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 I I 28 4 0.5 -0.40293659 0.03929881</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 E R 18 4 0.5 -0.25341632 0.11022146</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 J I 18 >=16 1 -0.14252040 0.22111737</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 D I 18 8 >=4 -0.05249015 0.31114763</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 H I 17 >=16 2 -0.01008439 0.35355339</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 F S 27 >=16 0.5 0.07976901 0.44340679</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 B S 30 4 >=4 0.21607485 0.57971263</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 G S 24 >=16 2 0.30030036 0.66393814</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 A R 30 >=16 <=0.25 0.62894141 0.99257919</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 C R 21 4 1 0.2812779 0.0000000</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 E S 22 8 >=4 0.4465067 0.1652288</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 F R 29 1 <=0.25 -0.0832094 0.3644873</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 J R 29 2 2 0.6819664 0.4006885</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 H R 21 2 0.5 -0.1351550 0.4164329</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 D R 20 2 0.5 -0.1937023 0.4749802</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 A R 28 4 2 0.8654806 0.5842027</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 I S 18 4 0.5 -0.5528584 0.8341363</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 G S 28 1 <=0.25 -0.6258796 0.9071576</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 B I 27 1 <=0.25 -0.6844269 0.9657049</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 55 KiB |
Before Width: | Height: | Size: 24 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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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">
|
||||
@ -193,42 +193,42 @@
|
||||
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="fu">random_mic</span><span class="op">(</span><span class="fl">25</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'mic'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 64 0.125 0.0625 32 0.025 64 0.01 64 4 0.001 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [11] 128 0.5 0.25 32 0.025 0.01 0.025 0.001 0.01 0.005 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] 0.0625 0.01 >=256 64 64 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 1 <=0.001 <=0.001 8 32 <=0.001 128 0.01 0.002 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [10] 0.01 256 <=0.001 0.5 1 4 256 0.25 64 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [19] 1 0.01 1 0.5 0.0625 2 0.005 </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] 46 32 21 18 42 16 48 9 47 35 7 21 41 23 39 12 45 27 33 31 41 25 42 47 46</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 44 35 30 50 38 41 6 45 36 25 28 45 43 9 15 22 46 12 45 22 37 25 12 50 43</span>
|
||||
<span class="r-in"><span><span class="fu">random_sir</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 'sir'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] I I S I S S I S R R R I S R I I I R I I I R R S I</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] S I R S S R R R R R S S S R S I R S I S S R S I I</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] 8 0.125 0.002 0.25 0.25 16 1 0.002 128 1 0.025 0.25 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] 2 0.002 0.001 64 4 0.001 0.025 0.001 0.005 0.005 0.01 0.01 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] 0.25 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 32 64 0.025 >=128 0.25 1 16 8 4 8 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [11] 4 0.0625 0.25 2 0.01 8 32 >=128 1 0.002 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] 16 0.025 0.002 0.01 0.0625</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] 16 1 2 1 1 1 16 4 0.5 16 2 8 16 1 8 0.5 2 1 4 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [20] 8 8 16 0.5 4 0.5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 32 16 2 32 4 8 4 0.5 0.5 4 1 0.5 0.5 16 4 16 2 1 0.5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [20] 2 0.5 0.5 1 1 16 </span>
|
||||
<span class="r-in"><span><span class="fu">random_mic</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Streptococcus pneumoniae"</span>, <span class="st">"meropenem"</span><span class="op">)</span> <span class="co"># range 0.0625-4</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'mic'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] <=0.025 <=0.025 0.0625 <=0.025 1 <=0.025 2 <=0.025 <=0.025</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [10] 0.0625 0.125 0.0625 1 2 1 8 2 0.25 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [19] 8 8 8 0.25 8 0.25 1 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 16 0.5 16 1 2 1 1 4 0.0625 0.025 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [11] 16 0.0625 0.25 4 0.5 16 0.25 0.5 0.125 16 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] 0.025 1 0.5 0.125 0.025 </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] 43 11 19 9 48 20 22 49 10 27 10 35 8 27 31 26 28 13 34 32 12 37 46 41 26</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 34 48 26 44 41 18 40 49 46 32 49 30 14 40 18 9 42 17 47 42 18 43 20 33 48</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] 11 14 14 17 15 16 17 14 12 17 13 11 13 15 17 16 17 11 11 17 14 13 12 17 16</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 13 17 13 14 15 14 11 14 12 16 17 17 15 11 16 13 15 11 14 15 13 17 14 17 17</span>
|
||||
<span class="r-in"><span><span class="fu">random_disk</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Streptococcus pneumoniae"</span>, <span class="st">"ampicillin"</span><span class="op">)</span> <span class="co"># range 12-27</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'disk'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 22 22 21 20 17 21 21 25 16 22 23 25 15 25 19 18 23 18 24 21 22 24 17 18 24</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 26 24 15 17 22 20 26 19 18 22 24 20 16 16 27 16 19 27 25 18 16 26 17 26 19</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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">
|
||||
@ -181,7 +181,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.02844478</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.06888281</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="">2.0.0.9003</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9004</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">
|
||||
|