Built site for AMR@3.1.0.9003: bd20842

This commit is contained in:
github-actions committed 2026-10-17 07:44:25 +00:00
1 parent b744e26dd4
commit 3048b5d135
100 files changed
+1829 -1467

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@
<a class="navbar-brand me-2" href="https://amr-for-r.org/index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+5 -5
View File
@@ -30,7 +30,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</small>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
@@ -91,7 +91,7 @@
website update since they are based on randomly created values and the
page was written in <a href="https://rmarkdown.rstudio.com/" class="external-link">R
Markdown</a>. However, the methodology remains unchanged. This page was
generated on 16 October 2026.</p>
generated on 17 October 2026.</p>
<div class="section level2">
<h2 id="introduction">Introduction<a class="anchor" aria-label="anchor" href="#introduction"></a>
</h2>
@@ -147,21 +147,21 @@ make the structure of your data generally look like this:</p>
</tr></thead>
<tbody>
<tr class="odd">
<td align="center">2026-10-16</td>
<td align="center">2026-10-17</td>
<td align="center">abcd</td>
<td align="center">Escherichia coli</td>
<td align="center">S</td>
<td align="center">S</td>
</tr>
<tr class="even">
<td align="center">2026-10-16</td>
<td align="center">2026-10-17</td>
<td align="center">abcd</td>
<td align="center">Escherichia coli</td>
<td align="center">S</td>
<td align="center">R</td>
</tr>
<tr class="odd">
<td align="center">2026-10-16</td>
<td align="center">2026-10-17</td>
<td align="center">efgh</td>
<td align="center">Escherichia coli</td>
<td align="center">R</td>
+4 -4
View File
@@ -3,7 +3,7 @@
**Note:** values on this page will change with every website update
since they are based on randomly created values and the page was written
in [R Markdown](https://rmarkdown.rstudio.com/). However, the
methodology remains unchanged. This page was generated on 16 October
methodology remains unchanged. This page was generated on 17 October
2026.
## Introduction
@@ -52,9 +52,9 @@ structure of your data generally look like this:
| date | patient_id | mo | AMX | CIP |
|:----------:|:----------:|:----------------:|:---:|:---:|
| 2026-10-16 | abcd | Escherichia coli | S | S |
| 2026-10-16 | abcd | Escherichia coli | S | R |
| 2026-10-16 | efgh | Escherichia coli | R | S |
| 2026-10-17 | abcd | Escherichia coli | S | S |
| 2026-10-17 | abcd | Escherichia coli | S | R |
| 2026-10-17 | efgh | Escherichia coli | R | S |
### Needed R packages
+1 -1
View File
@@ -30,7 +30,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -30,7 +30,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -30,7 +30,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -30,7 +30,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -30,7 +30,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -30,7 +30,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+2 -2
View File
@@ -30,7 +30,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</small>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
@@ -80,7 +80,7 @@
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.svg" class="logo" alt=""><h1>Download data sets for download / own use</h1>
<h4 data-toc-skip class="date">16 October 2026</h4>
<h4 data-toc-skip class="date">17 October 2026</h4>
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/main/vignettes/datasets.Rmd" class="external-link"><code>vignettes/datasets.Rmd</code></a></small>
<div class="d-none name"><code>datasets.Rmd</code></div>
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+203 -12
View File
@@ -68,12 +68,56 @@
--bs-dropdown-link-active-color: white !important;
}
/* mode-dependent colours; light mode is enforced in _pkgdown.yml (light-switch: false), the dark values below are prepared for when it is enabled; they are set on :root only, since pkgdown also marks the navbar as dark */
:root {
color-scheme: light;
--amr-code-literal: var(--bs-dark);
--amr-code-muted: var(--bs-gray-600);
--amr-search-text: #0b3d33;
--amr-search-placeholder: rgba(11, 61, 51, 0.65);
--amr-accent: var(--amr-green-dark); /* green for text; --amr-green-dark is the brand colour for backgrounds such as the navbar */
--amr-accent-rgb: var(--amr-green-dark-rgb);
--amr-text-muted: #5b6770;
--amr-ref-border: #e3e8e6;
--amr-filter-border: #c4cdca;
--amr-filter-placeholder: #7b8783;
--amr-filter-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237b8783' stroke-width='1.75' stroke-linecap='round'%3E%3Ccircle cx='6.75' cy='6.75' r='5'/%3E%3Cpath d='M10.5 10.5l4 4'/%3E%3C/svg%3E");
--amr-filter-clear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237b8783' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E");
--amr-chip-bg: #f4f6f5;
--amr-chip-border: #dde3e1;
--amr-chip-match-bg: rgba(var(--amr-green-light-rgb), 0.5);
--amr-badge-bg: var(--amr-green-dark);
--amr-badge-text: white;
}
:root[data-bs-theme="dark"] {
color-scheme: dark;
--amr-accent: #4fc3a1;
--amr-accent-rgb: 79, 195, 161;
--bs-link-color: var(--amr-accent) !important;
--bs-link-color-rgb: var(--amr-accent-rgb) !important;
--amr-green-middle: #8fd1c1;
--amr-green-middle-rgb: 143, 209, 193;
--amr-code-literal: var(--bs-gray-300);
--amr-code-muted: var(--bs-gray-500);
--amr-text-muted: var(--bs-gray-400);
--amr-ref-border: rgba(255, 255, 255, 0.1);
--amr-filter-border: rgba(255, 255, 255, 0.25);
--amr-filter-placeholder: var(--bs-gray-500);
--amr-filter-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23adb5bd' stroke-width='1.75' stroke-linecap='round'%3E%3Ccircle cx='6.75' cy='6.75' r='5'/%3E%3Cpath d='M10.5 10.5l4 4'/%3E%3C/svg%3E");
--amr-filter-clear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23adb5bd' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E");
--amr-chip-bg: rgba(255, 255, 255, 0.04);
--amr-chip-border: rgba(255, 255, 255, 0.14);
--amr-chip-match-bg: rgba(var(--amr-accent-rgb), 0.25);
}
/* Python page */
body.amr-for-python * {
--amr-green-light: #FFD43B; /* Python yellow */
--amr-green-light-rgb: 255, 212, 59;
--amr-green-dark: #306998; /* Python blue */
--amr-green-dark-rgb: 48, 105, 152;
--amr-accent: var(--amr-green-dark);
--amr-accent-rgb: var(--amr-green-dark-rgb);
--amr-green-middle: #b1bc5e; /* Adjusted middle yellow */
--amr-green-middle-rgb: 177, 188, 94;
--bs-success: var(--amr-green-dark) !important;
@@ -114,13 +158,16 @@ body.amr-for-python * {
opacity: 0.75;
font-size: 0.85em;
}
input[type="search"] {
color: var(--bs-tertiary-bg) !important;
.navbar input[type="search"] {
color: var(--amr-search-text) !important;
background-color: var(--amr-green-light) !important;
max-width: 160px;
max-width: 220px;
border-color: var(--amr-green-dark) !important;
border-radius: 2px !important;
}
.navbar input[type="search"]::placeholder {
color: var(--amr-search-placeholder) !important;
}
.dropdown-item:hover,
.dropdown-item:focus {
background-color: var(--bs-tertiary-bg) !important;
@@ -149,6 +196,8 @@ blockquote {
}
p {
text-align: justify;
/* pkgdown only hyphenates on small screens; justified text needs it on all screens */
hyphens: auto;
}
/*
@@ -167,10 +216,152 @@ this shows on top of every sidebar to the right
padding-bottom: 10px;
}
/* REFERENCE INDEX ('Manual'), see pkgdown/templates/content-reference-index.html */
.template-reference-index {
--amr-navbar-height: 72px; /* set exactly by extra.js */
}
.template-reference-index .section-desc {
font-style: italic;
text-align: justify;
font-size: 16px;
hyphens: auto;
color: var(--amr-text-muted);
margin-bottom: 0.5rem;
}
.template-reference-index h2 {
margin-top: 2.5rem;
padding-bottom: 0.3rem;
border-bottom: 2px solid var(--amr-green-dark);
}
.amr-ref-filter + .section h2 {
margin-top: 1.5rem;
}
.template-reference-index h3 {
margin-top: 1.25rem;
font-size: 1.1rem;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--amr-accent);
}
/* while filtering, sub-headings show the title of their section, as the section heading may be far above */
.amr-ref-filtering main h3[data-amr-parent]::before {
content: attr(data-amr-parent) " \203A";
display: block;
font-size: 0.8rem;
font-weight: normal;
text-transform: none;
letter-spacing: normal;
color: var(--amr-text-muted);
}
/* filter field, sticky below the navbar */
.amr-ref-filter {
clear: right; /* start below the package logo, which pkgdown lets hang below the page header */
position: sticky;
top: var(--amr-navbar-height);
z-index: 10;
padding: 0.75rem 0;
background: var(--bs-body-bg);
}
.amr-ref-filter.amr-ref-stuck {
box-shadow: 0 1px 0 var(--amr-ref-border);
}
#amr-ref-filter-input {
width: 100%;
max-width: none;
padding-left: 2.5rem;
color: var(--bs-body-color);
background: var(--bs-body-bg) var(--amr-filter-icon) no-repeat left 0.85rem center / 1rem 1rem;
border: 1px solid var(--amr-filter-border);
border-radius: 2px;
}
#amr-ref-filter-input::-webkit-search-cancel-button {
-webkit-appearance: none;
appearance: none;
width: 1rem;
height: 1rem;
background: var(--amr-filter-clear) no-repeat center / 1rem 1rem;
cursor: pointer;
}
#amr-ref-filter-input::placeholder {
color: var(--amr-filter-placeholder);
}
#amr-ref-filter-input:focus {
border-color: var(--amr-accent);
box-shadow: 0 0 0 1px var(--amr-accent) !important;
}
.amr-ref-filter-status {
font-size: 0.85rem;
padding-top: 0.35rem;
color: var(--amr-text-muted);
}
.amr-ref-filter-status:empty {
display: none;
}
/* topics: title first, function names as chips below */
.amr-ref-list {
margin-bottom: 0;
}
.amr-ref-item {
padding: 0.6rem 0 0.35rem;
border-bottom: 1px solid var(--amr-ref-border);
}
.amr-ref-item dt {
display: flex;
flex-wrap: wrap;
align-items: baseline;
column-gap: 0.5rem;
font-weight: bold !important;
margin-bottom: 0.3rem;
}
.amr-ref-item dt a {
color: var(--bs-body-color);
}
.amr-ref-item dt a:hover {
color: var(--amr-accent);
}
.template-reference-index .amr-ref-item dd {
margin: 0;
padding: 0;
font-size: 0.85rem;
line-height: 1.6;
}
.amr-ref-item dd code {
display: inline-block;
margin: 0 0.25rem 0.3rem 0;
padding: 0 0.4rem;
background: var(--amr-chip-bg);
border: 1px solid var(--amr-chip-border);
border-radius: 2px;
}
.amr-ref-item dd code.amr-ref-match {
background: var(--amr-chip-match-bg);
border-color: var(--amr-accent);
}
.amr-ref-item:not(.amr-ref-expanded) dd code.amr-ref-extra:not(.amr-ref-match) {
display: none;
}
.amr-ref-more {
border: none;
background: none;
padding: 0;
font-size: 0.85rem;
color: var(--amr-accent);
cursor: pointer;
}
.amr-ref-more:hover {
text-decoration: underline;
}
.amr-ref-hidden {
display: none !important;
}
.amr-ref-textmatch dt::after {
content: "mentioned on this page";
padding: 0 0.45rem;
font-weight: bold;
font-size: 0.75rem;
line-height: 1.6;
color: var(--amr-badge-text);
background: var(--amr-badge-bg);
border-radius: 2px;
}
@media (max-width: 575.98px) {
@@ -192,7 +383,7 @@ this shows on top of every sidebar to the right
.template-reference-topic h3,
.template-reference-topic h3 code {
color: var(--amr-green-dark) !important;
color: var(--amr-accent) !important;
}
.template-reference-topic h3 {
font-weight: normal;
@@ -232,11 +423,11 @@ code, .code {
.ot, .dv, .fl, .cn, .at,
.op a {
/* numbers, TRUE/FALSE and operators */
color: var(--bs-dark) !important;
color: var(--amr-code-literal) !important;
}
pre .fu, .fu {
/* functions */
color: var(--amr-green-dark) !important;
color: var(--amr-accent) !important;
}
pre .fu a:hover, .fu a:hover {
/* functions */
@@ -249,18 +440,18 @@ pre .st, .st {
}
pre .co, .co {
/* comments */
color: var(--amr-green-dark) !important;
color: var(--amr-accent) !important;
font-style: italic !important;
}
div.sourceCode  pre .co,
div.sourceCode .co {
/* comments in example sections, since functions are already green too */
color: var(--bs-gray-600) !important;
color: var(--amr-code-muted) !important;
}
pre code .r-out,
pre code .r-msg {
/* output of functions */
color: var(--bs-gray-600) !important;
color: var(--amr-code-muted) !important;
font-style: normal !important;
}
code a[href],
@@ -269,7 +460,7 @@ pre a[href],
a code[href],
a pre[href] {
/* adjusted colour for all real links; having href attribute */
color: var(--amr-green-dark);
color: var(--amr-accent);
text-decoration: none;
}
a[href] {
+188
View File
@@ -64,6 +64,177 @@ $(function () {
document.title = document.title.replace("Package index", "Manual");
}
// reference index ('Manual'): collapse long function lists and filter topics, see pkgdown/templates/content-reference-index.html
if ($(".amr-ref-item").length > 0) {
const maxAliases = 8;
const $body = $(".template-reference-index");
const $input = $("#amr-ref-filter-input");
const $status = $("#amr-ref-filter-status");
const $items = $(".amr-ref-item");
const pageText = {}; // full text per reference page, from search.json
let pageTextLoaded = false;
// keep the sticky filter field directly below the navbar, which hides when scrolling down
const navbar = document.querySelector(".navbar.fixed-top");
const filterBar = document.querySelector(".amr-ref-filter");
function placeFilter() {
const navBottom = navbar ? Math.max(0, navbar.getBoundingClientRect().bottom) : 0;
$body.css("--amr-navbar-height", navBottom + "px");
$(filterBar).toggleClass("amr-ref-stuck", filterBar.getBoundingClientRect().top <= navBottom + 1 && window.scrollY > 0);
}
let placing = false;
$(window).on("scroll resize", function () {
if (placing) return;
placing = true;
// follow the navbar during its slide transition
const start = performance.now();
(function step(now) {
placeFilter();
if (now - start < 400) requestAnimationFrame(step); else placing = false;
})(start);
});
placeFilter();
// headings that are jumped to (e.g. from 'On this page') must end up below the filter field, and below the navbar
// when jumping up, since the navbar only shows when scrolling up
$(document).on("click", 'a[href^="#"]', function () {
const target = document.getElementById(decodeURIComponent($(this).attr("href").slice(1)));
if (!target) return;
const up = target.getBoundingClientRect().top < 0;
document.documentElement.style.scrollPaddingTop = ((up && navbar ? navbar.offsetHeight : 0) + filterBar.offsetHeight + 8) + "px";
});
// the same when opening a link to a section, as the browser jumps before this script runs
if (window.location.hash) {
const target = document.getElementById(decodeURIComponent(window.location.hash.slice(1)));
if (target) {
document.documentElement.style.scrollPaddingTop = (filterBar.offsetHeight + 8) + "px";
target.scrollIntoView();
}
}
function updateMoreButton($item) {
const nHidden = $item.find("code.amr-ref-extra:not(.amr-ref-match)").length;
$item.find(".amr-ref-more").text("+ " + nHidden + " more").toggle(nHidden > 0);
}
$items.each(function () {
const $item = $(this);
const $codes = $item.find("dd code");
// pkgdown puts backticks around non-syntactic names, e.g. `%like%`
$codes.find("a").each(function () {
const name = $(this).text();
if (/^`.+`$/.test(name)) $(this).text(name.slice(1, -1));
});
$item.data("page", $item.find("dt a").attr("href"));
$item.data("text", ($item.find("dt").text() + " " + $item.find("dd").text()).toLowerCase());
// do not offer to show only one or two more
if ($codes.length > maxAliases + 2) {
$codes.slice(maxAliases).addClass("amr-ref-extra");
$item.find("dd").append('<button type="button" class="amr-ref-more"></button>');
updateMoreButton($item);
}
});
let h2Title = "";
$(".template-reference-index main").find("h2, h3").each(function () {
if (this.tagName === "H2") h2Title = $(this).text().trim();
else $(this).attr("data-amr-parent", h2Title);
});
$(".amr-ref-more").on("click", function () {
$(this).closest(".amr-ref-item").addClass("amr-ref-expanded");
$(this).remove();
});
function loadPageText() {
if (pageTextLoaded) return;
pageTextLoaded = true;
$.getJSON($("#search-input").data("search-index") || "../search.json", function (data) {
data.forEach(function (x) {
if (x.dir !== "Reference") return;
const page = x.path.split("/").pop();
pageText[page] = (pageText[page] || "") + " " + (x.what + " " + x.text + " " + x.code).toLowerCase();
});
filter();
});
}
function filter() {
const terms = $.trim($input.val()).toLowerCase().split(/\s+/).filter(Boolean);
$body.toggleClass("amr-ref-filtering", terms.length > 0);
let nDirect = 0;
let nText = 0;
$items.each(function () {
const $item = $(this);
const $codes = $item.find("dd code");
const direct = terms.length > 0 && terms.every(t => $item.data("text").includes(t));
const text = terms.length > 0 && !direct && terms.every(t => (pageText[$item.data("page")] || "").includes(t));
$item.toggleClass("amr-ref-hidden", terms.length > 0 && !direct && !text);
$item.toggleClass("amr-ref-textmatch", text);
// highlight the function names that match, which also reveals them if collapsed
$codes.each(function () {
const name = $(this).text().toLowerCase();
$(this).toggleClass("amr-ref-match", direct && terms.some(t => name.includes(t)));
});
updateMoreButton($item);
if (direct) nDirect++;
if (text) nText++;
});
// hide headings (with their descriptions) that have no visible topic before the next heading of the same or a higher level;
// this follows the document order, since pkgdown puts a heading and its topics in separate sibling blocks
const nVisible = new Map();
let h2 = null;
let h3 = null;
$(".template-reference-index main").find("h2, h3, .amr-ref-item").each(function () {
if (this.tagName === "H2") {
h2 = this;
h3 = null;
nVisible.set(this, 0);
} else if (this.tagName === "H3") {
h3 = this;
nVisible.set(this, 0);
} else if (!$(this).hasClass("amr-ref-hidden")) {
if (h2) nVisible.set(h2, nVisible.get(h2) + 1);
if (h3) nVisible.set(h3, nVisible.get(h3) + 1);
}
});
nVisible.forEach((n, heading) => $(heading).closest(".section").toggleClass("amr-ref-hidden", n === 0));
// blocks that only hold topics
$(".template-reference-index main .section").not(":has(h2, h3)").each(function () {
$(this).toggleClass("amr-ref-hidden", $(this).find(".amr-ref-item:not(.amr-ref-hidden)").length === 0);
});
const topics = n => n + (n === 1 ? " topic" : " topics");
if (terms.length === 0) {
$status.text("");
} else if (nDirect + nText === 0) {
$status.text(pageTextLoaded ? "No topics found" : "Searching...");
} else if (nText === 0) {
$status.text(topics(nDirect) + " found by name or title");
} else if (nDirect === 0) {
$status.text("No topics found by name or title, but " + topics(nText) + " mention it");
} else {
$status.text(topics(nDirect) + " found by name or title, and " + nText + " more mention it");
}
placeFilter();
}
$input.on("input", function () {
loadPageText();
filter();
});
$input.on("keydown", function (e) {
if (e.key === "Escape") {
$input.val("");
filter();
}
});
// press '/' anywhere to focus the filter field
$(document).on("keydown", function (e) {
if (e.key === "/" && !$(e.target).is("input, textarea")) {
e.preventDefault();
$input.trigger("focus");
}
});
}
// remove leading newline in code examples on changelog
if ($("body .template-news").length > 0) {
$("body .template-news").html($("body .template-news").html().replaceAll('sourceCode R">\n<span', 'sourceCode R"><span'));
@@ -160,6 +331,23 @@ $(function () {
// add lines between collaborator types
$('.template-citation-authors li:contains("Contributor")').first().before('<hr>');
$('.template-citation-authors li:contains("Former doctoral advisor")').first().before('<hr>');
// dark variants of figures: list a file name here and put a file with '_dark' before its extension next to it in pkgdown/assets,
// e.g. "logo_umcg.svg" requires "logo_umcg_dark.svg"; images are swapped when the theme is dark, also after switching theme
const darkVariants = [];
function applyDarkVariants() {
const dark = document.documentElement.getAttribute("data-bs-theme") === "dark";
$("img").each(function () {
const src = $(this).attr("src") || "";
const file = src.split(/[?#]/)[0].split("/").pop();
const base = file.replace(/_dark(\.\w+)$/, "$1");
if (!darkVariants.includes(base)) return;
const target = dark ? base.replace(/(\.\w+)$/, "_dark$1") : base;
if (file !== target) $(this).attr("src", src.replace(file, target));
});
}
applyDarkVariants();
new MutationObserver(applyDarkVariants).observe(document.documentElement, { attributes: true, attributeFilter: ["data-bs-theme"] });
});
$('head').append("<!-- Matomo --><script type='text/javascript'> var _paq = _paq || []; /* tracker methods like 'setCustomDimension' should be called before 'trackPageView' */ _paq.push(['setDomains', ['*.amr-for-r.org']]); _paq.push(['enableCrossDomainLinking']); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u='https://analyse.uscloud.nl/'; _paq.push(['setTrackerUrl', u+'piwik.php']); _paq.push(['setSiteId', '3']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); })();</script><!-- End Matomo Code -->");
+1 -1
View File
@@ -33,7 +33,7 @@
<a class="navbar-brand me-2" href="index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+443 -436
View File
@@ -510,501 +510,508 @@ means that this package:
# Package index
## Introduction to the package
## Getting started
Please find the introduction to (and some general information about) our
package here.
An overview of the package, its options for users and teams, and its 28
supported languages.
- [`AMR-package`](https://amr-for-r.org/reference/AMR.md)
[`AMR`](https://amr-for-r.org/reference/AMR.md) :
[The `AMR` Package](https://amr-for-r.org/reference/AMR.md)
: [`AMR-package`](https://amr-for-r.org/reference/AMR.md)
[`AMR`](https://amr-for-r.org/reference/AMR.md)
The `AMR` Package
[Options for the AMR Package](https://amr-for-r.org/reference/AMR-options.md)
: [`AMR-options`](https://amr-for-r.org/reference/AMR-options.md)
## Preparing data: microorganisms
[Translate Strings from the AMR Package](https://amr-for-r.org/reference/translate.md)
: [`get_AMR_locale()`](https://amr-for-r.org/reference/translate.md)
[`set_AMR_locale()`](https://amr-for-r.org/reference/translate.md)
[`reset_AMR_locale()`](https://amr-for-r.org/reference/translate.md)
[`translate_AMR()`](https://amr-for-r.org/reference/translate.md)
These functions are meant to get taxonomically valid properties of
microorganisms from any input, but also properties derived from
taxonomy, such as the Gram stain
([`mo_gramstain()`](https://amr-for-r.org/reference/mo_property.md)) ,
or [`mo_is_yeast()`](https://amr-for-r.org/reference/mo_property.md).
Use [`mo_source()`](https://amr-for-r.org/reference/mo_source.md) to
teach this package how to translate your own codes to valid
microorganisms, and use
[`add_custom_microorganisms()`](https://amr-for-r.org/reference/add_custom_microorganisms.md)
to add your own custom microorganisms to this package.
[Download and Unpack an AMR Course Repository](https://amr-for-r.org/reference/amr_course.md)
: [`amr_course()`](https://amr-for-r.org/reference/amr_course.md)
- [`as.mo()`](https://amr-for-r.org/reference/as.mo.md)
[`is.mo()`](https://amr-for-r.org/reference/as.mo.md)
[`mo_uncertainties()`](https://amr-for-r.org/reference/as.mo.md)
[`mo_renamed()`](https://amr-for-r.org/reference/as.mo.md)
[`mo_failures()`](https://amr-for-r.org/reference/as.mo.md)
[`mo_reset_session()`](https://amr-for-r.org/reference/as.mo.md)
[`mo_cleaning_regex()`](https://amr-for-r.org/reference/as.mo.md)
[`NA_mo_`](https://amr-for-r.org/reference/as.mo.md) : Transform
Arbitrary Input to Valid Microbial Taxonomy
- [`mo_name()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_fullname()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_shortname()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_subspecies()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_species()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_genus()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_family()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_order()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_class()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_phylum()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_kingdom()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_domain()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_type()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_status()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_pathogenicity()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_gramstain()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_is_gram_negative()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_is_gram_positive()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_is_yeast()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_is_intrinsic_resistant()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_oxygen_tolerance()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_is_anaerobic()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_morphology()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_snomed()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_ref()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_authors()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_year()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_lpsn()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_mycobank()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_gbif()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_rank()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_taxonomy()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_synonyms()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_current()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_group_members()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_info()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_url()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_property()`](https://amr-for-r.org/reference/mo_property.md) :
Get Properties of a Microorganism
- [`add_custom_microorganisms()`](https://amr-for-r.org/reference/add_custom_microorganisms.md)
[`clear_custom_microorganisms()`](https://amr-for-r.org/reference/add_custom_microorganisms.md)
: Add Custom Microorganisms
- [`set_mo_source()`](https://amr-for-r.org/reference/mo_source.md)
[`get_mo_source()`](https://amr-for-r.org/reference/mo_source.md) :
User-Defined Reference Data Set for Microorganisms
## Cleaning data
## Preparing data: antimicrobials
Transform raw input of any kind into valid microorganisms with
[`as.mo()`](https://amr-for-r.org/reference/as.mo.md), antimicrobials
with [`as.ab()`](https://amr-for-r.org/reference/as.ab.md), and MIC
values and disk diffusion zones with
[`as.mic()`](https://amr-for-r.org/reference/as.mic.md) and
[`as.disk()`](https://amr-for-r.org/reference/as.disk.md), and retrieve
their properties.
Use these functions to get valid properties of antimicrobials from any
input or to clean your input. You can even retrieve drug names and doses
from clinical text records, using
[`ab_from_text()`](https://amr-for-r.org/reference/ab_from_text.md).
### Microorganisms
- [`as.ab()`](https://amr-for-r.org/reference/as.ab.md)
[`is.ab()`](https://amr-for-r.org/reference/as.ab.md)
[`ab_reset_session()`](https://amr-for-r.org/reference/as.ab.md)
[`NA_ab_`](https://amr-for-r.org/reference/as.ab.md) : Transform Input
to an Antibiotic ID
- [`ab_name()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_cid()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_synonyms()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_tradenames()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_group()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_atc()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_atc_group1()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_atc_group2()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_loinc()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_ddd()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_ddd_units()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_info()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_url()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_property()`](https://amr-for-r.org/reference/ab_property.md)
[`set_ab_names()`](https://amr-for-r.org/reference/ab_property.md) :
Get Properties of an Antibiotic
- [`ab_from_text()`](https://amr-for-r.org/reference/ab_from_text.md) :
Retrieve Antimicrobial Drug Names and Doses from Clinical Text
- [`atc_online_property()`](https://amr-for-r.org/reference/atc_online.md)
[`atc_online_groups()`](https://amr-for-r.org/reference/atc_online.md)
[`atc_online_ddd()`](https://amr-for-r.org/reference/atc_online.md)
[`atc_online_ddd_units()`](https://amr-for-r.org/reference/atc_online.md)
: Get ATC Properties from WHOCC Website
- [`add_custom_antimicrobials()`](https://amr-for-r.org/reference/add_custom_antimicrobials.md)
[`add_custom_antimicrobial_synonyms()`](https://amr-for-r.org/reference/add_custom_antimicrobials.md)
[`clear_custom_antimicrobials()`](https://amr-for-r.org/reference/add_custom_antimicrobials.md)
: Add Custom Antimicrobials
[Transform Arbitrary Input to Valid Microbial Taxonomy](https://amr-for-r.org/reference/as.mo.md)
: [`as.mo()`](https://amr-for-r.org/reference/as.mo.md)
[`is.mo()`](https://amr-for-r.org/reference/as.mo.md)
[`mo_uncertainties()`](https://amr-for-r.org/reference/as.mo.md)
[`mo_renamed()`](https://amr-for-r.org/reference/as.mo.md)
[`mo_failures()`](https://amr-for-r.org/reference/as.mo.md)
[`mo_reset_session()`](https://amr-for-r.org/reference/as.mo.md)
[`mo_cleaning_regex()`](https://amr-for-r.org/reference/as.mo.md)
[`NA_mo_`](https://amr-for-r.org/reference/as.mo.md)
## Interpreting data: antimicrobial results
[Get Properties of a Microorganism](https://amr-for-r.org/reference/mo_property.md)
: [`mo_name()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_fullname()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_shortname()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_subspecies()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_species()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_genus()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_family()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_order()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_class()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_phylum()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_kingdom()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_domain()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_type()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_status()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_pathogenicity()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_gramstain()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_is_gram_negative()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_is_gram_positive()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_is_yeast()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_is_intrinsic_resistant()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_oxygen_tolerance()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_is_anaerobic()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_morphology()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_snomed()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_ref()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_authors()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_year()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_lpsn()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_mycobank()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_gbif()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_rank()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_taxonomy()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_synonyms()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_current()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_group_members()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_info()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_url()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_property()`](https://amr-for-r.org/reference/mo_property.md)
With [`as.mic()`](https://amr-for-r.org/reference/as.mic.md) and
[`as.disk()`](https://amr-for-r.org/reference/as.disk.md) you can
transform your raw input to valid MIC or disk diffusion values. Use
[`as.sir()`](https://amr-for-r.org/reference/as.sir.md) for cleaning raw
data to let it only contain “R”, “I” and “S”, or to interpret MIC or
disk diffusion values as SIR based on the lastest EUCAST and CLSI
guidelines. Afterwards, you can extend antibiotic interpretations by
applying interpretive rules, for example [from
EUCAST](https://www.eucast.org/expert_rules_and_intrinsic_resistance/)
with
[`interpretive_rules()`](https://amr-for-r.org/reference/interpretive_rules.md).
[User-Defined Reference Data Set for Microorganisms](https://amr-for-r.org/reference/mo_source.md)
: [`set_mo_source()`](https://amr-for-r.org/reference/mo_source.md)
[`get_mo_source()`](https://amr-for-r.org/reference/mo_source.md)
- [`as.sir()`](https://amr-for-r.org/reference/as.sir.md)
[`NA_sir_`](https://amr-for-r.org/reference/as.sir.md)
[`is.sir()`](https://amr-for-r.org/reference/as.sir.md)
[`is_sir_eligible()`](https://amr-for-r.org/reference/as.sir.md)
[`sir_interpretation_history()`](https://amr-for-r.org/reference/as.sir.md)
: Interpret MIC and Disk Diffusion as SIR, or Clean Existing SIR Data
- [`as.mic()`](https://amr-for-r.org/reference/as.mic.md)
[`is.mic()`](https://amr-for-r.org/reference/as.mic.md)
[`NA_mic_`](https://amr-for-r.org/reference/as.mic.md)
[`rescale_mic()`](https://amr-for-r.org/reference/as.mic.md)
[`mic_p50()`](https://amr-for-r.org/reference/as.mic.md)
[`mic_p90()`](https://amr-for-r.org/reference/as.mic.md)
[`droplevels(`*`<mic>`*`)`](https://amr-for-r.org/reference/as.mic.md)
: Transform Input to Minimum Inhibitory Concentrations (MIC)
- [`as.disk()`](https://amr-for-r.org/reference/as.disk.md)
[`NA_disk_`](https://amr-for-r.org/reference/as.disk.md)
[`is.disk()`](https://amr-for-r.org/reference/as.disk.md) : Transform
Input to Disk Diffusion Diameters
- [`interpretive_rules()`](https://amr-for-r.org/reference/interpretive_rules.md)
[`eucast_rules()`](https://amr-for-r.org/reference/interpretive_rules.md)
[`clsi_rules()`](https://amr-for-r.org/reference/interpretive_rules.md)
[`eucast_dosage()`](https://amr-for-r.org/reference/interpretive_rules.md)
: Apply Interpretive Rules
- [`custom_interpretive_rules()`](https://amr-for-r.org/reference/custom_interpretive_rules.md)
: Define Custom Interpretive Rules
[Add Custom Microorganisms](https://amr-for-r.org/reference/add_custom_microorganisms.md)
: [`add_custom_microorganisms()`](https://amr-for-r.org/reference/add_custom_microorganisms.md)
[`clear_custom_microorganisms()`](https://amr-for-r.org/reference/add_custom_microorganisms.md)
[Calculate the Matching Score for Microorganisms](https://amr-for-r.org/reference/mo_matching_score.md)
: [`mo_matching_score()`](https://amr-for-r.org/reference/mo_matching_score.md)
### Antimicrobials
[Transform Input to an Antimicrobial Drug ID](https://amr-for-r.org/reference/as.ab.md)
: [`as.ab()`](https://amr-for-r.org/reference/as.ab.md)
[`is.ab()`](https://amr-for-r.org/reference/as.ab.md)
[`ab_reset_session()`](https://amr-for-r.org/reference/as.ab.md)
[`NA_ab_`](https://amr-for-r.org/reference/as.ab.md)
[Get Properties of an Antimicrobial Drug](https://amr-for-r.org/reference/ab_property.md)
: [`ab_name()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_cid()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_synonyms()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_tradenames()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_group()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_atc()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_atc_group1()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_atc_group2()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_loinc()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_ddd()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_ddd_units()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_info()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_url()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_property()`](https://amr-for-r.org/reference/ab_property.md)
[`set_ab_names()`](https://amr-for-r.org/reference/ab_property.md)
[Retrieve Antimicrobial Drug Names and Doses from Clinical Text](https://amr-for-r.org/reference/ab_from_text.md)
: [`ab_from_text()`](https://amr-for-r.org/reference/ab_from_text.md)
[Add Custom Antimicrobials](https://amr-for-r.org/reference/add_custom_antimicrobials.md)
: [`add_custom_antimicrobials()`](https://amr-for-r.org/reference/add_custom_antimicrobials.md)
[`add_custom_antimicrobial_synonyms()`](https://amr-for-r.org/reference/add_custom_antimicrobials.md)
[`clear_custom_antimicrobials()`](https://amr-for-r.org/reference/add_custom_antimicrobials.md)
[Get ATC Properties from WHOCC Website](https://amr-for-r.org/reference/atc_online.md)
: [`atc_online_property()`](https://amr-for-r.org/reference/atc_online.md)
[`atc_online_groups()`](https://amr-for-r.org/reference/atc_online.md)
[`atc_online_ddd()`](https://amr-for-r.org/reference/atc_online.md)
[`atc_online_ddd_units()`](https://amr-for-r.org/reference/atc_online.md)
### Antivirals
[Transform Input to an Antiviral Drug ID](https://amr-for-r.org/reference/as.av.md)
: [`as.av()`](https://amr-for-r.org/reference/as.av.md)
[`is.av()`](https://amr-for-r.org/reference/as.av.md)
[Get Properties of an Antiviral Drug](https://amr-for-r.org/reference/av_property.md)
: [`av_name()`](https://amr-for-r.org/reference/av_property.md)
[`av_cid()`](https://amr-for-r.org/reference/av_property.md)
[`av_synonyms()`](https://amr-for-r.org/reference/av_property.md)
[`av_tradenames()`](https://amr-for-r.org/reference/av_property.md)
[`av_group()`](https://amr-for-r.org/reference/av_property.md)
[`av_atc()`](https://amr-for-r.org/reference/av_property.md)
[`av_loinc()`](https://amr-for-r.org/reference/av_property.md)
[`av_ddd()`](https://amr-for-r.org/reference/av_property.md)
[`av_ddd_units()`](https://amr-for-r.org/reference/av_property.md)
[`av_info()`](https://amr-for-r.org/reference/av_property.md)
[`av_url()`](https://amr-for-r.org/reference/av_property.md)
[`av_property()`](https://amr-for-r.org/reference/av_property.md)
[Retrieve Antiviral Drug Names and Doses from Clinical Text](https://amr-for-r.org/reference/av_from_text.md)
: [`av_from_text()`](https://amr-for-r.org/reference/av_from_text.md)
### Test results
[Transform Input to Minimum Inhibitory Concentrations (MIC)](https://amr-for-r.org/reference/as.mic.md)
: [`as.mic()`](https://amr-for-r.org/reference/as.mic.md)
[`is.mic()`](https://amr-for-r.org/reference/as.mic.md)
[`NA_mic_`](https://amr-for-r.org/reference/as.mic.md)
[`rescale_mic()`](https://amr-for-r.org/reference/as.mic.md)
[`mic_p50()`](https://amr-for-r.org/reference/as.mic.md)
[`mic_p90()`](https://amr-for-r.org/reference/as.mic.md)
[`droplevels(`*`<mic>`*`)`](https://amr-for-r.org/reference/as.mic.md)
[Transform Input to Disk Diffusion Diameters](https://amr-for-r.org/reference/as.disk.md)
: [`as.disk()`](https://amr-for-r.org/reference/as.disk.md)
[`NA_disk_`](https://amr-for-r.org/reference/as.disk.md)
[`is.disk()`](https://amr-for-r.org/reference/as.disk.md)
## Interpreting results as SIR
Interpret MIC values and disk diffusion zones as SIR with
[`as.sir()`](https://amr-for-r.org/reference/as.sir.md), according to
EUCAST or CLSI, for every guideline year from 2011 to 2026, and apply
interpretive rules.
[`as.sir()`](https://amr-for-r.org/reference/as.sir.md) also cleans
existing SIR data.
[Interpret MIC and Disk Diffusion as SIR, or Clean Existing SIR Data](https://amr-for-r.org/reference/as.sir.md)
: [`as.sir()`](https://amr-for-r.org/reference/as.sir.md)
[`NA_sir_`](https://amr-for-r.org/reference/as.sir.md)
[`is.sir()`](https://amr-for-r.org/reference/as.sir.md)
[`is_sir_eligible()`](https://amr-for-r.org/reference/as.sir.md)
[`sir_interpretation_history()`](https://amr-for-r.org/reference/as.sir.md)
[Apply Interpretive Rules](https://amr-for-r.org/reference/interpretive_rules.md)
: [`interpretive_rules()`](https://amr-for-r.org/reference/interpretive_rules.md)
[`eucast_rules()`](https://amr-for-r.org/reference/interpretive_rules.md)
[`clsi_rules()`](https://amr-for-r.org/reference/interpretive_rules.md)
[`eucast_dosage()`](https://amr-for-r.org/reference/interpretive_rules.md)
[Define Custom Interpretive Rules](https://amr-for-r.org/reference/custom_interpretive_rules.md)
: [`custom_interpretive_rules()`](https://amr-for-r.org/reference/custom_interpretive_rules.md)
## Analysing data
Use these function for the analysis part. You can use
[`susceptibility()`](https://amr-for-r.org/reference/proportion.md) or
[`resistance()`](https://amr-for-r.org/reference/proportion.md) on any
antibiotic column. With
[`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md), you
can generate a traditional, combined, syndromic, or weighted-incidence
syndromic combination antibiogram (WISCA). This function also comes with
support for R Markdown and Quarto. Be sure to first select the isolates
that are appropiate for analysis, by using
[`first_isolate()`](https://amr-for-r.org/reference/first_isolate.md) or
[`is_new_episode()`](https://amr-for-r.org/reference/get_episode.md).
You can also filter your data on certain resistance in certain
antibiotic classes
([`carbapenems()`](https://amr-for-r.org/reference/antimicrobial_selectors.md),
[`aminoglycosides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)),
or determine multi-drug resistant microorganisms (MDRO,
[`mdro()`](https://amr-for-r.org/reference/mdro.md)).
Select first isolates with
[`first_isolate()`](https://amr-for-r.org/reference/first_isolate.md),
generate traditional, combination, syndromic, and WISCA antibiograms
with [`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md)
and [`wisca()`](https://amr-for-r.org/reference/antibiogram.md),
calculate resistance, and determine multidrug-resistant organisms.
- [`wisca()`](https://amr-for-r.org/reference/antibiogram.md)
[`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md)
[`retrieve_wisca_parameters()`](https://amr-for-r.org/reference/antibiogram.md)
[`plot(`*`<antibiogram>`*`)`](https://amr-for-r.org/reference/antibiogram.md)
[`autoplot(`*`<antibiogram>`*`)`](https://amr-for-r.org/reference/antibiogram.md)
[`wisca_plot()`](https://amr-for-r.org/reference/antibiogram.md)
[`knit_print(`*`<antibiogram>`*`)`](https://amr-for-r.org/reference/antibiogram.md)
: Generate Antibiograms (WISCA, Traditional, Combination, or
Syndromic)
### Selecting isolates and antimicrobials
- [`resistance()`](https://amr-for-r.org/reference/proportion.md)
[`susceptibility()`](https://amr-for-r.org/reference/proportion.md)
[`sir_confidence_interval()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_R()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_IR()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_I()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_SI()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_S()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_df()`](https://amr-for-r.org/reference/proportion.md)
[`sir_df()`](https://amr-for-r.org/reference/proportion.md) :
Calculate Antimicrobial Resistance
[Determine First Isolates](https://amr-for-r.org/reference/first_isolate.md)
: [`first_isolate()`](https://amr-for-r.org/reference/first_isolate.md)
[`filter_first_isolate()`](https://amr-for-r.org/reference/first_isolate.md)
- [`count_resistant()`](https://amr-for-r.org/reference/count.md)
[`count_susceptible()`](https://amr-for-r.org/reference/count.md)
[`count_S()`](https://amr-for-r.org/reference/count.md)
[`count_SI()`](https://amr-for-r.org/reference/count.md)
[`count_I()`](https://amr-for-r.org/reference/count.md)
[`count_IR()`](https://amr-for-r.org/reference/count.md)
[`count_R()`](https://amr-for-r.org/reference/count.md)
[`count_all()`](https://amr-for-r.org/reference/count.md)
[`n_sir()`](https://amr-for-r.org/reference/count.md)
[`count_df()`](https://amr-for-r.org/reference/count.md) : Count
Available Isolates
[Determine Clinical or Epidemic Episodes](https://amr-for-r.org/reference/get_episode.md)
: [`get_episode()`](https://amr-for-r.org/reference/get_episode.md)
[`is_new_episode()`](https://amr-for-r.org/reference/get_episode.md)
- [`sir_combine()`](https://amr-for-r.org/reference/sir_combine.md) :
Combine SIR Results of Multiple Antimicrobials
[(Key) Antimicrobials for First Weighted Isolates](https://amr-for-r.org/reference/key_antimicrobials.md)
: [`key_antimicrobials()`](https://amr-for-r.org/reference/key_antimicrobials.md)
[`all_antimicrobials()`](https://amr-for-r.org/reference/key_antimicrobials.md)
[`antimicrobials_equal()`](https://amr-for-r.org/reference/key_antimicrobials.md)
- [`get_episode()`](https://amr-for-r.org/reference/get_episode.md)
[`is_new_episode()`](https://amr-for-r.org/reference/get_episode.md) :
Determine Clinical or Epidemic Episodes
[Filter Top *n* Microorganisms](https://amr-for-r.org/reference/top_n_microorganisms.md)
: [`top_n_microorganisms()`](https://amr-for-r.org/reference/top_n_microorganisms.md)
- [`first_isolate()`](https://amr-for-r.org/reference/first_isolate.md)
[`filter_first_isolate()`](https://amr-for-r.org/reference/first_isolate.md)
: Determine First Isolates
[Antimicrobial Selectors](https://amr-for-r.org/reference/antimicrobial_selectors.md)
: [`aminoglycosides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`aminopenicillins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`antifungals()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`antimycobacterials()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`betalactams()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`betalactams_with_inhibitor()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`carbapenems()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins_1st()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins_2nd()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins_3rd()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins_4th()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins_5th()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`fluoroquinolones()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`glycopeptides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`ionophores()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`isoxazolylpenicillins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`lincosamides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`lipoglycopeptides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`macrolides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`monobactams()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`nitrofurans()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`oxazolidinones()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`penicillins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`peptides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`phenicols()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`phosphonics()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`polymyxins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`quinolones()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`rifamycins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`spiropyrimidinetriones()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`streptogramins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`sulfonamides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`tetracyclines()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`trimethoprims()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`ureidopenicillins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`amr_class()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`amr_selector()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`administrable_per_os()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`administrable_iv()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`not_intrinsic_resistant()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
- [`key_antimicrobials()`](https://amr-for-r.org/reference/key_antimicrobials.md)
[`all_antimicrobials()`](https://amr-for-r.org/reference/key_antimicrobials.md)
[`antimicrobials_equal()`](https://amr-for-r.org/reference/key_antimicrobials.md)
: (Key) Antimicrobials for First Weighted Isolates
[Guess Antimicrobial Column](https://amr-for-r.org/reference/guess_ab_col.md)
: [`guess_ab_col()`](https://amr-for-r.org/reference/guess_ab_col.md)
- [`mdro()`](https://amr-for-r.org/reference/mdro.md)
[`brmo()`](https://amr-for-r.org/reference/mdro.md)
[`mrgn()`](https://amr-for-r.org/reference/mdro.md)
[`mdr_tb()`](https://amr-for-r.org/reference/mdro.md)
[`mdr_cmi2012()`](https://amr-for-r.org/reference/mdro.md)
[`eucast_exceptional_phenotypes()`](https://amr-for-r.org/reference/mdro.md)
: Determine Multidrug-Resistant Organisms (MDRO)
[Check Availability of Columns](https://amr-for-r.org/reference/availability.md)
: [`availability()`](https://amr-for-r.org/reference/availability.md)
- [`custom_mdro_guideline()`](https://amr-for-r.org/reference/custom_mdro_guideline.md)
[`c(`*`<custom_mdro_guideline>`*`)`](https://amr-for-r.org/reference/custom_mdro_guideline.md)
: Define Custom MDRO Guideline
### Generating antibiograms and WISCA
- [`bug_drug_combinations()`](https://amr-for-r.org/reference/bug_drug_combinations.md)
[`format(`*`<bug_drug_combinations>`*`)`](https://amr-for-r.org/reference/bug_drug_combinations.md)
: Determine Bug-Drug Combinations
[Generate Antibiograms (WISCA, Traditional, Combination, or Syndromic)](https://amr-for-r.org/reference/antibiogram.md)
: [`wisca()`](https://amr-for-r.org/reference/antibiogram.md)
[`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md)
[`retrieve_wisca_parameters()`](https://amr-for-r.org/reference/antibiogram.md)
[`plot(`*`<antibiogram>`*`)`](https://amr-for-r.org/reference/antibiogram.md)
[`autoplot(`*`<antibiogram>`*`)`](https://amr-for-r.org/reference/antibiogram.md)
[`wisca_plot()`](https://amr-for-r.org/reference/antibiogram.md)
[`knit_print(`*`<antibiogram>`*`)`](https://amr-for-r.org/reference/antibiogram.md)
- [`aminoglycosides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`aminopenicillins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`antifungals()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`antimycobacterials()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`betalactams()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`betalactams_with_inhibitor()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`carbapenems()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins_1st()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins_2nd()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins_3rd()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins_4th()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins_5th()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`fluoroquinolones()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`glycopeptides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`ionophores()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`isoxazolylpenicillins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`lincosamides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`lipoglycopeptides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`macrolides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`monobactams()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`nitrofurans()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`oxazolidinones()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`penicillins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`peptides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`phenicols()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`phosphonics()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`polymyxins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`quinolones()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`rifamycins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`spiropyrimidinetriones()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`streptogramins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`sulfonamides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`tetracyclines()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`trimethoprims()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`ureidopenicillins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`amr_class()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`amr_selector()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`administrable_per_os()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`administrable_iv()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`not_intrinsic_resistant()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
: Antimicrobial Selectors
### Calculating resistance and susceptibility
- [`top_n_microorganisms()`](https://amr-for-r.org/reference/top_n_microorganisms.md)
:
[Calculate Antimicrobial Resistance](https://amr-for-r.org/reference/proportion.md)
: [`resistance()`](https://amr-for-r.org/reference/proportion.md)
[`susceptibility()`](https://amr-for-r.org/reference/proportion.md)
[`sir_confidence_interval()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_R()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_IR()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_I()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_SI()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_S()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_df()`](https://amr-for-r.org/reference/proportion.md)
[`sir_df()`](https://amr-for-r.org/reference/proportion.md)
Filter Top *n* Microorganisms
[Count Available Isolates](https://amr-for-r.org/reference/count.md)
: [`count_resistant()`](https://amr-for-r.org/reference/count.md)
[`count_susceptible()`](https://amr-for-r.org/reference/count.md)
[`count_S()`](https://amr-for-r.org/reference/count.md)
[`count_SI()`](https://amr-for-r.org/reference/count.md)
[`count_I()`](https://amr-for-r.org/reference/count.md)
[`count_IR()`](https://amr-for-r.org/reference/count.md)
[`count_R()`](https://amr-for-r.org/reference/count.md)
[`count_all()`](https://amr-for-r.org/reference/count.md)
[`n_sir()`](https://amr-for-r.org/reference/count.md)
[`count_df()`](https://amr-for-r.org/reference/count.md)
- [`mean_amr_distance()`](https://amr-for-r.org/reference/mean_amr_distance.md)
[`amr_distance_from_row()`](https://amr-for-r.org/reference/mean_amr_distance.md)
: Calculate the Mean AMR Distance
[Combine SIR Results of Multiple Antimicrobials](https://amr-for-r.org/reference/sir_combine.md)
: [`sir_combine()`](https://amr-for-r.org/reference/sir_combine.md)
- [`resistance_predict()`](https://amr-for-r.org/reference/resistance_predict.md)
[`sir_predict()`](https://amr-for-r.org/reference/resistance_predict.md)
[`plot(`*`<resistance_predict>`*`)`](https://amr-for-r.org/reference/resistance_predict.md)
[`ggplot_sir_predict()`](https://amr-for-r.org/reference/resistance_predict.md)
[`autoplot(`*`<resistance_predict>`*`)`](https://amr-for-r.org/reference/resistance_predict.md)
: Predict Antimicrobial Resistance
[Determine Bug-Drug Combinations](https://amr-for-r.org/reference/bug_drug_combinations.md)
: [`bug_drug_combinations()`](https://amr-for-r.org/reference/bug_drug_combinations.md)
[`format(`*`<bug_drug_combinations>`*`)`](https://amr-for-r.org/reference/bug_drug_combinations.md)
- [`guess_ab_col()`](https://amr-for-r.org/reference/guess_ab_col.md) :
Guess Antibiotic Column
### Determining multidrug resistance
## Plotting data
[Determine Multidrug-Resistant Organisms (MDRO)](https://amr-for-r.org/reference/mdro.md)
: [`mdro()`](https://amr-for-r.org/reference/mdro.md)
[`brmo()`](https://amr-for-r.org/reference/mdro.md)
[`mrgn()`](https://amr-for-r.org/reference/mdro.md)
[`mdr_tb()`](https://amr-for-r.org/reference/mdro.md)
[`mdr_cmi2012()`](https://amr-for-r.org/reference/mdro.md)
[`eucast_exceptional_phenotypes()`](https://amr-for-r.org/reference/mdro.md)
Use these functions for the plotting part. The `scale_*_mic()` functions
extend the ggplot2 package to allow plotting of MIC values, even within
a manually set range. If using
[`plot()`](https://amr-for-r.org/reference/plot.md) (base R) or
[`autoplot()`](https://ggplot2.tidyverse.org/reference/autoplot.html)
(ggplot2) on MIC values or disk diffusion values, the user can set the
interpretation guideline to give the bars the right SIR colours. The
[`ggplot_sir()`](https://amr-for-r.org/reference/ggplot_sir.md) function
is a short wrapper for users not much accustomed to ggplot2 yet. The
[`ggplot_pca()`](https://amr-for-r.org/reference/ggplot_pca.md) function
is a specific function to plot so-called biplots for PCA (principal
component analysis).
[Define Custom MDRO Guideline](https://amr-for-r.org/reference/custom_mdro_guideline.md)
: [`custom_mdro_guideline()`](https://amr-for-r.org/reference/custom_mdro_guideline.md)
[`c(`*`<custom_mdro_guideline>`*`)`](https://amr-for-r.org/reference/custom_mdro_guideline.md)
- [`scale_x_mic()`](https://amr-for-r.org/reference/plot.md)
[`scale_y_mic()`](https://amr-for-r.org/reference/plot.md)
[`scale_colour_mic()`](https://amr-for-r.org/reference/plot.md)
[`scale_fill_mic()`](https://amr-for-r.org/reference/plot.md)
[`scale_x_sir()`](https://amr-for-r.org/reference/plot.md)
[`scale_colour_sir()`](https://amr-for-r.org/reference/plot.md)
[`scale_fill_sir()`](https://amr-for-r.org/reference/plot.md)
[`plot(`*`<mic>`*`)`](https://amr-for-r.org/reference/plot.md)
[`autoplot(`*`<mic>`*`)`](https://amr-for-r.org/reference/plot.md)
[`plot(`*`<disk>`*`)`](https://amr-for-r.org/reference/plot.md)
[`autoplot(`*`<disk>`*`)`](https://amr-for-r.org/reference/plot.md)
[`plot(`*`<sir>`*`)`](https://amr-for-r.org/reference/plot.md)
[`autoplot(`*`<sir>`*`)`](https://amr-for-r.org/reference/plot.md)
[`facet_sir()`](https://amr-for-r.org/reference/plot.md)
[`scale_y_percent()`](https://amr-for-r.org/reference/plot.md)
[`scale_sir_colours()`](https://amr-for-r.org/reference/plot.md)
[`theme_sir()`](https://amr-for-r.org/reference/plot.md) : Plotting
Helpers for AMR Data Analysis
## Visualising data
- [`ggplot_sir()`](https://amr-for-r.org/reference/ggplot_sir.md)
[`geom_sir()`](https://amr-for-r.org/reference/ggplot_sir.md)
[`labels_sir_count()`](https://amr-for-r.org/reference/ggplot_sir.md)
:
Plot MIC values, disk zones, and SIR results in base R or `ggplot2`,
with scales and colours tailored to AMR data.
AMR Plots with `ggplot2`
[Plotting Helpers for AMR Data Analysis](https://amr-for-r.org/reference/plot.md)
: [`scale_x_mic()`](https://amr-for-r.org/reference/plot.md)
[`scale_y_mic()`](https://amr-for-r.org/reference/plot.md)
[`scale_colour_mic()`](https://amr-for-r.org/reference/plot.md)
[`scale_fill_mic()`](https://amr-for-r.org/reference/plot.md)
[`scale_x_sir()`](https://amr-for-r.org/reference/plot.md)
[`scale_colour_sir()`](https://amr-for-r.org/reference/plot.md)
[`scale_fill_sir()`](https://amr-for-r.org/reference/plot.md)
[`plot(`*`<mic>`*`)`](https://amr-for-r.org/reference/plot.md)
[`autoplot(`*`<mic>`*`)`](https://amr-for-r.org/reference/plot.md)
[`plot(`*`<disk>`*`)`](https://amr-for-r.org/reference/plot.md)
[`autoplot(`*`<disk>`*`)`](https://amr-for-r.org/reference/plot.md)
[`plot(`*`<sir>`*`)`](https://amr-for-r.org/reference/plot.md)
[`autoplot(`*`<sir>`*`)`](https://amr-for-r.org/reference/plot.md)
[`facet_sir()`](https://amr-for-r.org/reference/plot.md)
[`scale_y_percent()`](https://amr-for-r.org/reference/plot.md)
[`scale_sir_colours()`](https://amr-for-r.org/reference/plot.md)
[`theme_sir()`](https://amr-for-r.org/reference/plot.md)
- [`ggplot_pca()`](https://amr-for-r.org/reference/ggplot_pca.md) :
[AMR Plots with `ggplot2`](https://amr-for-r.org/reference/ggplot_sir.md)
: [`ggplot_sir()`](https://amr-for-r.org/reference/ggplot_sir.md)
[`geom_sir()`](https://amr-for-r.org/reference/ggplot_sir.md)
[`labels_sir_count()`](https://amr-for-r.org/reference/ggplot_sir.md)
PCA Biplot with `ggplot2`
[PCA Biplot with `ggplot2`](https://amr-for-r.org/reference/ggplot_pca.md)
: [`ggplot_pca()`](https://amr-for-r.org/reference/ggplot_pca.md)
## AMR-specific options
## Modelling
The AMR package is customisable, by providing settings that can be set
per user or per team. For example, the default interpretation guideline
can be changed from EUCAST to CLSI, or a supported language can be set
for the whole team (system-language independent) for antibiotic names in
a foreign language.
Use AMR data types in `tidymodels` pipelines, and perform principal
component analysis or distance calculations on resistance profiles.
- [`AMR-options`](https://amr-for-r.org/reference/AMR-options.md) :
Options for the AMR package
[AMR Extensions for Tidymodels](https://amr-for-r.org/reference/amr-tidymodels.md)
: [`all_sir()`](https://amr-for-r.org/reference/amr-tidymodels.md)
[`all_sir_predictors()`](https://amr-for-r.org/reference/amr-tidymodels.md)
[`all_mic()`](https://amr-for-r.org/reference/amr-tidymodels.md)
[`all_mic_predictors()`](https://amr-for-r.org/reference/amr-tidymodels.md)
[`all_disk()`](https://amr-for-r.org/reference/amr-tidymodels.md)
[`all_disk_predictors()`](https://amr-for-r.org/reference/amr-tidymodels.md)
[`step_mic_log2()`](https://amr-for-r.org/reference/amr-tidymodels.md)
[`step_sir_numeric()`](https://amr-for-r.org/reference/amr-tidymodels.md)
## Other: antiviral drugs
[Principal Component Analysis (for AMR)](https://amr-for-r.org/reference/pca.md)
: [`pca()`](https://amr-for-r.org/reference/pca.md)
This package also provides extensive support for antiviral agents, even
though it is not the primary scope of this package. Working with data
containing information about antiviral drugs was never easier. Use these
functions to get valid properties of antiviral drugs from any input or
to clean your input. You can even retrieve drug names and doses from
clinical text records, using
[`av_from_text()`](https://amr-for-r.org/reference/av_from_text.md).
[Calculate the Mean AMR Distance](https://amr-for-r.org/reference/mean_amr_distance.md)
: [`mean_amr_distance()`](https://amr-for-r.org/reference/mean_amr_distance.md)
[`amr_distance_from_row()`](https://amr-for-r.org/reference/mean_amr_distance.md)
- [`as.av()`](https://amr-for-r.org/reference/as.av.md)
[`is.av()`](https://amr-for-r.org/reference/as.av.md) : Transform
Input to an Antiviral Drug ID
- [`av_name()`](https://amr-for-r.org/reference/av_property.md)
[`av_cid()`](https://amr-for-r.org/reference/av_property.md)
[`av_synonyms()`](https://amr-for-r.org/reference/av_property.md)
[`av_tradenames()`](https://amr-for-r.org/reference/av_property.md)
[`av_group()`](https://amr-for-r.org/reference/av_property.md)
[`av_atc()`](https://amr-for-r.org/reference/av_property.md)
[`av_loinc()`](https://amr-for-r.org/reference/av_property.md)
[`av_ddd()`](https://amr-for-r.org/reference/av_property.md)
[`av_ddd_units()`](https://amr-for-r.org/reference/av_property.md)
[`av_info()`](https://amr-for-r.org/reference/av_property.md)
[`av_url()`](https://amr-for-r.org/reference/av_property.md)
[`av_property()`](https://amr-for-r.org/reference/av_property.md) :
Get Properties of an Antiviral Drug
- [`av_from_text()`](https://amr-for-r.org/reference/av_from_text.md) :
Retrieve Antiviral Drug Names and Doses from Clinical Text
## Reference data
## Other: background information on included data
The data sets underlying this package, all of which can also be
[downloaded in other
formats](https://amr-for-r.org/articles/datasets.md).
Some pages about our package and its external sources. Be sure to read
our [How To’s](https://amr-for-r.org/articles/index.md) for more
information about how to work with functions in this package.
### Microorganisms
- [`microorganisms`](https://amr-for-r.org/reference/microorganisms.md)
: Data Set with 103 222 Taxonomic Records of Microorganisms
- [`antimicrobials`](https://amr-for-r.org/reference/antimicrobials.md)
[`antibiotics`](https://amr-for-r.org/reference/antimicrobials.md)
[`antivirals`](https://amr-for-r.org/reference/antimicrobials.md) :
Data Sets with 626 Antimicrobial Drugs
- [`clinical_breakpoints`](https://amr-for-r.org/reference/clinical_breakpoints.md)
: Data Set with Clinical Breakpoints for SIR Interpretation
- [`example_isolates`](https://amr-for-r.org/reference/example_isolates.md)
: Data Set with 2 000 Example Isolates
- [`esbl_isolates`](https://amr-for-r.org/reference/esbl_isolates.md) :
Data Set with 500 ESBL Isolates
- [`microorganisms.codes`](https://amr-for-r.org/reference/microorganisms.codes.md)
: Data Set with 6 293 Common Microorganism Codes
- [`microorganisms.groups`](https://amr-for-r.org/reference/microorganisms.groups.md)
: Data Set with 466 Microorganisms In Species Groups
- [`intrinsic_resistant`](https://amr-for-r.org/reference/intrinsic_resistant.md)
: Data Set Denoting Bacterial Intrinsic Resistance
- [`dosage`](https://amr-for-r.org/reference/dosage.md) : Data Set with
Treatment Dosages as Defined by EUCAST
- [`WHOCC`](https://amr-for-r.org/reference/WHOCC.md) : WHOCC: WHO
Collaborating Centre for Drug Statistics Methodology
- [`example_isolates_unclean`](https://amr-for-r.org/reference/example_isolates_unclean.md)
: Data Set with Unclean Data
- [`WHONET`](https://amr-for-r.org/reference/WHONET.md) : Data Set with
500 Isolates - WHONET Example
[Data Set with 103 222 Taxonomic Records of Microorganisms](https://amr-for-r.org/reference/microorganisms.md)
: [`microorganisms`](https://amr-for-r.org/reference/microorganisms.md)
## Other: miscellaneous functions
[Data Set with 6 293 Common Microorganism Codes](https://amr-for-r.org/reference/microorganisms.codes.md)
: [`microorganisms.codes`](https://amr-for-r.org/reference/microorganisms.codes.md)
Miscellaneous functions that support various parts of an AMR analysis,
such as working with ages, joining tables, principal component analysis,
and other utilities. Especially the ‘like’ function can be useful:
`if (x %like% y) {...}`.
[Data Set with 466 Microorganisms In Species Groups](https://amr-for-r.org/reference/microorganisms.groups.md)
: [`microorganisms.groups`](https://amr-for-r.org/reference/microorganisms.groups.md)
- [`age_groups()`](https://amr-for-r.org/reference/age_groups.md) :
Split Ages into Age Groups
- [`age()`](https://amr-for-r.org/reference/age.md) : Age in Years of
Individuals
- [`amr_course()`](https://amr-for-r.org/reference/amr_course.md) :
Download and Unpack an AMR Course Repository
- [`export_ncbi_biosample()`](https://amr-for-r.org/reference/export_ncbi_biosample.md)
: Export Data Set as NCBI BioSample Antibiogram
- [`availability()`](https://amr-for-r.org/reference/availability.md) :
Check Availability of Columns
- [`get_AMR_locale()`](https://amr-for-r.org/reference/translate.md)
[`set_AMR_locale()`](https://amr-for-r.org/reference/translate.md)
[`reset_AMR_locale()`](https://amr-for-r.org/reference/translate.md)
[`translate_AMR()`](https://amr-for-r.org/reference/translate.md) :
Translate Strings from the AMR Package
- [`italicise_taxonomy()`](https://amr-for-r.org/reference/italicise_taxonomy.md)
[`italicize_taxonomy()`](https://amr-for-r.org/reference/italicise_taxonomy.md)
: Italicise Taxonomic Families, Genera, Species, Subspecies
- [`inner_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[`left_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[`right_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[`full_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[`semi_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[`anti_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
: Join microorganisms to a Data Set
- [`like()`](https://amr-for-r.org/reference/like.md)
[`` `%like%` ``](https://amr-for-r.org/reference/like.md)
[`` `%unlike%` ``](https://amr-for-r.org/reference/like.md)
[`` `%like_case%` ``](https://amr-for-r.org/reference/like.md)
[`` `%unlike_case%` ``](https://amr-for-r.org/reference/like.md) :
Vectorised Pattern Matching with Keyboard Shortcut
- [`mo_matching_score()`](https://amr-for-r.org/reference/mo_matching_score.md)
: Calculate the Matching Score for Microorganisms
- [`pca()`](https://amr-for-r.org/reference/pca.md) : Principal
Component Analysis (for AMR)
- [`random_mic()`](https://amr-for-r.org/reference/random.md)
[`random_disk()`](https://amr-for-r.org/reference/random.md)
[`random_sir()`](https://amr-for-r.org/reference/random.md) : Random
MIC Values/Disk Zones/SIR Generation
### Antimicrobials
## Other: statistical tests
[Data Sets with 626 Antimicrobial Drugs](https://amr-for-r.org/reference/antimicrobials.md)
: [`antimicrobials`](https://amr-for-r.org/reference/antimicrobials.md)
[`antibiotics`](https://amr-for-r.org/reference/antimicrobials.md)
[`antivirals`](https://amr-for-r.org/reference/antimicrobials.md)
Some statistical tests or methods usable for AMR analyses are not part
of base R and were added to this package for convenience.
[WHOCC: WHO Collaborating Centre for Drug Statistics Methodology](https://amr-for-r.org/reference/WHOCC.md)
: [`WHOCC`](https://amr-for-r.org/reference/WHOCC.md)
- [`g.test()`](https://amr-for-r.org/reference/g.test.md) :
[Data Set with Treatment Dosages as Defined by EUCAST](https://amr-for-r.org/reference/dosage.md)
: [`dosage`](https://amr-for-r.org/reference/dosage.md)
*G*-test for Count Data
### Breakpoints and intrinsic resistance
- [`kurtosis()`](https://amr-for-r.org/reference/kurtosis.md) : Kurtosis
of the Sample
[Data Set with Clinical Breakpoints for SIR Interpretation](https://amr-for-r.org/reference/clinical_breakpoints.md)
: [`clinical_breakpoints`](https://amr-for-r.org/reference/clinical_breakpoints.md)
- [`skewness()`](https://amr-for-r.org/reference/skewness.md) : Skewness
of the Sample
[Data Set Denoting Bacterial Intrinsic Resistance](https://amr-for-r.org/reference/intrinsic_resistant.md)
: [`intrinsic_resistant`](https://amr-for-r.org/reference/intrinsic_resistant.md)
## Other: deprecated functions/arguments/datasets
### Example data
These objects are deprecated, meaning that they will still work but show
a warning that they will be removed in a future version.
[Data Set with 2 000 Example Isolates](https://amr-for-r.org/reference/example_isolates.md)
: [`example_isolates`](https://amr-for-r.org/reference/example_isolates.md)
- [`custom_eucast_rules()`](https://amr-for-r.org/reference/AMR-deprecated.md)
[`ab_class()`](https://amr-for-r.org/reference/AMR-deprecated.md)
[`ab_selector()`](https://amr-for-r.org/reference/AMR-deprecated.md) :
Deprecated Functions, Arguments, or Datasets
[Data Set with Unclean Data](https://amr-for-r.org/reference/example_isolates_unclean.md)
: [`example_isolates_unclean`](https://amr-for-r.org/reference/example_isolates_unclean.md)
[Data Set with 500 ESBL Isolates](https://amr-for-r.org/reference/esbl_isolates.md)
: [`esbl_isolates`](https://amr-for-r.org/reference/esbl_isolates.md)
[Data Set with 500 Isolates - WHONET Example](https://amr-for-r.org/reference/WHONET.md)
: [`WHONET`](https://amr-for-r.org/reference/WHONET.md)
## Utilities
Helper functions for pattern matching with `%like%`, ages, joining and
italicising taxonomy, generating random test results, and data export.
[Vectorised Pattern Matching with Keyboard Shortcut](https://amr-for-r.org/reference/like.md)
: [`like()`](https://amr-for-r.org/reference/like.md)
[`` `%like%` ``](https://amr-for-r.org/reference/like.md)
[`` `%unlike%` ``](https://amr-for-r.org/reference/like.md)
[`` `%like_case%` ``](https://amr-for-r.org/reference/like.md)
[`` `%unlike_case%` ``](https://amr-for-r.org/reference/like.md)
[Age in Years of Individuals](https://amr-for-r.org/reference/age.md)
: [`age()`](https://amr-for-r.org/reference/age.md)
[Split Ages into Age Groups](https://amr-for-r.org/reference/age_groups.md)
: [`age_groups()`](https://amr-for-r.org/reference/age_groups.md)
[Join microorganisms to a Data Set](https://amr-for-r.org/reference/join.md)
: [`inner_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[`left_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[`right_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[`full_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[`semi_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[`anti_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[Italicise Taxonomic Families, Genera, Species, and Subspecies](https://amr-for-r.org/reference/italicise_taxonomy.md)
: [`italicise_taxonomy()`](https://amr-for-r.org/reference/italicise_taxonomy.md)
[`italicize_taxonomy()`](https://amr-for-r.org/reference/italicise_taxonomy.md)
[Generate Random MIC Values, Disk Zones, or SIR Results](https://amr-for-r.org/reference/random.md)
: [`random_mic()`](https://amr-for-r.org/reference/random.md)
[`random_disk()`](https://amr-for-r.org/reference/random.md)
[`random_sir()`](https://amr-for-r.org/reference/random.md)
[Export Data Set as NCBI BioSample Antibiogram](https://amr-for-r.org/reference/export_ncbi_biosample.md)
: [`export_ncbi_biosample()`](https://amr-for-r.org/reference/export_ncbi_biosample.md)
### Statistical tests
[*G*-test for Count Data](https://amr-for-r.org/reference/g.test.md)
: [`g.test()`](https://amr-for-r.org/reference/g.test.md)
[Kurtosis of the Sample](https://amr-for-r.org/reference/kurtosis.md)
: [`kurtosis()`](https://amr-for-r.org/reference/kurtosis.md)
[Skewness of the Sample](https://amr-for-r.org/reference/skewness.md)
: [`skewness()`](https://amr-for-r.org/reference/skewness.md)
## Deprecated functions
These still work, but show a warning and will be removed in a future
version.
[Deprecated Functions, Arguments, or Data Sets](https://amr-for-r.org/reference/AMR-deprecated.md)
: [`custom_eucast_rules()`](https://amr-for-r.org/reference/AMR-deprecated.md)
[`ab_class()`](https://amr-for-r.org/reference/AMR-deprecated.md)
[`ab_selector()`](https://amr-for-r.org/reference/AMR-deprecated.md)
[Predict Antimicrobial Resistance](https://amr-for-r.org/reference/resistance_predict.md)
: [`resistance_predict()`](https://amr-for-r.org/reference/resistance_predict.md)
[`sir_predict()`](https://amr-for-r.org/reference/resistance_predict.md)
[`plot(`*`<resistance_predict>`*`)`](https://amr-for-r.org/reference/resistance_predict.md)
[`ggplot_sir_predict()`](https://amr-for-r.org/reference/resistance_predict.md)
[`autoplot(`*`<resistance_predict>`*`)`](https://amr-for-r.org/reference/resistance_predict.md)
# Articles
+7 -3
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
@@ -49,10 +49,14 @@
</div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="3.1.0.9002" id="amr-3109002">AMR 3.1.0.9002<a class="anchor" aria-label="anchor" href="#amr-3109002"></a></h2>
<h2 class="pkg-version" data-toc-text="3.1.0.9003" id="amr-3109003">AMR 3.1.0.9003<a class="anchor" aria-label="anchor" href="#amr-3109003"></a></h2>
<div class="section level4">
<h4 id="other-3-1-0-9003">Other<a class="anchor" aria-label="anchor" href="#other-3-1-0-9003"></a></h4>
<ul><li>The manual index on the website was rewritten to improve findability, with sections ordered by task and a filter field</li>
</ul></div>
</div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="3.1.0" id="amr-310">AMR 3.1.0<a class="anchor" aria-label="anchor" href="#amr-310"></a></h2>
<h2 class="pkg-version" data-toc-text="3.1.0" id="amr-310">AMR 3.1.0<a class="anchor" aria-label="anchor" href="#amr-310"></a></h2><p class="text-muted">CRAN release: 2026-10-16</p>
<p>This substantial release makes most core functions considerably faster, adds EUCAST 2026 and CLSI 2026 breakpoints, adopts the new prokaryotic kingdoms of Göker and Oren (2024), introduces WT/NWT interpretation for ECOFFs, unifies the EUCAST and CLSI interpretive rules, and supports <code>tidymodels</code> pipelines. As it contains several breaking changes, please read the <em>Breaking</em> section below before updating.</p>
<div class="section level4">
<h4 id="breaking-3-1-0">Breaking<a class="anchor" aria-label="anchor" href="#breaking-3-1-0"></a></h4>
+8 -1
View File
@@ -1,9 +1,16 @@
# Changelog
## AMR 3.1.0.9002
## AMR 3.1.0.9003
#### Other
- The manual index on the website was rewritten to improve findability,
with sections ordered by task and a filter field
## AMR 3.1.0
CRAN release: 2026-10-16
This substantial release makes most core functions considerably faster,
adds EUCAST 2026 and CLSI 2026 breakpoints, adopts the new prokaryotic
kingdoms of Göker and Oren (2024), introduces WT/NWT interpretation for
+1 -1
View File
@@ -10,7 +10,7 @@ articles:
PCA: PCA.html
WHONET: WHONET.html
WISCA: WISCA.html
last_built: 2026-10-16T12:26Z
last_built: 2026-10-17T07:40Z
urls:
reference: https://amr-for-r.org/reference
article: https://amr-for-r.org/articles
+3 -3
View File
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Deprecated Functions, Arguments, or Datasets — AMR-deprecated • AMR (for R)</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.8/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.8/bootstrap.bundle.min.js"></script><link href="../deps/Lato-0.4.10/font.css" rel="stylesheet"><link href="../deps/Fira_Code-0.4.10/font.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><script src="../extra.js"></script><meta property="og:title" content="Deprecated Functions, Arguments, or Datasets — AMR-deprecated"><meta name="description" content="These objects are so-called 'Deprecated'. They will be removed in a future version of this package. Using these will give a warning with the name of the alternative object it has been replaced by (if there is one)."><meta property="og:description" content="These objects are so-called 'Deprecated'. They will be removed in a future version of this package. Using these will give a warning with the name of the alternative object it has been replaced by (if there is one)."><meta property="og:image" content="https://amr-for-r.org/logo.svg"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css" integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js" integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script></head><body>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Deprecated Functions, Arguments, or Data Sets — AMR-deprecated • AMR (for R)</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.8/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.8/bootstrap.bundle.min.js"></script><link href="../deps/Lato-0.4.10/font.css" rel="stylesheet"><link href="../deps/Fira_Code-0.4.10/font.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><script src="../extra.js"></script><meta property="og:title" content="Deprecated Functions, Arguments, or Data Sets — AMR-deprecated"><meta name="description" content="These objects are so-called 'Deprecated'. They will be removed in a future version of this package. Using these will give a warning with the name of the alternative object it has been replaced by (if there is one)."><meta property="og:description" content="These objects are so-called 'Deprecated'. They will be removed in a future version of this package. Using these will give a warning with the name of the alternative object it has been replaced by (if there is one)."><meta property="og:image" content="https://amr-for-r.org/logo.svg"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css" integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js" integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script></head><body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
@@ -44,7 +44,7 @@
</nav><div class="container template-reference-topic">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.svg" class="logo" alt=""><h1>Deprecated Functions, Arguments, or Datasets</h1>
<img src="../logo.svg" class="logo" alt=""><h1>Deprecated Functions, Arguments, or Data Sets</h1>
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/main/R/zz_deprecated.R" class="external-link"><code>R/zz_deprecated.R</code></a></small>
<div class="d-none name"><code>AMR-deprecated.Rd</code></div>
</div>
+1 -1
View File
@@ -1,4 +1,4 @@
# Deprecated Functions, Arguments, or Datasets
# Deprecated Functions, Arguments, or Data Sets
These objects are so-called
'[Deprecated](https://rdrr.io/r/base/Deprecated.html)'. **They will be
+3 -3
View File
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Options for the AMR package — AMR-options • AMR (for R)</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.8/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.8/bootstrap.bundle.min.js"></script><link href="../deps/Lato-0.4.10/font.css" rel="stylesheet"><link href="../deps/Fira_Code-0.4.10/font.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><script src="../extra.js"></script><meta property="og:title" content="Options for the AMR package — AMR-options"><meta name="description" content='This is an overview of all the package-specific options you can set in the AMR package. Set them using the options() function, e.g.:
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Options for the AMR Package — AMR-options • AMR (for R)</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.8/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.8/bootstrap.bundle.min.js"></script><link href="../deps/Lato-0.4.10/font.css" rel="stylesheet"><link href="../deps/Fira_Code-0.4.10/font.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><script src="../extra.js"></script><meta property="og:title" content="Options for the AMR Package — AMR-options"><meta name="description" content='This is an overview of all the package-specific options you can set in the AMR package. Set them using the options() function, e.g.:
options(AMR_guideline = "CLSI")'><meta property="og:description" content='This is an overview of all the package-specific options you can set in the AMR package. Set them using the options() function, e.g.:
options(AMR_guideline = "CLSI")'><meta property="og:image" content="https://amr-for-r.org/logo.svg"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css" integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js" integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script></head><body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
@@ -9,7 +9,7 @@ options(AMR_guideline = "CLSI")'><meta property="og:image" content="https://amr-
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
@@ -46,7 +46,7 @@ options(AMR_guideline = "CLSI")'><meta property="og:image" content="https://amr-
</nav><div class="container template-reference-topic">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.svg" class="logo" alt=""><h1>Options for the AMR package</h1>
<img src="../logo.svg" class="logo" alt=""><h1>Options for the AMR Package</h1>
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/main/R/aa_options.R" class="external-link"><code>R/aa_options.R</code></a></small>
<div class="d-none name"><code>AMR-options.Rd</code></div>
</div>
+1 -1
View File
@@ -1,4 +1,4 @@
# Options for the AMR package
# Options for the AMR Package
This is an overview of all the package-specific options you can set in
the `AMR` package. Set them using the
+1 -1
View File
@@ -21,7 +21,7 @@ The AMR package is available in English, Arabic, Bengali, Chinese, Czech, Danish
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+3 -3
View File
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Get Properties of an Antibiotic — ab_property • AMR (for R)</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.8/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.8/bootstrap.bundle.min.js"></script><link href="../deps/Lato-0.4.10/font.css" rel="stylesheet"><link href="../deps/Fira_Code-0.4.10/font.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><script src="../extra.js"></script><meta property="og:title" content="Get Properties of an Antibiotic — ab_property"><meta name="description" content="Use these functions to return a specific property of an antibiotic from the antimicrobials data set. All input values will be evaluated internally with as.ab()."><meta property="og:description" content="Use these functions to return a specific property of an antibiotic from the antimicrobials data set. All input values will be evaluated internally with as.ab()."><meta property="og:image" content="https://amr-for-r.org/logo.svg"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css" integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js" integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script></head><body>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Get Properties of an Antimicrobial Drug — ab_property • AMR (for R)</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.8/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.8/bootstrap.bundle.min.js"></script><link href="../deps/Lato-0.4.10/font.css" rel="stylesheet"><link href="../deps/Fira_Code-0.4.10/font.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><script src="../extra.js"></script><meta property="og:title" content="Get Properties of an Antimicrobial Drug — ab_property"><meta name="description" content="Use these functions to return a specific property of an antibiotic from the antimicrobials data set. All input values will be evaluated internally with as.ab()."><meta property="og:description" content="Use these functions to return a specific property of an antibiotic from the antimicrobials data set. All input values will be evaluated internally with as.ab()."><meta property="og:image" content="https://amr-for-r.org/logo.svg"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css" integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js" integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script></head><body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
@@ -44,7 +44,7 @@
</nav><div class="container template-reference-topic">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.svg" class="logo" alt=""><h1>Get Properties of an Antibiotic</h1>
<img src="../logo.svg" class="logo" alt=""><h1>Get Properties of an Antimicrobial Drug</h1>
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/main/R/ab_property.R" class="external-link"><code>R/ab_property.R</code></a></small>
<div class="d-none name"><code>ab_property.Rd</code></div>
</div>
+1 -1
View File
@@ -1,4 +1,4 @@
# Get Properties of an Antibiotic
# Get Properties of an Antimicrobial Drug
Use these functions to return a specific property of an antibiotic from
the [antimicrobials](https://amr-for-r.org/reference/antimicrobials.md)
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+11 -11
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
@@ -112,16 +112,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">#&gt;</span> birth_date age age_exact age_at_y2k</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 1 1999-06-30 27 27.29589 0</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 2 1968-01-29 58 58.71233 31</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 3 1965-12-05 60 60.86301 34</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 4 1980-03-01 46 46.62740 19</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 5 1949-11-01 76 76.95616 50</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 6 1947-02-14 79 79.66849 52</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 7 1940-02-19 86 86.65479 59</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 8 1988-01-10 38 38.76438 11</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 9 1997-08-27 29 29.13699 2</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 10 1978-01-26 48 48.72055 21</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 1 1999-06-30 27 27.29863 0</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 2 1968-01-29 58 58.71507 31</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 3 1965-12-05 60 60.86575 34</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 4 1980-03-01 46 46.63014 19</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 5 1949-11-01 76 76.95890 50</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 6 1947-02-14 79 79.67123 52</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 7 1940-02-19 86 86.65753 59</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 8 1988-01-10 38 38.76712 11</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 9 1997-08-27 29 29.13973 2</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 10 1978-01-26 48 48.72329 21</span>
</code></pre></div>
</div>
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
+10 -10
View File
@@ -81,14 +81,14 @@ df$age_at_y2k <- age(df$birth_date, "2000-01-01")
df
#> birth_date age age_exact age_at_y2k
#> 1 1999-06-30 27 27.29589 0
#> 2 1968-01-29 58 58.71233 31
#> 3 1965-12-05 60 60.86301 34
#> 4 1980-03-01 46 46.62740 19
#> 5 1949-11-01 76 76.95616 50
#> 6 1947-02-14 79 79.66849 52
#> 7 1940-02-19 86 86.65479 59
#> 8 1988-01-10 38 38.76438 11
#> 9 1997-08-27 29 29.13699 2
#> 10 1978-01-26 48 48.72055 21
#> 1 1999-06-30 27 27.29863 0
#> 2 1968-01-29 58 58.71507 31
#> 3 1965-12-05 60 60.86575 34
#> 4 1980-03-01 46 46.63014 19
#> 5 1949-11-01 76 76.95890 50
#> 6 1947-02-14 79 79.67123 52
#> 7 1940-02-19 86 86.65753 59
#> 8 1988-01-10 38 38.76712 11
#> 9 1997-08-27 29 29.13973 2
#> 10 1978-01-26 48 48.72329 21
```
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -13,7 +13,7 @@ All antibiogram types adhere to previously described approaches (see Source), an
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -17,7 +17,7 @@ my_data_with_all_these_columns %&amp;gt;%
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -9,7 +9,7 @@ The antibiotics data set has been renamed to antimicrobials. The old name will 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="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+3 -3
View File
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Transform Input to an Antibiotic ID — as.ab • AMR (for R)</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.8/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.8/bootstrap.bundle.min.js"></script><link href="../deps/Lato-0.4.10/font.css" rel="stylesheet"><link href="../deps/Fira_Code-0.4.10/font.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><script src="../extra.js"></script><meta property="og:title" content="Transform Input to an Antibiotic ID — as.ab"><meta name="description" content="Use this function to determine the antimicrobial drug code of one or more antimicrobials. The data set antimicrobials will be searched for abbreviations, official names and synonyms (brand names)."><meta property="og:description" content="Use this function to determine the antimicrobial drug code of one or more antimicrobials. The data set antimicrobials will be searched for abbreviations, official names and synonyms (brand names)."><meta property="og:image" content="https://amr-for-r.org/logo.svg"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css" integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js" integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script></head><body>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Transform Input to an Antimicrobial Drug ID — as.ab • AMR (for R)</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.8/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.8/bootstrap.bundle.min.js"></script><link href="../deps/Lato-0.4.10/font.css" rel="stylesheet"><link href="../deps/Fira_Code-0.4.10/font.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><script src="../extra.js"></script><meta property="og:title" content="Transform Input to an Antimicrobial Drug ID — as.ab"><meta name="description" content="Use this function to determine the antimicrobial drug code of one or more antimicrobials. The data set antimicrobials will be searched for abbreviations, official names and synonyms (brand names)."><meta property="og:description" content="Use this function to determine the antimicrobial drug code of one or more antimicrobials. The data set antimicrobials will be searched for abbreviations, official names and synonyms (brand names)."><meta property="og:image" content="https://amr-for-r.org/logo.svg"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css" integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js" integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script></head><body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
@@ -44,7 +44,7 @@
</nav><div class="container template-reference-topic">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.svg" class="logo" alt=""><h1>Transform Input to an Antibiotic ID</h1>
<img src="../logo.svg" class="logo" alt=""><h1>Transform Input to an Antimicrobial Drug ID</h1>
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/main/R/ab.R" class="external-link"><code>R/ab.R</code></a></small>
<div class="d-none name"><code>as.ab.Rd</code></div>
</div>
+1 -1
View File
@@ -1,4 +1,4 @@
# Transform Input to an Antibiotic ID
# Transform Input to an Antimicrobial Drug ID
Use this function to determine the antimicrobial drug code of one or
more antimicrobials. The data set
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+5 -5
View File
@@ -9,7 +9,7 @@ Breakpoints are currently implemented from EUCAST 2011-2026 and CLSI 2011-2026,
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
@@ -469,10 +469,10 @@ Breakpoints are currently implemented from EUCAST 2011-2026 and CLSI 2011-2026,
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># A tibble: 4 × 18</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> datetime index method ab_given mo_given host_given input_given</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494; font-style: italic;">&lt;dttm&gt;</span> <span style="color: #949494; font-style: italic;">&lt;int&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">1</span> 2026-10-16 <span style="color: #949494;">12:27:41</span> 1 MIC amoxicillin Escherich… human 8 </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">2</span> 2026-10-16 <span style="color: #949494;">12:27:41</span> 1 MIC cipro Escherich… human 0.256 </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">3</span> 2026-10-16 <span style="color: #949494;">12:27:41</span> 1 DISK tobra Escherich… human 16 </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">4</span> 2026-10-16 <span style="color: #949494;">12:27:42</span> 1 DISK genta Escherich… human 18 </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">1</span> 2026-10-17 <span style="color: #949494;">07:41:49</span> 1 MIC amoxicillin Escherich… human 8 </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">2</span> 2026-10-17 <span style="color: #949494;">07:41:50</span> 1 MIC cipro Escherich… human 0.256 </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">3</span> 2026-10-17 <span style="color: #949494;">07:41:50</span> 1 DISK tobra Escherich… human 16 </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">4</span> 2026-10-17 <span style="color: #949494;">07:41:50</span> 1 DISK genta Escherich… human 18 </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># ℹ 11 more variables: ab &lt;ab&gt;, mo &lt;mo&gt;, host &lt;chr&gt;, input &lt;chr&gt;,</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># outcome &lt;sir&gt;, notes &lt;chr&gt;, guideline &lt;chr&gt;, ref_table &lt;chr&gt;, uti &lt;lgl&gt;,</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># breakpoint_S_R &lt;chr&gt;, site &lt;chr&gt;</span></span>
+4 -4
View File
@@ -790,10 +790,10 @@ sir_interpretation_history()
#> # A tibble: 4 × 18
#> datetime index method ab_given mo_given host_given input_given
#> <dttm> <int> <chr> <chr> <chr> <chr> <chr>
#> 1 2026-10-16 12:27:41 1 MIC amoxicillin Escherich… human 8
#> 2 2026-10-16 12:27:41 1 MIC cipro Escherich… human 0.256
#> 3 2026-10-16 12:27:41 1 DISK tobra Escherich… human 16
#> 4 2026-10-16 12:27:42 1 DISK genta Escherich… human 18
#> 1 2026-10-17 07:41:49 1 MIC amoxicillin Escherich… human 8
#> 2 2026-10-17 07:41:50 1 MIC cipro Escherich… human 0.256
#> 3 2026-10-17 07:41:50 1 DISK tobra Escherich… human 16
#> 4 2026-10-17 07:41:50 1 DISK genta Escherich… human 18
#> # ℹ 11 more variables: ab <ab>, mo <mo>, host <chr>, input <chr>,
#> # outcome <sir>, notes <chr>, guideline <chr>, ref_table <chr>, uti <lgl>,
#> # breakpoint_S_R <chr>, site <chr>
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -21,7 +21,7 @@ Use as.sir() to transform MICs or disks measurements to SIR values."><meta prope
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -9,7 +9,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="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -9,7 +9,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+3 -3
View File
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Guess Antibiotic Column — guess_ab_col • AMR (for R)</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.8/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.8/bootstrap.bundle.min.js"></script><link href="../deps/Lato-0.4.10/font.css" rel="stylesheet"><link href="../deps/Fira_Code-0.4.10/font.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><script src="../extra.js"></script><meta property="og:title" content="Guess Antibiotic Column — guess_ab_col"><meta name="description" content="This tries to find a column name in a data set based on information from the antimicrobials data set. Also supports WHONET abbreviations."><meta property="og:description" content="This tries to find a column name in a data set based on information from the antimicrobials data set. Also supports WHONET abbreviations."><meta property="og:image" content="https://amr-for-r.org/logo.svg"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css" integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js" integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script></head><body>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Guess Antimicrobial Column — guess_ab_col • AMR (for R)</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.8/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.8/bootstrap.bundle.min.js"></script><link href="../deps/Lato-0.4.10/font.css" rel="stylesheet"><link href="../deps/Fira_Code-0.4.10/font.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><script src="../extra.js"></script><meta property="og:title" content="Guess Antimicrobial Column — guess_ab_col"><meta name="description" content="This tries to find a column name in a data set based on information from the antimicrobials data set. Also supports WHONET abbreviations."><meta property="og:description" content="This tries to find a column name in a data set based on information from the antimicrobials data set. Also supports WHONET abbreviations."><meta property="og:image" content="https://amr-for-r.org/logo.svg"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css" integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js" integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script></head><body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
@@ -44,7 +44,7 @@
</nav><div class="container template-reference-topic">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.svg" class="logo" alt=""><h1>Guess Antibiotic Column</h1>
<img src="../logo.svg" class="logo" alt=""><h1>Guess Antimicrobial Column</h1>
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/main/R/guess_ab_col.R" class="external-link"><code>R/guess_ab_col.R</code></a></small>
<div class="d-none name"><code>guess_ab_col.Rd</code></div>
</div>
+1 -1
View File
@@ -1,4 +1,4 @@
# Guess Antibiotic Column
# Guess Antimicrobial Column
This tries to find a column name in a data set based on information from
the [antimicrobials](https://amr-for-r.org/reference/antimicrobials.md)
+396 -438
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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,574 +42,532 @@
</div>
</nav><div class="container template-reference-index">
<!-- AMR: adapted from pkgdown's BS5 template, with titles first, function names second, and a filter field (see pkgdown/extra.js) -->
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.svg" class="logo" alt=""><h1>Package index</h1>
</div>
<div class="amr-ref-filter">
<input type="search" id="amr-ref-filter-input" class="form-control" placeholder="Filter, e.g. mo_gramstain or WISCA" aria-label="Filter the manual" autocomplete="off" spellcheck="false"><div id="amr-ref-filter-status" class="amr-ref-filter-status" aria-live="polite"></div>
</div>
<div class="section level2">
<h2 id="introduction-to-the-package">Introduction to the package<a class="anchor" aria-label="anchor" href="#introduction-to-the-package"></a></h2>
<h2 id="getting-started">Getting started<a class="anchor" aria-label="anchor" href="#getting-started"></a></h2>
<div class="section-desc"><p>Please find the introduction to (and some general information about) our package here.</p></div>
<div class="section-desc"><p>An overview of the package, its options for users and teams, and its 28 supported languages.</p></div>
<dl></dl></div><div class="section level2">
<dl class="amr-ref-list"></dl></div><div class="section level2">
<dl><dt>
<dl class="amr-ref-list"><div class="amr-ref-item">
<dt><a href="AMR.html">The <code>AMR</code> Package</a></dt>
<dd><code><a href="AMR.html">AMR-package</a></code> <code><a href="AMR.html">AMR</a></code> </dd>
</div>
<code><a href="AMR.html">AMR-package</a></code> <code><a href="AMR.html">AMR</a></code>
<div class="amr-ref-item">
<dt><a href="AMR-options.html">Options for the AMR Package</a></dt>
<dd><code><a href="AMR-options.html">AMR-options</a></code> </dd>
</div>
</dt>
<dd>The <code>AMR</code> Package</dd>
<div class="amr-ref-item">
<dt><a href="translate.html">Translate Strings from the AMR Package</a></dt>
<dd><code><a href="translate.html">get_AMR_locale()</a></code> <code><a href="translate.html">set_AMR_locale()</a></code> <code><a href="translate.html">reset_AMR_locale()</a></code> <code><a href="translate.html">translate_AMR()</a></code> </dd>
</div>
<div class="amr-ref-item">
<dt><a href="amr_course.html">Download and Unpack an AMR Course Repository</a></dt>
<dd><code><a href="amr_course.html">amr_course()</a></code> </dd>
</div>
</dl></div><div class="section level2">
<h2 id="preparing-data-microorganisms">Preparing data: microorganisms<a class="anchor" aria-label="anchor" href="#preparing-data-microorganisms"></a></h2>
<h2 id="cleaning-data">Cleaning data<a class="anchor" aria-label="anchor" href="#cleaning-data"></a></h2>
<div class="section-desc"><p>These functions are meant to get taxonomically valid properties of microorganisms from any input, but also properties derived from taxonomy, such as the Gram stain (<code><a href="../reference/mo_property.html">mo_gramstain()</a></code>) , or <code><a href="../reference/mo_property.html">mo_is_yeast()</a></code>. Use <code><a href="../reference/mo_source.html">mo_source()</a></code> to teach this package how to translate your own codes to valid microorganisms, and use <code><a href="../reference/add_custom_microorganisms.html">add_custom_microorganisms()</a></code> to add your own custom microorganisms to this package.</p></div>
<div class="section-desc"><p>Transform raw input of any kind into valid microorganisms with <code><a href="../reference/as.mo.html">as.mo()</a></code>, antimicrobials with <code><a href="../reference/as.ab.html">as.ab()</a></code>, and MIC values and disk diffusion zones with <code><a href="../reference/as.mic.html">as.mic()</a></code> and <code><a href="../reference/as.disk.html">as.disk()</a></code>, and retrieve their properties.</p></div>
<dl></dl></div><div class="section level2">
<dl class="amr-ref-list"></dl></div><div class="section level2">
<h3 id="microorganisms">Microorganisms<a class="anchor" aria-label="anchor" href="#microorganisms"></a></h3>
<dl class="amr-ref-list"></dl></div><div class="section level2">
<dl><dt>
<dl class="amr-ref-list"><div class="amr-ref-item">
<dt><a href="as.mo.html">Transform Arbitrary Input to Valid Microbial Taxonomy</a></dt>
<dd><code><a href="as.mo.html">as.mo()</a></code> <code><a href="as.mo.html">is.mo()</a></code> <code><a href="as.mo.html">mo_uncertainties()</a></code> <code><a href="as.mo.html">mo_renamed()</a></code> <code><a href="as.mo.html">mo_failures()</a></code> <code><a href="as.mo.html">mo_reset_session()</a></code> <code><a href="as.mo.html">mo_cleaning_regex()</a></code> <code><a href="as.mo.html">NA_mo_</a></code> </dd>
</div>
<code><a href="as.mo.html">as.mo()</a></code> <code><a href="as.mo.html">is.mo()</a></code> <code><a href="as.mo.html">mo_uncertainties()</a></code> <code><a href="as.mo.html">mo_renamed()</a></code> <code><a href="as.mo.html">mo_failures()</a></code> <code><a href="as.mo.html">mo_reset_session()</a></code> <code><a href="as.mo.html">mo_cleaning_regex()</a></code> <code><a href="as.mo.html">NA_mo_</a></code>
<div class="amr-ref-item">
<dt><a href="mo_property.html">Get Properties of a Microorganism</a></dt>
<dd><code><a href="mo_property.html">mo_name()</a></code> <code><a href="mo_property.html">mo_fullname()</a></code> <code><a href="mo_property.html">mo_shortname()</a></code> <code><a href="mo_property.html">mo_subspecies()</a></code> <code><a href="mo_property.html">mo_species()</a></code> <code><a href="mo_property.html">mo_genus()</a></code> <code><a href="mo_property.html">mo_family()</a></code> <code><a href="mo_property.html">mo_order()</a></code> <code><a href="mo_property.html">mo_class()</a></code> <code><a href="mo_property.html">mo_phylum()</a></code> <code><a href="mo_property.html">mo_kingdom()</a></code> <code><a href="mo_property.html">mo_domain()</a></code> <code><a href="mo_property.html">mo_type()</a></code> <code><a href="mo_property.html">mo_status()</a></code> <code><a href="mo_property.html">mo_pathogenicity()</a></code> <code><a href="mo_property.html">mo_gramstain()</a></code> <code><a href="mo_property.html">mo_is_gram_negative()</a></code> <code><a href="mo_property.html">mo_is_gram_positive()</a></code> <code><a href="mo_property.html">mo_is_yeast()</a></code> <code><a href="mo_property.html">mo_is_intrinsic_resistant()</a></code> <code><a href="mo_property.html">mo_oxygen_tolerance()</a></code> <code><a href="mo_property.html">mo_is_anaerobic()</a></code> <code><a href="mo_property.html">mo_morphology()</a></code> <code><a href="mo_property.html">mo_snomed()</a></code> <code><a href="mo_property.html">mo_ref()</a></code> <code><a href="mo_property.html">mo_authors()</a></code> <code><a href="mo_property.html">mo_year()</a></code> <code><a href="mo_property.html">mo_lpsn()</a></code> <code><a href="mo_property.html">mo_mycobank()</a></code> <code><a href="mo_property.html">mo_gbif()</a></code> <code><a href="mo_property.html">mo_rank()</a></code> <code><a href="mo_property.html">mo_taxonomy()</a></code> <code><a href="mo_property.html">mo_synonyms()</a></code> <code><a href="mo_property.html">mo_current()</a></code> <code><a href="mo_property.html">mo_group_members()</a></code> <code><a href="mo_property.html">mo_info()</a></code> <code><a href="mo_property.html">mo_url()</a></code> <code><a href="mo_property.html">mo_property()</a></code> </dd>
</div>
</dt>
<dd>Transform Arbitrary Input to Valid Microbial Taxonomy</dd>
<div class="amr-ref-item">
<dt><a href="mo_source.html">User-Defined Reference Data Set for Microorganisms</a></dt>
<dd><code><a href="mo_source.html">set_mo_source()</a></code> <code><a href="mo_source.html">get_mo_source()</a></code> </dd>
</div>
<dt>
<div class="amr-ref-item">
<dt><a href="add_custom_microorganisms.html">Add Custom Microorganisms</a></dt>
<dd><code><a href="add_custom_microorganisms.html">add_custom_microorganisms()</a></code> <code><a href="add_custom_microorganisms.html">clear_custom_microorganisms()</a></code> </dd>
</div>
<code><a href="mo_property.html">mo_name()</a></code> <code><a href="mo_property.html">mo_fullname()</a></code> <code><a href="mo_property.html">mo_shortname()</a></code> <code><a href="mo_property.html">mo_subspecies()</a></code> <code><a href="mo_property.html">mo_species()</a></code> <code><a href="mo_property.html">mo_genus()</a></code> <code><a href="mo_property.html">mo_family()</a></code> <code><a href="mo_property.html">mo_order()</a></code> <code><a href="mo_property.html">mo_class()</a></code> <code><a href="mo_property.html">mo_phylum()</a></code> <code><a href="mo_property.html">mo_kingdom()</a></code> <code><a href="mo_property.html">mo_domain()</a></code> <code><a href="mo_property.html">mo_type()</a></code> <code><a href="mo_property.html">mo_status()</a></code> <code><a href="mo_property.html">mo_pathogenicity()</a></code> <code><a href="mo_property.html">mo_gramstain()</a></code> <code><a href="mo_property.html">mo_is_gram_negative()</a></code> <code><a href="mo_property.html">mo_is_gram_positive()</a></code> <code><a href="mo_property.html">mo_is_yeast()</a></code> <code><a href="mo_property.html">mo_is_intrinsic_resistant()</a></code> <code><a href="mo_property.html">mo_oxygen_tolerance()</a></code> <code><a href="mo_property.html">mo_is_anaerobic()</a></code> <code><a href="mo_property.html">mo_morphology()</a></code> <code><a href="mo_property.html">mo_snomed()</a></code> <code><a href="mo_property.html">mo_ref()</a></code> <code><a href="mo_property.html">mo_authors()</a></code> <code><a href="mo_property.html">mo_year()</a></code> <code><a href="mo_property.html">mo_lpsn()</a></code> <code><a href="mo_property.html">mo_mycobank()</a></code> <code><a href="mo_property.html">mo_gbif()</a></code> <code><a href="mo_property.html">mo_rank()</a></code> <code><a href="mo_property.html">mo_taxonomy()</a></code> <code><a href="mo_property.html">mo_synonyms()</a></code> <code><a href="mo_property.html">mo_current()</a></code> <code><a href="mo_property.html">mo_group_members()</a></code> <code><a href="mo_property.html">mo_info()</a></code> <code><a href="mo_property.html">mo_url()</a></code> <code><a href="mo_property.html">mo_property()</a></code>
</dt>
<dd>Get Properties of a Microorganism</dd>
<dt>
<code><a href="add_custom_microorganisms.html">add_custom_microorganisms()</a></code> <code><a href="add_custom_microorganisms.html">clear_custom_microorganisms()</a></code>
</dt>
<dd>Add Custom Microorganisms</dd>
<dt>
<code><a href="mo_source.html">set_mo_source()</a></code> <code><a href="mo_source.html">get_mo_source()</a></code>
</dt>
<dd>User-Defined Reference Data Set for Microorganisms</dd>
<div class="amr-ref-item">
<dt><a href="mo_matching_score.html">Calculate the Matching Score for Microorganisms</a></dt>
<dd><code><a href="mo_matching_score.html">mo_matching_score()</a></code> </dd>
</div>
</dl></div><div class="section level2">
<h2 id="preparing-data-antimicrobials">Preparing data: antimicrobials<a class="anchor" aria-label="anchor" href="#preparing-data-antimicrobials"></a></h2>
<div class="section-desc"><p>Use these functions to get valid properties of antimicrobials from any input or to clean your input. You can even retrieve drug names and doses from clinical text records, using <code><a href="../reference/ab_from_text.html">ab_from_text()</a></code>.</p></div>
<h3 id="antimicrobials">Antimicrobials<a class="anchor" aria-label="anchor" href="#antimicrobials"></a></h3>
<dl></dl></div><div class="section level2">
<dl class="amr-ref-list"></dl></div><div class="section level2">
<dl><dt>
<dl class="amr-ref-list"><div class="amr-ref-item">
<dt><a href="as.ab.html">Transform Input to an Antimicrobial Drug ID</a></dt>
<dd><code><a href="as.ab.html">as.ab()</a></code> <code><a href="as.ab.html">is.ab()</a></code> <code><a href="as.ab.html">ab_reset_session()</a></code> <code><a href="as.ab.html">NA_ab_</a></code> </dd>
</div>
<code><a href="as.ab.html">as.ab()</a></code> <code><a href="as.ab.html">is.ab()</a></code> <code><a href="as.ab.html">ab_reset_session()</a></code> <code><a href="as.ab.html">NA_ab_</a></code>
<div class="amr-ref-item">
<dt><a href="ab_property.html">Get Properties of an Antimicrobial Drug</a></dt>
<dd><code><a href="ab_property.html">ab_name()</a></code> <code><a href="ab_property.html">ab_cid()</a></code> <code><a href="ab_property.html">ab_synonyms()</a></code> <code><a href="ab_property.html">ab_tradenames()</a></code> <code><a href="ab_property.html">ab_group()</a></code> <code><a href="ab_property.html">ab_atc()</a></code> <code><a href="ab_property.html">ab_atc_group1()</a></code> <code><a href="ab_property.html">ab_atc_group2()</a></code> <code><a href="ab_property.html">ab_loinc()</a></code> <code><a href="ab_property.html">ab_ddd()</a></code> <code><a href="ab_property.html">ab_ddd_units()</a></code> <code><a href="ab_property.html">ab_info()</a></code> <code><a href="ab_property.html">ab_url()</a></code> <code><a href="ab_property.html">ab_property()</a></code> <code><a href="ab_property.html">set_ab_names()</a></code> </dd>
</div>
</dt>
<dd>Transform Input to an Antibiotic ID</dd>
<div class="amr-ref-item">
<dt><a href="ab_from_text.html">Retrieve Antimicrobial Drug Names and Doses from Clinical Text</a></dt>
<dd><code><a href="ab_from_text.html">ab_from_text()</a></code> </dd>
</div>
<dt>
<div class="amr-ref-item">
<dt><a href="add_custom_antimicrobials.html">Add Custom Antimicrobials</a></dt>
<dd><code><a href="add_custom_antimicrobials.html">add_custom_antimicrobials()</a></code> <code><a href="add_custom_antimicrobials.html">add_custom_antimicrobial_synonyms()</a></code> <code><a href="add_custom_antimicrobials.html">clear_custom_antimicrobials()</a></code> </dd>
</div>
<code><a href="ab_property.html">ab_name()</a></code> <code><a href="ab_property.html">ab_cid()</a></code> <code><a href="ab_property.html">ab_synonyms()</a></code> <code><a href="ab_property.html">ab_tradenames()</a></code> <code><a href="ab_property.html">ab_group()</a></code> <code><a href="ab_property.html">ab_atc()</a></code> <code><a href="ab_property.html">ab_atc_group1()</a></code> <code><a href="ab_property.html">ab_atc_group2()</a></code> <code><a href="ab_property.html">ab_loinc()</a></code> <code><a href="ab_property.html">ab_ddd()</a></code> <code><a href="ab_property.html">ab_ddd_units()</a></code> <code><a href="ab_property.html">ab_info()</a></code> <code><a href="ab_property.html">ab_url()</a></code> <code><a href="ab_property.html">ab_property()</a></code> <code><a href="ab_property.html">set_ab_names()</a></code>
</dt>
<dd>Get Properties of an Antibiotic</dd>
<dt>
<code><a href="ab_from_text.html">ab_from_text()</a></code>
</dt>
<dd>Retrieve Antimicrobial Drug Names and Doses from Clinical Text</dd>
<dt>
<code><a href="atc_online.html">atc_online_property()</a></code> <code><a href="atc_online.html">atc_online_groups()</a></code> <code><a href="atc_online.html">atc_online_ddd()</a></code> <code><a href="atc_online.html">atc_online_ddd_units()</a></code>
</dt>
<dd>Get ATC Properties from WHOCC Website</dd>
<dt>
<code><a href="add_custom_antimicrobials.html">add_custom_antimicrobials()</a></code> <code><a href="add_custom_antimicrobials.html">add_custom_antimicrobial_synonyms()</a></code> <code><a href="add_custom_antimicrobials.html">clear_custom_antimicrobials()</a></code>
</dt>
<dd>Add Custom Antimicrobials</dd>
<div class="amr-ref-item">
<dt><a href="atc_online.html">Get ATC Properties from WHOCC Website</a></dt>
<dd><code><a href="atc_online.html">atc_online_property()</a></code> <code><a href="atc_online.html">atc_online_groups()</a></code> <code><a href="atc_online.html">atc_online_ddd()</a></code> <code><a href="atc_online.html">atc_online_ddd_units()</a></code> </dd>
</div>
</dl></div><div class="section level2">
<h2 id="interpreting-data-antimicrobial-results">Interpreting data: antimicrobial results<a class="anchor" aria-label="anchor" href="#interpreting-data-antimicrobial-results"></a></h2>
<div class="section-desc"><p>With <code><a href="../reference/as.mic.html">as.mic()</a></code> and <code><a href="../reference/as.disk.html">as.disk()</a></code> you can transform your raw input to valid MIC or disk diffusion values. Use <code><a href="../reference/as.sir.html">as.sir()</a></code> for cleaning raw data to let it only contain “R”, “I” and “S”, or to interpret MIC or disk diffusion values as SIR based on the lastest EUCAST and CLSI guidelines. Afterwards, you can extend antibiotic interpretations by applying interpretive rules, for example <a href="https://www.eucast.org/expert_rules_and_intrinsic_resistance/" class="external-link">from EUCAST</a> with <code><a href="../reference/interpretive_rules.html">interpretive_rules()</a></code>.</p></div>
<h3 id="antivirals">Antivirals<a class="anchor" aria-label="anchor" href="#antivirals"></a></h3>
<dl></dl></div><div class="section level2">
<dl class="amr-ref-list"></dl></div><div class="section level2">
<dl><dt>
<dl class="amr-ref-list"><div class="amr-ref-item">
<dt><a href="as.av.html">Transform Input to an Antiviral Drug ID</a></dt>
<dd><code><a href="as.av.html">as.av()</a></code> <code><a href="as.av.html">is.av()</a></code> </dd>
</div>
<code><a href="as.sir.html">as.sir()</a></code> <code><a href="as.sir.html">NA_sir_</a></code> <code><a href="as.sir.html">is.sir()</a></code> <code><a href="as.sir.html">is_sir_eligible()</a></code> <code><a href="as.sir.html">sir_interpretation_history()</a></code>
<div class="amr-ref-item">
<dt><a href="av_property.html">Get Properties of an Antiviral Drug</a></dt>
<dd><code><a href="av_property.html">av_name()</a></code> <code><a href="av_property.html">av_cid()</a></code> <code><a href="av_property.html">av_synonyms()</a></code> <code><a href="av_property.html">av_tradenames()</a></code> <code><a href="av_property.html">av_group()</a></code> <code><a href="av_property.html">av_atc()</a></code> <code><a href="av_property.html">av_loinc()</a></code> <code><a href="av_property.html">av_ddd()</a></code> <code><a href="av_property.html">av_ddd_units()</a></code> <code><a href="av_property.html">av_info()</a></code> <code><a href="av_property.html">av_url()</a></code> <code><a href="av_property.html">av_property()</a></code> </dd>
</div>
</dt>
<dd>Interpret MIC and Disk Diffusion as SIR, or Clean Existing SIR Data</dd>
<div class="amr-ref-item">
<dt><a href="av_from_text.html">Retrieve Antiviral Drug Names and Doses from Clinical Text</a></dt>
<dd><code><a href="av_from_text.html">av_from_text()</a></code> </dd>
</div>
</dl></div><div class="section level2">
<dt>
<h3 id="test-results">Test results<a class="anchor" aria-label="anchor" href="#test-results"></a></h3>
<code><a href="as.mic.html">as.mic()</a></code> <code><a href="as.mic.html">is.mic()</a></code> <code><a href="as.mic.html">NA_mic_</a></code> <code><a href="as.mic.html">rescale_mic()</a></code> <code><a href="as.mic.html">mic_p50()</a></code> <code><a href="as.mic.html">mic_p90()</a></code> <code><a href="as.mic.html">droplevels(<i>&lt;mic&gt;</i>)</a></code>
</dt>
<dd>Transform Input to Minimum Inhibitory Concentrations (MIC)</dd>
<dl class="amr-ref-list"></dl></div><div class="section level2">
<dt>
<code><a href="as.disk.html">as.disk()</a></code> <code><a href="as.disk.html">NA_disk_</a></code> <code><a href="as.disk.html">is.disk()</a></code>
</dt>
<dd>Transform Input to Disk Diffusion Diameters</dd>
<dt>
<dl class="amr-ref-list"><div class="amr-ref-item">
<dt><a href="as.mic.html">Transform Input to Minimum Inhibitory Concentrations (MIC)</a></dt>
<dd><code><a href="as.mic.html">as.mic()</a></code> <code><a href="as.mic.html">is.mic()</a></code> <code><a href="as.mic.html">NA_mic_</a></code> <code><a href="as.mic.html">rescale_mic()</a></code> <code><a href="as.mic.html">mic_p50()</a></code> <code><a href="as.mic.html">mic_p90()</a></code> <code><a href="as.mic.html">droplevels(<i>&lt;mic&gt;</i>)</a></code> </dd>
</div>
<code><a href="interpretive_rules.html">interpretive_rules()</a></code> <code><a href="interpretive_rules.html">eucast_rules()</a></code> <code><a href="interpretive_rules.html">clsi_rules()</a></code> <code><a href="interpretive_rules.html">eucast_dosage()</a></code>
<div class="amr-ref-item">
<dt><a href="as.disk.html">Transform Input to Disk Diffusion Diameters</a></dt>
<dd><code><a href="as.disk.html">as.disk()</a></code> <code><a href="as.disk.html">NA_disk_</a></code> <code><a href="as.disk.html">is.disk()</a></code> </dd>
</div>
</dl></div><div class="section level2">
<h2 id="interpreting-results-as-sir">Interpreting results as SIR<a class="anchor" aria-label="anchor" href="#interpreting-results-as-sir"></a></h2>
</dt>
<dd>Apply Interpretive Rules</dd>
<div class="section-desc"><p>Interpret MIC values and disk diffusion zones as SIR with <code><a href="../reference/as.sir.html">as.sir()</a></code>, according to EUCAST or CLSI, for every guideline year from 2011 to 2026, and apply interpretive rules. <code><a href="../reference/as.sir.html">as.sir()</a></code> also cleans existing SIR data.</p></div>
<dt>
<dl class="amr-ref-list"></dl></div><div class="section level2">
<code><a href="custom_interpretive_rules.html">custom_interpretive_rules()</a></code>
</dt>
<dd>Define Custom Interpretive Rules</dd>
<dl class="amr-ref-list"><div class="amr-ref-item">
<dt><a href="as.sir.html">Interpret MIC and Disk Diffusion as SIR, or Clean Existing SIR Data</a></dt>
<dd><code><a href="as.sir.html">as.sir()</a></code> <code><a href="as.sir.html">NA_sir_</a></code> <code><a href="as.sir.html">is.sir()</a></code> <code><a href="as.sir.html">is_sir_eligible()</a></code> <code><a href="as.sir.html">sir_interpretation_history()</a></code> </dd>
</div>
<div class="amr-ref-item">
<dt><a href="interpretive_rules.html">Apply Interpretive Rules</a></dt>
<dd><code><a href="interpretive_rules.html">interpretive_rules()</a></code> <code><a href="interpretive_rules.html">eucast_rules()</a></code> <code><a href="interpretive_rules.html">clsi_rules()</a></code> <code><a href="interpretive_rules.html">eucast_dosage()</a></code> </dd>
</div>
<div class="amr-ref-item">
<dt><a href="custom_interpretive_rules.html">Define Custom Interpretive Rules</a></dt>
<dd><code><a href="custom_interpretive_rules.html">custom_interpretive_rules()</a></code> </dd>
</div>
</dl></div><div class="section level2">
<h2 id="analysing-data">Analysing data<a class="anchor" aria-label="anchor" href="#analysing-data"></a></h2>
<div class="section-desc"><p>Use these function for the analysis part. You can use <code><a href="../reference/proportion.html">susceptibility()</a></code> or <code><a href="../reference/proportion.html">resistance()</a></code> on any antibiotic column. With <code><a href="../reference/antibiogram.html">antibiogram()</a></code>, you can generate a traditional, combined, syndromic, or weighted-incidence syndromic combination antibiogram (WISCA). This function also comes with support for R Markdown and Quarto. Be sure to first select the isolates that are appropiate for analysis, by using <code><a href="../reference/first_isolate.html">first_isolate()</a></code> or <code><a href="../reference/get_episode.html">is_new_episode()</a></code>. You can also filter your data on certain resistance in certain antibiotic classes (<code><a href="../reference/antimicrobial_selectors.html">carbapenems()</a></code>, <code><a href="../reference/antimicrobial_selectors.html">aminoglycosides()</a></code>), or determine multi-drug resistant microorganisms (MDRO, <code><a href="../reference/mdro.html">mdro()</a></code>).</p></div>
<div class="section-desc"><p>Select first isolates with <code><a href="../reference/first_isolate.html">first_isolate()</a></code>, generate traditional, combination, syndromic, and WISCA antibiograms with <code><a href="../reference/antibiogram.html">antibiogram()</a></code> and <code><a href="../reference/antibiogram.html">wisca()</a></code>, calculate resistance, and determine multidrug-resistant organisms.</p></div>
<dl></dl></div><div class="section level2">
<dl class="amr-ref-list"></dl></div><div class="section level2">
<h3 id="selecting-isolates-and-antimicrobials">Selecting isolates and antimicrobials<a class="anchor" aria-label="anchor" href="#selecting-isolates-and-antimicrobials"></a></h3>
<dl class="amr-ref-list"></dl></div><div class="section level2">
<dl><dt>
<dl class="amr-ref-list"><div class="amr-ref-item">
<dt><a href="first_isolate.html">Determine First Isolates</a></dt>
<dd><code><a href="first_isolate.html">first_isolate()</a></code> <code><a href="first_isolate.html">filter_first_isolate()</a></code> </dd>
</div>
<code><a href="antibiogram.html">wisca()</a></code> <code><a href="antibiogram.html">antibiogram()</a></code> <code><a href="antibiogram.html">retrieve_wisca_parameters()</a></code> <code><a href="antibiogram.html">plot(<i>&lt;antibiogram&gt;</i>)</a></code> <code><a href="antibiogram.html">autoplot(<i>&lt;antibiogram&gt;</i>)</a></code> <code><a href="antibiogram.html">wisca_plot()</a></code> <code><a href="antibiogram.html">knit_print(<i>&lt;antibiogram&gt;</i>)</a></code>
<div class="amr-ref-item">
<dt><a href="get_episode.html">Determine Clinical or Epidemic Episodes</a></dt>
<dd><code><a href="get_episode.html">get_episode()</a></code> <code><a href="get_episode.html">is_new_episode()</a></code> </dd>
</div>
</dt>
<dd>Generate Antibiograms (WISCA, Traditional, Combination, or Syndromic)</dd>
<div class="amr-ref-item">
<dt><a href="key_antimicrobials.html">(Key) Antimicrobials for First Weighted Isolates</a></dt>
<dd><code><a href="key_antimicrobials.html">key_antimicrobials()</a></code> <code><a href="key_antimicrobials.html">all_antimicrobials()</a></code> <code><a href="key_antimicrobials.html">antimicrobials_equal()</a></code> </dd>
</div>
<dt>
<div class="amr-ref-item">
<dt><a href="top_n_microorganisms.html">Filter Top <em>n</em> Microorganisms</a></dt>
<dd><code><a href="top_n_microorganisms.html">top_n_microorganisms()</a></code> </dd>
</div>
<code><a href="proportion.html">resistance()</a></code> <code><a href="proportion.html">susceptibility()</a></code> <code><a href="proportion.html">sir_confidence_interval()</a></code> <code><a href="proportion.html">proportion_R()</a></code> <code><a href="proportion.html">proportion_IR()</a></code> <code><a href="proportion.html">proportion_I()</a></code> <code><a href="proportion.html">proportion_SI()</a></code> <code><a href="proportion.html">proportion_S()</a></code> <code><a href="proportion.html">proportion_df()</a></code> <code><a href="proportion.html">sir_df()</a></code>
<div class="amr-ref-item">
<dt><a href="antimicrobial_selectors.html">Antimicrobial Selectors</a></dt>
<dd><code><a href="antimicrobial_selectors.html">aminoglycosides()</a></code> <code><a href="antimicrobial_selectors.html">aminopenicillins()</a></code> <code><a href="antimicrobial_selectors.html">antifungals()</a></code> <code><a href="antimicrobial_selectors.html">antimycobacterials()</a></code> <code><a href="antimicrobial_selectors.html">betalactams()</a></code> <code><a href="antimicrobial_selectors.html">betalactams_with_inhibitor()</a></code> <code><a href="antimicrobial_selectors.html">carbapenems()</a></code> <code><a href="antimicrobial_selectors.html">cephalosporins()</a></code> <code><a href="antimicrobial_selectors.html">cephalosporins_1st()</a></code> <code><a href="antimicrobial_selectors.html">cephalosporins_2nd()</a></code> <code><a href="antimicrobial_selectors.html">cephalosporins_3rd()</a></code> <code><a href="antimicrobial_selectors.html">cephalosporins_4th()</a></code> <code><a href="antimicrobial_selectors.html">cephalosporins_5th()</a></code> <code><a href="antimicrobial_selectors.html">fluoroquinolones()</a></code> <code><a href="antimicrobial_selectors.html">glycopeptides()</a></code> <code><a href="antimicrobial_selectors.html">ionophores()</a></code> <code><a href="antimicrobial_selectors.html">isoxazolylpenicillins()</a></code> <code><a href="antimicrobial_selectors.html">lincosamides()</a></code> <code><a href="antimicrobial_selectors.html">lipoglycopeptides()</a></code> <code><a href="antimicrobial_selectors.html">macrolides()</a></code> <code><a href="antimicrobial_selectors.html">monobactams()</a></code> <code><a href="antimicrobial_selectors.html">nitrofurans()</a></code> <code><a href="antimicrobial_selectors.html">oxazolidinones()</a></code> <code><a href="antimicrobial_selectors.html">penicillins()</a></code> <code><a href="antimicrobial_selectors.html">peptides()</a></code> <code><a href="antimicrobial_selectors.html">phenicols()</a></code> <code><a href="antimicrobial_selectors.html">phosphonics()</a></code> <code><a href="antimicrobial_selectors.html">polymyxins()</a></code> <code><a href="antimicrobial_selectors.html">quinolones()</a></code> <code><a href="antimicrobial_selectors.html">rifamycins()</a></code> <code><a href="antimicrobial_selectors.html">spiropyrimidinetriones()</a></code> <code><a href="antimicrobial_selectors.html">streptogramins()</a></code> <code><a href="antimicrobial_selectors.html">sulfonamides()</a></code> <code><a href="antimicrobial_selectors.html">tetracyclines()</a></code> <code><a href="antimicrobial_selectors.html">trimethoprims()</a></code> <code><a href="antimicrobial_selectors.html">ureidopenicillins()</a></code> <code><a href="antimicrobial_selectors.html">amr_class()</a></code> <code><a href="antimicrobial_selectors.html">amr_selector()</a></code> <code><a href="antimicrobial_selectors.html">administrable_per_os()</a></code> <code><a href="antimicrobial_selectors.html">administrable_iv()</a></code> <code><a href="antimicrobial_selectors.html">not_intrinsic_resistant()</a></code> </dd>
</div>
</dt>
<dd>Calculate Antimicrobial Resistance</dd>
<div class="amr-ref-item">
<dt><a href="guess_ab_col.html">Guess Antimicrobial Column</a></dt>
<dd><code><a href="guess_ab_col.html">guess_ab_col()</a></code> </dd>
</div>
<dt>
<code><a href="count.html">count_resistant()</a></code> <code><a href="count.html">count_susceptible()</a></code> <code><a href="count.html">count_S()</a></code> <code><a href="count.html">count_SI()</a></code> <code><a href="count.html">count_I()</a></code> <code><a href="count.html">count_IR()</a></code> <code><a href="count.html">count_R()</a></code> <code><a href="count.html">count_all()</a></code> <code><a href="count.html">n_sir()</a></code> <code><a href="count.html">count_df()</a></code>
</dt>
<dd>Count Available Isolates</dd>
<dt>
<code><a href="sir_combine.html">sir_combine()</a></code>
</dt>
<dd>Combine SIR Results of Multiple Antimicrobials</dd>
<dt>
<code><a href="get_episode.html">get_episode()</a></code> <code><a href="get_episode.html">is_new_episode()</a></code>
</dt>
<dd>Determine Clinical or Epidemic Episodes</dd>
<dt>
<code><a href="first_isolate.html">first_isolate()</a></code> <code><a href="first_isolate.html">filter_first_isolate()</a></code>
</dt>
<dd>Determine First Isolates</dd>
<dt>
<code><a href="key_antimicrobials.html">key_antimicrobials()</a></code> <code><a href="key_antimicrobials.html">all_antimicrobials()</a></code> <code><a href="key_antimicrobials.html">antimicrobials_equal()</a></code>
</dt>
<dd>(Key) Antimicrobials for First Weighted Isolates</dd>
<dt>
<code><a href="mdro.html">mdro()</a></code> <code><a href="mdro.html">brmo()</a></code> <code><a href="mdro.html">mrgn()</a></code> <code><a href="mdro.html">mdr_tb()</a></code> <code><a href="mdro.html">mdr_cmi2012()</a></code> <code><a href="mdro.html">eucast_exceptional_phenotypes()</a></code>
</dt>
<dd>Determine Multidrug-Resistant Organisms (MDRO)</dd>
<dt>
<code><a href="custom_mdro_guideline.html">custom_mdro_guideline()</a></code> <code><a href="custom_mdro_guideline.html">c(<i>&lt;custom_mdro_guideline&gt;</i>)</a></code>
</dt>
<dd>Define Custom MDRO Guideline</dd>
<dt>
<code><a href="bug_drug_combinations.html">bug_drug_combinations()</a></code> <code><a href="bug_drug_combinations.html">format(<i>&lt;bug_drug_combinations&gt;</i>)</a></code>
</dt>
<dd>Determine Bug-Drug Combinations</dd>
<dt>
<code><a href="antimicrobial_selectors.html">aminoglycosides()</a></code> <code><a href="antimicrobial_selectors.html">aminopenicillins()</a></code> <code><a href="antimicrobial_selectors.html">antifungals()</a></code> <code><a href="antimicrobial_selectors.html">antimycobacterials()</a></code> <code><a href="antimicrobial_selectors.html">betalactams()</a></code> <code><a href="antimicrobial_selectors.html">betalactams_with_inhibitor()</a></code> <code><a href="antimicrobial_selectors.html">carbapenems()</a></code> <code><a href="antimicrobial_selectors.html">cephalosporins()</a></code> <code><a href="antimicrobial_selectors.html">cephalosporins_1st()</a></code> <code><a href="antimicrobial_selectors.html">cephalosporins_2nd()</a></code> <code><a href="antimicrobial_selectors.html">cephalosporins_3rd()</a></code> <code><a href="antimicrobial_selectors.html">cephalosporins_4th()</a></code> <code><a href="antimicrobial_selectors.html">cephalosporins_5th()</a></code> <code><a href="antimicrobial_selectors.html">fluoroquinolones()</a></code> <code><a href="antimicrobial_selectors.html">glycopeptides()</a></code> <code><a href="antimicrobial_selectors.html">ionophores()</a></code> <code><a href="antimicrobial_selectors.html">isoxazolylpenicillins()</a></code> <code><a href="antimicrobial_selectors.html">lincosamides()</a></code> <code><a href="antimicrobial_selectors.html">lipoglycopeptides()</a></code> <code><a href="antimicrobial_selectors.html">macrolides()</a></code> <code><a href="antimicrobial_selectors.html">monobactams()</a></code> <code><a href="antimicrobial_selectors.html">nitrofurans()</a></code> <code><a href="antimicrobial_selectors.html">oxazolidinones()</a></code> <code><a href="antimicrobial_selectors.html">penicillins()</a></code> <code><a href="antimicrobial_selectors.html">peptides()</a></code> <code><a href="antimicrobial_selectors.html">phenicols()</a></code> <code><a href="antimicrobial_selectors.html">phosphonics()</a></code> <code><a href="antimicrobial_selectors.html">polymyxins()</a></code> <code><a href="antimicrobial_selectors.html">quinolones()</a></code> <code><a href="antimicrobial_selectors.html">rifamycins()</a></code> <code><a href="antimicrobial_selectors.html">spiropyrimidinetriones()</a></code> <code><a href="antimicrobial_selectors.html">streptogramins()</a></code> <code><a href="antimicrobial_selectors.html">sulfonamides()</a></code> <code><a href="antimicrobial_selectors.html">tetracyclines()</a></code> <code><a href="antimicrobial_selectors.html">trimethoprims()</a></code> <code><a href="antimicrobial_selectors.html">ureidopenicillins()</a></code> <code><a href="antimicrobial_selectors.html">amr_class()</a></code> <code><a href="antimicrobial_selectors.html">amr_selector()</a></code> <code><a href="antimicrobial_selectors.html">administrable_per_os()</a></code> <code><a href="antimicrobial_selectors.html">administrable_iv()</a></code> <code><a href="antimicrobial_selectors.html">not_intrinsic_resistant()</a></code>
</dt>
<dd>Antimicrobial Selectors</dd>
<dt>
<code><a href="top_n_microorganisms.html">top_n_microorganisms()</a></code>
</dt>
<dd>Filter Top <em>n</em> Microorganisms</dd>
<dt>
<code><a href="mean_amr_distance.html">mean_amr_distance()</a></code> <code><a href="mean_amr_distance.html">amr_distance_from_row()</a></code>
</dt>
<dd>Calculate the Mean AMR Distance</dd>
<dt>
<code><a href="resistance_predict.html">resistance_predict()</a></code> <code><a href="resistance_predict.html">sir_predict()</a></code> <code><a href="resistance_predict.html">plot(<i>&lt;resistance_predict&gt;</i>)</a></code> <code><a href="resistance_predict.html">ggplot_sir_predict()</a></code> <code><a href="resistance_predict.html">autoplot(<i>&lt;resistance_predict&gt;</i>)</a></code>
</dt>
<dd>Predict Antimicrobial Resistance</dd>
<dt>
<code><a href="guess_ab_col.html">guess_ab_col()</a></code>
</dt>
<dd>Guess Antibiotic Column</dd>
<div class="amr-ref-item">
<dt><a href="availability.html">Check Availability of Columns</a></dt>
<dd><code><a href="availability.html">availability()</a></code> </dd>
</div>
</dl></div><div class="section level2">
<h2 id="plotting-data">Plotting data<a class="anchor" aria-label="anchor" href="#plotting-data"></a></h2>
<div class="section-desc"><p>Use these functions for the plotting part. The <code>scale_*_mic()</code> functions extend the ggplot2 package to allow plotting of MIC values, even within a manually set range. If using <code><a href="../reference/plot.html">plot()</a></code> (base R) or <code><a href="https://ggplot2.tidyverse.org/reference/autoplot.html" class="external-link">autoplot()</a></code> (ggplot2) on MIC values or disk diffusion values, the user can set the interpretation guideline to give the bars the right SIR colours. The <code><a href="../reference/ggplot_sir.html">ggplot_sir()</a></code> function is a short wrapper for users not much accustomed to ggplot2 yet. The <code><a href="../reference/ggplot_pca.html">ggplot_pca()</a></code> function is a specific function to plot so-called biplots for PCA (principal component analysis).</p></div>
<h3 id="generating-antibiograms-and-wisca">Generating antibiograms and WISCA<a class="anchor" aria-label="anchor" href="#generating-antibiograms-and-wisca"></a></h3>
<dl></dl></div><div class="section level2">
<dl class="amr-ref-list"></dl></div><div class="section level2">
<dl><dt>
<code><a href="plot.html">scale_x_mic()</a></code> <code><a href="plot.html">scale_y_mic()</a></code> <code><a href="plot.html">scale_colour_mic()</a></code> <code><a href="plot.html">scale_fill_mic()</a></code> <code><a href="plot.html">scale_x_sir()</a></code> <code><a href="plot.html">scale_colour_sir()</a></code> <code><a href="plot.html">scale_fill_sir()</a></code> <code><a href="plot.html">plot(<i>&lt;mic&gt;</i>)</a></code> <code><a href="plot.html">autoplot(<i>&lt;mic&gt;</i>)</a></code> <code><a href="plot.html">plot(<i>&lt;disk&gt;</i>)</a></code> <code><a href="plot.html">autoplot(<i>&lt;disk&gt;</i>)</a></code> <code><a href="plot.html">plot(<i>&lt;sir&gt;</i>)</a></code> <code><a href="plot.html">autoplot(<i>&lt;sir&gt;</i>)</a></code> <code><a href="plot.html">facet_sir()</a></code> <code><a href="plot.html">scale_y_percent()</a></code> <code><a href="plot.html">scale_sir_colours()</a></code> <code><a href="plot.html">theme_sir()</a></code>
</dt>
<dd>Plotting Helpers for AMR Data Analysis</dd>
<dt>
<code><a href="ggplot_sir.html">ggplot_sir()</a></code> <code><a href="ggplot_sir.html">geom_sir()</a></code> <code><a href="ggplot_sir.html">labels_sir_count()</a></code>
</dt>
<dd>AMR Plots with <code>ggplot2</code></dd>
<dt>
<code><a href="ggplot_pca.html">ggplot_pca()</a></code>
</dt>
<dd>PCA Biplot with <code>ggplot2</code></dd>
<dl class="amr-ref-list"><div class="amr-ref-item">
<dt><a href="antibiogram.html">Generate Antibiograms (WISCA, Traditional, Combination, or Syndromic)</a></dt>
<dd><code><a href="antibiogram.html">wisca()</a></code> <code><a href="antibiogram.html">antibiogram()</a></code> <code><a href="antibiogram.html">retrieve_wisca_parameters()</a></code> <code><a href="antibiogram.html">plot(<i>&lt;antibiogram&gt;</i>)</a></code> <code><a href="antibiogram.html">autoplot(<i>&lt;antibiogram&gt;</i>)</a></code> <code><a href="antibiogram.html">wisca_plot()</a></code> <code><a href="antibiogram.html">knit_print(<i>&lt;antibiogram&gt;</i>)</a></code> </dd>
</div>
</dl></div><div class="section level2">
<h2 id="amr-specific-options">AMR-specific options<a class="anchor" aria-label="anchor" href="#amr-specific-options"></a></h2>
<div class="section-desc"><p>The AMR package is customisable, by providing settings that can be set per user or per team. For example, the default interpretation guideline can be changed from EUCAST to CLSI, or a supported language can be set for the whole team (system-language independent) for antibiotic names in a foreign language.</p></div>
<h3 id="calculating-resistance-and-susceptibility">Calculating resistance and susceptibility<a class="anchor" aria-label="anchor" href="#calculating-resistance-and-susceptibility"></a></h3>
<dl></dl></div><div class="section level2">
<dl class="amr-ref-list"></dl></div><div class="section level2">
<dl><dt>
<dl class="amr-ref-list"><div class="amr-ref-item">
<dt><a href="proportion.html">Calculate Antimicrobial Resistance</a></dt>
<dd><code><a href="proportion.html">resistance()</a></code> <code><a href="proportion.html">susceptibility()</a></code> <code><a href="proportion.html">sir_confidence_interval()</a></code> <code><a href="proportion.html">proportion_R()</a></code> <code><a href="proportion.html">proportion_IR()</a></code> <code><a href="proportion.html">proportion_I()</a></code> <code><a href="proportion.html">proportion_SI()</a></code> <code><a href="proportion.html">proportion_S()</a></code> <code><a href="proportion.html">proportion_df()</a></code> <code><a href="proportion.html">sir_df()</a></code> </dd>
</div>
<code><a href="AMR-options.html">AMR-options</a></code>
<div class="amr-ref-item">
<dt><a href="count.html">Count Available Isolates</a></dt>
<dd><code><a href="count.html">count_resistant()</a></code> <code><a href="count.html">count_susceptible()</a></code> <code><a href="count.html">count_S()</a></code> <code><a href="count.html">count_SI()</a></code> <code><a href="count.html">count_I()</a></code> <code><a href="count.html">count_IR()</a></code> <code><a href="count.html">count_R()</a></code> <code><a href="count.html">count_all()</a></code> <code><a href="count.html">n_sir()</a></code> <code><a href="count.html">count_df()</a></code> </dd>
</div>
</dt>
<dd>Options for the AMR package</dd>
<div class="amr-ref-item">
<dt><a href="sir_combine.html">Combine SIR Results of Multiple Antimicrobials</a></dt>
<dd><code><a href="sir_combine.html">sir_combine()</a></code> </dd>
</div>
<div class="amr-ref-item">
<dt><a href="bug_drug_combinations.html">Determine Bug-Drug Combinations</a></dt>
<dd><code><a href="bug_drug_combinations.html">bug_drug_combinations()</a></code> <code><a href="bug_drug_combinations.html">format(<i>&lt;bug_drug_combinations&gt;</i>)</a></code> </dd>
</div>
</dl></div><div class="section level2">
<h2 id="other-antiviral-drugs">Other: antiviral drugs<a class="anchor" aria-label="anchor" href="#other-antiviral-drugs"></a></h2>
<div class="section-desc"><p>This package also provides extensive support for antiviral agents, even though it is not the primary scope of this package. Working with data containing information about antiviral drugs was never easier. Use these functions to get valid properties of antiviral drugs from any input or to clean your input. You can even retrieve drug names and doses from clinical text records, using <code><a href="../reference/av_from_text.html">av_from_text()</a></code>.</p></div>
<h3 id="determining-multidrug-resistance">Determining multidrug resistance<a class="anchor" aria-label="anchor" href="#determining-multidrug-resistance"></a></h3>
<dl></dl></div><div class="section level2">
<dl class="amr-ref-list"></dl></div><div class="section level2">
<dl><dt>
<dl class="amr-ref-list"><div class="amr-ref-item">
<dt><a href="mdro.html">Determine Multidrug-Resistant Organisms (MDRO)</a></dt>
<dd><code><a href="mdro.html">mdro()</a></code> <code><a href="mdro.html">brmo()</a></code> <code><a href="mdro.html">mrgn()</a></code> <code><a href="mdro.html">mdr_tb()</a></code> <code><a href="mdro.html">mdr_cmi2012()</a></code> <code><a href="mdro.html">eucast_exceptional_phenotypes()</a></code> </dd>
</div>
<code><a href="as.av.html">as.av()</a></code> <code><a href="as.av.html">is.av()</a></code>
</dt>
<dd>Transform Input to an Antiviral Drug ID</dd>
<dt>
<code><a href="av_property.html">av_name()</a></code> <code><a href="av_property.html">av_cid()</a></code> <code><a href="av_property.html">av_synonyms()</a></code> <code><a href="av_property.html">av_tradenames()</a></code> <code><a href="av_property.html">av_group()</a></code> <code><a href="av_property.html">av_atc()</a></code> <code><a href="av_property.html">av_loinc()</a></code> <code><a href="av_property.html">av_ddd()</a></code> <code><a href="av_property.html">av_ddd_units()</a></code> <code><a href="av_property.html">av_info()</a></code> <code><a href="av_property.html">av_url()</a></code> <code><a href="av_property.html">av_property()</a></code>
</dt>
<dd>Get Properties of an Antiviral Drug</dd>
<dt>
<code><a href="av_from_text.html">av_from_text()</a></code>
</dt>
<dd>Retrieve Antiviral Drug Names and Doses from Clinical Text</dd>
<div class="amr-ref-item">
<dt><a href="custom_mdro_guideline.html">Define Custom MDRO Guideline</a></dt>
<dd><code><a href="custom_mdro_guideline.html">custom_mdro_guideline()</a></code> <code><a href="custom_mdro_guideline.html">c(<i>&lt;custom_mdro_guideline&gt;</i>)</a></code> </dd>
</div>
</dl></div><div class="section level2">
<h2 id="other-background-information-on-included-data">Other: background information on included data<a class="anchor" aria-label="anchor" href="#other-background-information-on-included-data"></a></h2>
<h2 id="visualising-data">Visualising data<a class="anchor" aria-label="anchor" href="#visualising-data"></a></h2>
<div class="section-desc"><p>Some pages about our package and its external sources. Be sure to read our <a href="./../articles/index.html">How To’s</a> for more information about how to work with functions in this package.</p></div>
<div class="section-desc"><p>Plot MIC values, disk zones, and SIR results in base R or <code>ggplot2</code>, with scales and colours tailored to AMR data.</p></div>
<dl></dl></div><div class="section level2">
<dl class="amr-ref-list"></dl></div><div class="section level2">
<dl><dt>
<dl class="amr-ref-list"><div class="amr-ref-item">
<dt><a href="plot.html">Plotting Helpers for AMR Data Analysis</a></dt>
<dd><code><a href="plot.html">scale_x_mic()</a></code> <code><a href="plot.html">scale_y_mic()</a></code> <code><a href="plot.html">scale_colour_mic()</a></code> <code><a href="plot.html">scale_fill_mic()</a></code> <code><a href="plot.html">scale_x_sir()</a></code> <code><a href="plot.html">scale_colour_sir()</a></code> <code><a href="plot.html">scale_fill_sir()</a></code> <code><a href="plot.html">plot(<i>&lt;mic&gt;</i>)</a></code> <code><a href="plot.html">autoplot(<i>&lt;mic&gt;</i>)</a></code> <code><a href="plot.html">plot(<i>&lt;disk&gt;</i>)</a></code> <code><a href="plot.html">autoplot(<i>&lt;disk&gt;</i>)</a></code> <code><a href="plot.html">plot(<i>&lt;sir&gt;</i>)</a></code> <code><a href="plot.html">autoplot(<i>&lt;sir&gt;</i>)</a></code> <code><a href="plot.html">facet_sir()</a></code> <code><a href="plot.html">scale_y_percent()</a></code> <code><a href="plot.html">scale_sir_colours()</a></code> <code><a href="plot.html">theme_sir()</a></code> </dd>
</div>
<code><a href="microorganisms.html">microorganisms</a></code>
<div class="amr-ref-item">
<dt><a href="ggplot_sir.html">AMR Plots with <code>ggplot2</code></a></dt>
<dd><code><a href="ggplot_sir.html">ggplot_sir()</a></code> <code><a href="ggplot_sir.html">geom_sir()</a></code> <code><a href="ggplot_sir.html">labels_sir_count()</a></code> </dd>
</div>
</dt>
<dd>Data Set with 103 222 Taxonomic Records of Microorganisms</dd>
<dt>
<code><a href="antimicrobials.html">antimicrobials</a></code> <code><a href="antimicrobials.html">antibiotics</a></code> <code><a href="antimicrobials.html">antivirals</a></code>
</dt>
<dd>Data Sets with 626 Antimicrobial Drugs</dd>
<dt>
<code><a href="clinical_breakpoints.html">clinical_breakpoints</a></code>
</dt>
<dd>Data Set with Clinical Breakpoints for SIR Interpretation</dd>
<dt>
<code><a href="example_isolates.html">example_isolates</a></code>
</dt>
<dd>Data Set with 2 000 Example Isolates</dd>
<dt>
<code><a href="esbl_isolates.html">esbl_isolates</a></code>
</dt>
<dd>Data Set with 500 ESBL Isolates</dd>
<dt>
<code><a href="microorganisms.codes.html">microorganisms.codes</a></code>
</dt>
<dd>Data Set with 6 293 Common Microorganism Codes</dd>
<dt>
<code><a href="microorganisms.groups.html">microorganisms.groups</a></code>
</dt>
<dd>Data Set with 466 Microorganisms In Species Groups</dd>
<dt>
<code><a href="intrinsic_resistant.html">intrinsic_resistant</a></code>
</dt>
<dd>Data Set Denoting Bacterial Intrinsic Resistance</dd>
<dt>
<code><a href="dosage.html">dosage</a></code>
</dt>
<dd>Data Set with Treatment Dosages as Defined by EUCAST</dd>
<dt>
<code><a href="WHOCC.html">WHOCC</a></code>
</dt>
<dd>WHOCC: WHO Collaborating Centre for Drug Statistics Methodology</dd>
<dt>
<code><a href="example_isolates_unclean.html">example_isolates_unclean</a></code>
</dt>
<dd>Data Set with Unclean Data</dd>
<dt>
<code><a href="WHONET.html">WHONET</a></code>
</dt>
<dd>Data Set with 500 Isolates - WHONET Example</dd>
<div class="amr-ref-item">
<dt><a href="ggplot_pca.html">PCA Biplot with <code>ggplot2</code></a></dt>
<dd><code><a href="ggplot_pca.html">ggplot_pca()</a></code> </dd>
</div>
</dl></div><div class="section level2">
<h2 id="other-miscellaneous-functions">Other: miscellaneous functions<a class="anchor" aria-label="anchor" href="#other-miscellaneous-functions"></a></h2>
<h2 id="modelling">Modelling<a class="anchor" aria-label="anchor" href="#modelling"></a></h2>
<div class="section-desc"><p>Miscellaneous functions that support various parts of an AMR analysis, such as working with ages, joining tables, principal component analysis, and other utilities. Especially the ‘like’ function can be useful: <code>if (x %like% y) {...}</code>.</p></div>
<div class="section-desc"><p>Use AMR data types in <code>tidymodels</code> pipelines, and perform principal component analysis or distance calculations on resistance profiles.</p></div>
<dl></dl></div><div class="section level2">
<dl class="amr-ref-list"></dl></div><div class="section level2">
<dl><dt>
<dl class="amr-ref-list"><div class="amr-ref-item">
<dt><a href="amr-tidymodels.html">AMR Extensions for Tidymodels</a></dt>
<dd><code><a href="amr-tidymodels.html">all_sir()</a></code> <code><a href="amr-tidymodels.html">all_sir_predictors()</a></code> <code><a href="amr-tidymodels.html">all_mic()</a></code> <code><a href="amr-tidymodels.html">all_mic_predictors()</a></code> <code><a href="amr-tidymodels.html">all_disk()</a></code> <code><a href="amr-tidymodels.html">all_disk_predictors()</a></code> <code><a href="amr-tidymodels.html">step_mic_log2()</a></code> <code><a href="amr-tidymodels.html">step_sir_numeric()</a></code> </dd>
</div>
<code><a href="age_groups.html">age_groups()</a></code>
<div class="amr-ref-item">
<dt><a href="pca.html">Principal Component Analysis (for AMR)</a></dt>
<dd><code><a href="pca.html">pca()</a></code> </dd>
</div>
</dt>
<dd>Split Ages into Age Groups</dd>
<dt>
<code><a href="age.html">age()</a></code>
</dt>
<dd>Age in Years of Individuals</dd>
<dt>
<code><a href="amr_course.html">amr_course()</a></code>
</dt>
<dd>Download and Unpack an AMR Course Repository</dd>
<dt>
<code><a href="export_ncbi_biosample.html">export_ncbi_biosample()</a></code>
</dt>
<dd>Export Data Set as NCBI BioSample Antibiogram</dd>
<dt>
<code><a href="availability.html">availability()</a></code>
</dt>
<dd>Check Availability of Columns</dd>
<dt>
<code><a href="translate.html">get_AMR_locale()</a></code> <code><a href="translate.html">set_AMR_locale()</a></code> <code><a href="translate.html">reset_AMR_locale()</a></code> <code><a href="translate.html">translate_AMR()</a></code>
</dt>
<dd>Translate Strings from the AMR Package</dd>
<dt>
<code><a href="italicise_taxonomy.html">italicise_taxonomy()</a></code> <code><a href="italicise_taxonomy.html">italicize_taxonomy()</a></code>
</dt>
<dd>Italicise Taxonomic Families, Genera, Species, Subspecies</dd>
<dt>
<code><a href="join.html">inner_join_microorganisms()</a></code> <code><a href="join.html">left_join_microorganisms()</a></code> <code><a href="join.html">right_join_microorganisms()</a></code> <code><a href="join.html">full_join_microorganisms()</a></code> <code><a href="join.html">semi_join_microorganisms()</a></code> <code><a href="join.html">anti_join_microorganisms()</a></code>
</dt>
<dd>Join microorganisms to a Data Set</dd>
<dt>
<code><a href="like.html">like()</a></code> <code><a href="like.html">`%like%`</a></code> <code><a href="like.html">`%unlike%`</a></code> <code><a href="like.html">`%like_case%`</a></code> <code><a href="like.html">`%unlike_case%`</a></code>
</dt>
<dd>Vectorised Pattern Matching with Keyboard Shortcut</dd>
<dt>
<code><a href="mo_matching_score.html">mo_matching_score()</a></code>
</dt>
<dd>Calculate the Matching Score for Microorganisms</dd>
<dt>
<code><a href="pca.html">pca()</a></code>
</dt>
<dd>Principal Component Analysis (for AMR)</dd>
<dt>
<code><a href="random.html">random_mic()</a></code> <code><a href="random.html">random_disk()</a></code> <code><a href="random.html">random_sir()</a></code>
</dt>
<dd>Random MIC Values/Disk Zones/SIR Generation</dd>
<div class="amr-ref-item">
<dt><a href="mean_amr_distance.html">Calculate the Mean AMR Distance</a></dt>
<dd><code><a href="mean_amr_distance.html">mean_amr_distance()</a></code> <code><a href="mean_amr_distance.html">amr_distance_from_row()</a></code> </dd>
</div>
</dl></div><div class="section level2">
<h2 id="other-statistical-tests">Other: statistical tests<a class="anchor" aria-label="anchor" href="#other-statistical-tests"></a></h2>
<h2 id="reference-data">Reference data<a class="anchor" aria-label="anchor" href="#reference-data"></a></h2>
<div class="section-desc"><p>Some statistical tests or methods usable for AMR analyses are not part of base R and were added to this package for convenience.</p></div>
<div class="section-desc"><p>The data sets underlying this package, all of which can also be <a href="../articles/datasets.html">downloaded in other formats</a>.</p></div>
<dl></dl></div><div class="section level2">
<dl class="amr-ref-list"></dl></div><div class="section level2">
<h3 id="microorganisms-1">Microorganisms<a class="anchor" aria-label="anchor" href="#microorganisms-1"></a></h3>
<dl class="amr-ref-list"></dl></div><div class="section level2">
<dl><dt>
<dl class="amr-ref-list"><div class="amr-ref-item">
<dt><a href="microorganisms.html">Data Set with 103 222 Taxonomic Records of Microorganisms</a></dt>
<dd><code><a href="microorganisms.html">microorganisms</a></code> </dd>
</div>
<code><a href="g.test.html">g.test()</a></code>
<div class="amr-ref-item">
<dt><a href="microorganisms.codes.html">Data Set with 6 293 Common Microorganism Codes</a></dt>
<dd><code><a href="microorganisms.codes.html">microorganisms.codes</a></code> </dd>
</div>
</dt>
<dd><em>G</em>-test for Count Data</dd>
<dt>
<code><a href="kurtosis.html">kurtosis()</a></code>
</dt>
<dd>Kurtosis of the Sample</dd>
<dt>
<code><a href="skewness.html">skewness()</a></code>
</dt>
<dd>Skewness of the Sample</dd>
<div class="amr-ref-item">
<dt><a href="microorganisms.groups.html">Data Set with 466 Microorganisms In Species Groups</a></dt>
<dd><code><a href="microorganisms.groups.html">microorganisms.groups</a></code> </dd>
</div>
</dl></div><div class="section level2">
<h2 id="other-deprecated-functions-arguments-datasets">Other: deprecated functions/arguments/datasets<a class="anchor" aria-label="anchor" href="#other-deprecated-functions-arguments-datasets"></a></h2>
<div class="section-desc"><p>These objects are deprecated, meaning that they will still work but show a warning that they will be removed in a future version.</p></div>
<h3 id="antimicrobials-1">Antimicrobials<a class="anchor" aria-label="anchor" href="#antimicrobials-1"></a></h3>
<dl></dl></div><div class="section level2">
<dl class="amr-ref-list"></dl></div><div class="section level2">
<dl><dt>
<dl class="amr-ref-list"><div class="amr-ref-item">
<dt><a href="antimicrobials.html">Data Sets with 626 Antimicrobial Drugs</a></dt>
<dd><code><a href="antimicrobials.html">antimicrobials</a></code> <code><a href="antimicrobials.html">antibiotics</a></code> <code><a href="antimicrobials.html">antivirals</a></code> </dd>
</div>
<code><a href="AMR-deprecated.html">custom_eucast_rules()</a></code> <code><a href="AMR-deprecated.html">ab_class()</a></code> <code><a href="AMR-deprecated.html">ab_selector()</a></code>
<div class="amr-ref-item">
<dt><a href="WHOCC.html">WHOCC: WHO Collaborating Centre for Drug Statistics Methodology</a></dt>
<dd><code><a href="WHOCC.html">WHOCC</a></code> </dd>
</div>
</dt>
<dd>Deprecated Functions, Arguments, or Datasets</dd>
<div class="amr-ref-item">
<dt><a href="dosage.html">Data Set with Treatment Dosages as Defined by EUCAST</a></dt>
<dd><code><a href="dosage.html">dosage</a></code> </dd>
</div>
</dl></div><div class="section level2">
<h3 id="breakpoints-and-intrinsic-resistance">Breakpoints and intrinsic resistance<a class="anchor" aria-label="anchor" href="#breakpoints-and-intrinsic-resistance"></a></h3>
<dl class="amr-ref-list"></dl></div><div class="section level2">
<dl class="amr-ref-list"><div class="amr-ref-item">
<dt><a href="clinical_breakpoints.html">Data Set with Clinical Breakpoints for SIR Interpretation</a></dt>
<dd><code><a href="clinical_breakpoints.html">clinical_breakpoints</a></code> </dd>
</div>
<div class="amr-ref-item">
<dt><a href="intrinsic_resistant.html">Data Set Denoting Bacterial Intrinsic Resistance</a></dt>
<dd><code><a href="intrinsic_resistant.html">intrinsic_resistant</a></code> </dd>
</div>
</dl></div><div class="section level2">
<h3 id="example-data">Example data<a class="anchor" aria-label="anchor" href="#example-data"></a></h3>
<dl class="amr-ref-list"></dl></div><div class="section level2">
<dl class="amr-ref-list"><div class="amr-ref-item">
<dt><a href="example_isolates.html">Data Set with 2 000 Example Isolates</a></dt>
<dd><code><a href="example_isolates.html">example_isolates</a></code> </dd>
</div>
<div class="amr-ref-item">
<dt><a href="example_isolates_unclean.html">Data Set with Unclean Data</a></dt>
<dd><code><a href="example_isolates_unclean.html">example_isolates_unclean</a></code> </dd>
</div>
<div class="amr-ref-item">
<dt><a href="esbl_isolates.html">Data Set with 500 ESBL Isolates</a></dt>
<dd><code><a href="esbl_isolates.html">esbl_isolates</a></code> </dd>
</div>
<div class="amr-ref-item">
<dt><a href="WHONET.html">Data Set with 500 Isolates - WHONET Example</a></dt>
<dd><code><a href="WHONET.html">WHONET</a></code> </dd>
</div>
</dl></div><div class="section level2">
<h2 id="utilities">Utilities<a class="anchor" aria-label="anchor" href="#utilities"></a></h2>
<div class="section-desc"><p>Helper functions for pattern matching with <code>%like%</code>, ages, joining and italicising taxonomy, generating random test results, and data export.</p></div>
<dl class="amr-ref-list"></dl></div><div class="section level2">
<dl class="amr-ref-list"><div class="amr-ref-item">
<dt><a href="like.html">Vectorised Pattern Matching with Keyboard Shortcut</a></dt>
<dd><code><a href="like.html">like()</a></code> <code><a href="like.html">`%like%`</a></code> <code><a href="like.html">`%unlike%`</a></code> <code><a href="like.html">`%like_case%`</a></code> <code><a href="like.html">`%unlike_case%`</a></code> </dd>
</div>
<div class="amr-ref-item">
<dt><a href="age.html">Age in Years of Individuals</a></dt>
<dd><code><a href="age.html">age()</a></code> </dd>
</div>
<div class="amr-ref-item">
<dt><a href="age_groups.html">Split Ages into Age Groups</a></dt>
<dd><code><a href="age_groups.html">age_groups()</a></code> </dd>
</div>
<div class="amr-ref-item">
<dt><a href="join.html">Join microorganisms to a Data Set</a></dt>
<dd><code><a href="join.html">inner_join_microorganisms()</a></code> <code><a href="join.html">left_join_microorganisms()</a></code> <code><a href="join.html">right_join_microorganisms()</a></code> <code><a href="join.html">full_join_microorganisms()</a></code> <code><a href="join.html">semi_join_microorganisms()</a></code> <code><a href="join.html">anti_join_microorganisms()</a></code> </dd>
</div>
<div class="amr-ref-item">
<dt><a href="italicise_taxonomy.html">Italicise Taxonomic Families, Genera, Species, and Subspecies</a></dt>
<dd><code><a href="italicise_taxonomy.html">italicise_taxonomy()</a></code> <code><a href="italicise_taxonomy.html">italicize_taxonomy()</a></code> </dd>
</div>
<div class="amr-ref-item">
<dt><a href="random.html">Generate Random MIC Values, Disk Zones, or SIR Results</a></dt>
<dd><code><a href="random.html">random_mic()</a></code> <code><a href="random.html">random_disk()</a></code> <code><a href="random.html">random_sir()</a></code> </dd>
</div>
<div class="amr-ref-item">
<dt><a href="export_ncbi_biosample.html">Export Data Set as NCBI BioSample Antibiogram</a></dt>
<dd><code><a href="export_ncbi_biosample.html">export_ncbi_biosample()</a></code> </dd>
</div>
</dl></div><div class="section level2">
<h3 id="statistical-tests">Statistical tests<a class="anchor" aria-label="anchor" href="#statistical-tests"></a></h3>
<dl class="amr-ref-list"></dl></div><div class="section level2">
<dl class="amr-ref-list"><div class="amr-ref-item">
<dt><a href="g.test.html"><em>G</em>-test for Count Data</a></dt>
<dd><code><a href="g.test.html">g.test()</a></code> </dd>
</div>
<div class="amr-ref-item">
<dt><a href="kurtosis.html">Kurtosis of the Sample</a></dt>
<dd><code><a href="kurtosis.html">kurtosis()</a></code> </dd>
</div>
<div class="amr-ref-item">
<dt><a href="skewness.html">Skewness of the Sample</a></dt>
<dd><code><a href="skewness.html">skewness()</a></code> </dd>
</div>
</dl></div><div class="section level2">
<h2 id="deprecated-functions">Deprecated functions<a class="anchor" aria-label="anchor" href="#deprecated-functions"></a></h2>
<div class="section-desc"><p>These still work, but show a warning and will be removed in a future version.</p></div>
<dl class="amr-ref-list"></dl></div><div class="section level2">
<dl class="amr-ref-list"><div class="amr-ref-item">
<dt><a href="AMR-deprecated.html">Deprecated Functions, Arguments, or Data Sets</a></dt>
<dd><code><a href="AMR-deprecated.html">custom_eucast_rules()</a></code> <code><a href="AMR-deprecated.html">ab_class()</a></code> <code><a href="AMR-deprecated.html">ab_selector()</a></code> </dd>
</div>
<div class="amr-ref-item">
<dt><a href="resistance_predict.html">Predict Antimicrobial Resistance</a></dt>
<dd><code><a href="resistance_predict.html">resistance_predict()</a></code> <code><a href="resistance_predict.html">sir_predict()</a></code> <code><a href="resistance_predict.html">plot(<i>&lt;resistance_predict&gt;</i>)</a></code> <code><a href="resistance_predict.html">ggplot_sir_predict()</a></code> <code><a href="resistance_predict.html">autoplot(<i>&lt;resistance_predict&gt;</i>)</a></code> </dd>
</div>
</dl></div>
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
</nav></aside></div>
+443 -436
View File
@@ -1,497 +1,504 @@
# Package index
## Introduction to the package
## Getting started
Please find the introduction to (and some general information about) our
package here.
An overview of the package, its options for users and teams, and its 28
supported languages.
- [`AMR-package`](https://amr-for-r.org/reference/AMR.md)
[`AMR`](https://amr-for-r.org/reference/AMR.md) :
[The `AMR` Package](https://amr-for-r.org/reference/AMR.md)
: [`AMR-package`](https://amr-for-r.org/reference/AMR.md)
[`AMR`](https://amr-for-r.org/reference/AMR.md)
The `AMR` Package
[Options for the AMR Package](https://amr-for-r.org/reference/AMR-options.md)
: [`AMR-options`](https://amr-for-r.org/reference/AMR-options.md)
## Preparing data: microorganisms
[Translate Strings from the AMR Package](https://amr-for-r.org/reference/translate.md)
: [`get_AMR_locale()`](https://amr-for-r.org/reference/translate.md)
[`set_AMR_locale()`](https://amr-for-r.org/reference/translate.md)
[`reset_AMR_locale()`](https://amr-for-r.org/reference/translate.md)
[`translate_AMR()`](https://amr-for-r.org/reference/translate.md)
These functions are meant to get taxonomically valid properties of
microorganisms from any input, but also properties derived from
taxonomy, such as the Gram stain
([`mo_gramstain()`](https://amr-for-r.org/reference/mo_property.md)) ,
or [`mo_is_yeast()`](https://amr-for-r.org/reference/mo_property.md).
Use [`mo_source()`](https://amr-for-r.org/reference/mo_source.md) to
teach this package how to translate your own codes to valid
microorganisms, and use
[`add_custom_microorganisms()`](https://amr-for-r.org/reference/add_custom_microorganisms.md)
to add your own custom microorganisms to this package.
[Download and Unpack an AMR Course Repository](https://amr-for-r.org/reference/amr_course.md)
: [`amr_course()`](https://amr-for-r.org/reference/amr_course.md)
- [`as.mo()`](https://amr-for-r.org/reference/as.mo.md)
[`is.mo()`](https://amr-for-r.org/reference/as.mo.md)
[`mo_uncertainties()`](https://amr-for-r.org/reference/as.mo.md)
[`mo_renamed()`](https://amr-for-r.org/reference/as.mo.md)
[`mo_failures()`](https://amr-for-r.org/reference/as.mo.md)
[`mo_reset_session()`](https://amr-for-r.org/reference/as.mo.md)
[`mo_cleaning_regex()`](https://amr-for-r.org/reference/as.mo.md)
[`NA_mo_`](https://amr-for-r.org/reference/as.mo.md) : Transform
Arbitrary Input to Valid Microbial Taxonomy
- [`mo_name()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_fullname()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_shortname()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_subspecies()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_species()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_genus()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_family()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_order()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_class()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_phylum()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_kingdom()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_domain()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_type()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_status()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_pathogenicity()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_gramstain()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_is_gram_negative()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_is_gram_positive()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_is_yeast()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_is_intrinsic_resistant()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_oxygen_tolerance()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_is_anaerobic()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_morphology()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_snomed()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_ref()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_authors()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_year()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_lpsn()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_mycobank()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_gbif()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_rank()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_taxonomy()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_synonyms()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_current()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_group_members()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_info()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_url()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_property()`](https://amr-for-r.org/reference/mo_property.md) :
Get Properties of a Microorganism
- [`add_custom_microorganisms()`](https://amr-for-r.org/reference/add_custom_microorganisms.md)
[`clear_custom_microorganisms()`](https://amr-for-r.org/reference/add_custom_microorganisms.md)
: Add Custom Microorganisms
- [`set_mo_source()`](https://amr-for-r.org/reference/mo_source.md)
[`get_mo_source()`](https://amr-for-r.org/reference/mo_source.md) :
User-Defined Reference Data Set for Microorganisms
## Cleaning data
## Preparing data: antimicrobials
Transform raw input of any kind into valid microorganisms with
[`as.mo()`](https://amr-for-r.org/reference/as.mo.md), antimicrobials
with [`as.ab()`](https://amr-for-r.org/reference/as.ab.md), and MIC
values and disk diffusion zones with
[`as.mic()`](https://amr-for-r.org/reference/as.mic.md) and
[`as.disk()`](https://amr-for-r.org/reference/as.disk.md), and retrieve
their properties.
Use these functions to get valid properties of antimicrobials from any
input or to clean your input. You can even retrieve drug names and doses
from clinical text records, using
[`ab_from_text()`](https://amr-for-r.org/reference/ab_from_text.md).
### Microorganisms
- [`as.ab()`](https://amr-for-r.org/reference/as.ab.md)
[`is.ab()`](https://amr-for-r.org/reference/as.ab.md)
[`ab_reset_session()`](https://amr-for-r.org/reference/as.ab.md)
[`NA_ab_`](https://amr-for-r.org/reference/as.ab.md) : Transform Input
to an Antibiotic ID
- [`ab_name()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_cid()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_synonyms()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_tradenames()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_group()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_atc()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_atc_group1()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_atc_group2()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_loinc()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_ddd()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_ddd_units()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_info()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_url()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_property()`](https://amr-for-r.org/reference/ab_property.md)
[`set_ab_names()`](https://amr-for-r.org/reference/ab_property.md) :
Get Properties of an Antibiotic
- [`ab_from_text()`](https://amr-for-r.org/reference/ab_from_text.md) :
Retrieve Antimicrobial Drug Names and Doses from Clinical Text
- [`atc_online_property()`](https://amr-for-r.org/reference/atc_online.md)
[`atc_online_groups()`](https://amr-for-r.org/reference/atc_online.md)
[`atc_online_ddd()`](https://amr-for-r.org/reference/atc_online.md)
[`atc_online_ddd_units()`](https://amr-for-r.org/reference/atc_online.md)
: Get ATC Properties from WHOCC Website
- [`add_custom_antimicrobials()`](https://amr-for-r.org/reference/add_custom_antimicrobials.md)
[`add_custom_antimicrobial_synonyms()`](https://amr-for-r.org/reference/add_custom_antimicrobials.md)
[`clear_custom_antimicrobials()`](https://amr-for-r.org/reference/add_custom_antimicrobials.md)
: Add Custom Antimicrobials
[Transform Arbitrary Input to Valid Microbial Taxonomy](https://amr-for-r.org/reference/as.mo.md)
: [`as.mo()`](https://amr-for-r.org/reference/as.mo.md)
[`is.mo()`](https://amr-for-r.org/reference/as.mo.md)
[`mo_uncertainties()`](https://amr-for-r.org/reference/as.mo.md)
[`mo_renamed()`](https://amr-for-r.org/reference/as.mo.md)
[`mo_failures()`](https://amr-for-r.org/reference/as.mo.md)
[`mo_reset_session()`](https://amr-for-r.org/reference/as.mo.md)
[`mo_cleaning_regex()`](https://amr-for-r.org/reference/as.mo.md)
[`NA_mo_`](https://amr-for-r.org/reference/as.mo.md)
## Interpreting data: antimicrobial results
[Get Properties of a Microorganism](https://amr-for-r.org/reference/mo_property.md)
: [`mo_name()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_fullname()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_shortname()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_subspecies()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_species()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_genus()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_family()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_order()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_class()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_phylum()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_kingdom()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_domain()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_type()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_status()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_pathogenicity()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_gramstain()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_is_gram_negative()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_is_gram_positive()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_is_yeast()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_is_intrinsic_resistant()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_oxygen_tolerance()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_is_anaerobic()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_morphology()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_snomed()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_ref()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_authors()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_year()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_lpsn()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_mycobank()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_gbif()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_rank()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_taxonomy()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_synonyms()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_current()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_group_members()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_info()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_url()`](https://amr-for-r.org/reference/mo_property.md)
[`mo_property()`](https://amr-for-r.org/reference/mo_property.md)
With [`as.mic()`](https://amr-for-r.org/reference/as.mic.md) and
[`as.disk()`](https://amr-for-r.org/reference/as.disk.md) you can
transform your raw input to valid MIC or disk diffusion values. Use
[`as.sir()`](https://amr-for-r.org/reference/as.sir.md) for cleaning raw
data to let it only contain “R”, “I” and “S”, or to interpret MIC or
disk diffusion values as SIR based on the lastest EUCAST and CLSI
guidelines. Afterwards, you can extend antibiotic interpretations by
applying interpretive rules, for example [from
EUCAST](https://www.eucast.org/expert_rules_and_intrinsic_resistance/)
with
[`interpretive_rules()`](https://amr-for-r.org/reference/interpretive_rules.md).
[User-Defined Reference Data Set for Microorganisms](https://amr-for-r.org/reference/mo_source.md)
: [`set_mo_source()`](https://amr-for-r.org/reference/mo_source.md)
[`get_mo_source()`](https://amr-for-r.org/reference/mo_source.md)
- [`as.sir()`](https://amr-for-r.org/reference/as.sir.md)
[`NA_sir_`](https://amr-for-r.org/reference/as.sir.md)
[`is.sir()`](https://amr-for-r.org/reference/as.sir.md)
[`is_sir_eligible()`](https://amr-for-r.org/reference/as.sir.md)
[`sir_interpretation_history()`](https://amr-for-r.org/reference/as.sir.md)
: Interpret MIC and Disk Diffusion as SIR, or Clean Existing SIR Data
- [`as.mic()`](https://amr-for-r.org/reference/as.mic.md)
[`is.mic()`](https://amr-for-r.org/reference/as.mic.md)
[`NA_mic_`](https://amr-for-r.org/reference/as.mic.md)
[`rescale_mic()`](https://amr-for-r.org/reference/as.mic.md)
[`mic_p50()`](https://amr-for-r.org/reference/as.mic.md)
[`mic_p90()`](https://amr-for-r.org/reference/as.mic.md)
[`droplevels(`*`<mic>`*`)`](https://amr-for-r.org/reference/as.mic.md)
: Transform Input to Minimum Inhibitory Concentrations (MIC)
- [`as.disk()`](https://amr-for-r.org/reference/as.disk.md)
[`NA_disk_`](https://amr-for-r.org/reference/as.disk.md)
[`is.disk()`](https://amr-for-r.org/reference/as.disk.md) : Transform
Input to Disk Diffusion Diameters
- [`interpretive_rules()`](https://amr-for-r.org/reference/interpretive_rules.md)
[`eucast_rules()`](https://amr-for-r.org/reference/interpretive_rules.md)
[`clsi_rules()`](https://amr-for-r.org/reference/interpretive_rules.md)
[`eucast_dosage()`](https://amr-for-r.org/reference/interpretive_rules.md)
: Apply Interpretive Rules
- [`custom_interpretive_rules()`](https://amr-for-r.org/reference/custom_interpretive_rules.md)
: Define Custom Interpretive Rules
[Add Custom Microorganisms](https://amr-for-r.org/reference/add_custom_microorganisms.md)
: [`add_custom_microorganisms()`](https://amr-for-r.org/reference/add_custom_microorganisms.md)
[`clear_custom_microorganisms()`](https://amr-for-r.org/reference/add_custom_microorganisms.md)
[Calculate the Matching Score for Microorganisms](https://amr-for-r.org/reference/mo_matching_score.md)
: [`mo_matching_score()`](https://amr-for-r.org/reference/mo_matching_score.md)
### Antimicrobials
[Transform Input to an Antimicrobial Drug ID](https://amr-for-r.org/reference/as.ab.md)
: [`as.ab()`](https://amr-for-r.org/reference/as.ab.md)
[`is.ab()`](https://amr-for-r.org/reference/as.ab.md)
[`ab_reset_session()`](https://amr-for-r.org/reference/as.ab.md)
[`NA_ab_`](https://amr-for-r.org/reference/as.ab.md)
[Get Properties of an Antimicrobial Drug](https://amr-for-r.org/reference/ab_property.md)
: [`ab_name()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_cid()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_synonyms()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_tradenames()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_group()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_atc()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_atc_group1()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_atc_group2()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_loinc()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_ddd()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_ddd_units()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_info()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_url()`](https://amr-for-r.org/reference/ab_property.md)
[`ab_property()`](https://amr-for-r.org/reference/ab_property.md)
[`set_ab_names()`](https://amr-for-r.org/reference/ab_property.md)
[Retrieve Antimicrobial Drug Names and Doses from Clinical Text](https://amr-for-r.org/reference/ab_from_text.md)
: [`ab_from_text()`](https://amr-for-r.org/reference/ab_from_text.md)
[Add Custom Antimicrobials](https://amr-for-r.org/reference/add_custom_antimicrobials.md)
: [`add_custom_antimicrobials()`](https://amr-for-r.org/reference/add_custom_antimicrobials.md)
[`add_custom_antimicrobial_synonyms()`](https://amr-for-r.org/reference/add_custom_antimicrobials.md)
[`clear_custom_antimicrobials()`](https://amr-for-r.org/reference/add_custom_antimicrobials.md)
[Get ATC Properties from WHOCC Website](https://amr-for-r.org/reference/atc_online.md)
: [`atc_online_property()`](https://amr-for-r.org/reference/atc_online.md)
[`atc_online_groups()`](https://amr-for-r.org/reference/atc_online.md)
[`atc_online_ddd()`](https://amr-for-r.org/reference/atc_online.md)
[`atc_online_ddd_units()`](https://amr-for-r.org/reference/atc_online.md)
### Antivirals
[Transform Input to an Antiviral Drug ID](https://amr-for-r.org/reference/as.av.md)
: [`as.av()`](https://amr-for-r.org/reference/as.av.md)
[`is.av()`](https://amr-for-r.org/reference/as.av.md)
[Get Properties of an Antiviral Drug](https://amr-for-r.org/reference/av_property.md)
: [`av_name()`](https://amr-for-r.org/reference/av_property.md)
[`av_cid()`](https://amr-for-r.org/reference/av_property.md)
[`av_synonyms()`](https://amr-for-r.org/reference/av_property.md)
[`av_tradenames()`](https://amr-for-r.org/reference/av_property.md)
[`av_group()`](https://amr-for-r.org/reference/av_property.md)
[`av_atc()`](https://amr-for-r.org/reference/av_property.md)
[`av_loinc()`](https://amr-for-r.org/reference/av_property.md)
[`av_ddd()`](https://amr-for-r.org/reference/av_property.md)
[`av_ddd_units()`](https://amr-for-r.org/reference/av_property.md)
[`av_info()`](https://amr-for-r.org/reference/av_property.md)
[`av_url()`](https://amr-for-r.org/reference/av_property.md)
[`av_property()`](https://amr-for-r.org/reference/av_property.md)
[Retrieve Antiviral Drug Names and Doses from Clinical Text](https://amr-for-r.org/reference/av_from_text.md)
: [`av_from_text()`](https://amr-for-r.org/reference/av_from_text.md)
### Test results
[Transform Input to Minimum Inhibitory Concentrations (MIC)](https://amr-for-r.org/reference/as.mic.md)
: [`as.mic()`](https://amr-for-r.org/reference/as.mic.md)
[`is.mic()`](https://amr-for-r.org/reference/as.mic.md)
[`NA_mic_`](https://amr-for-r.org/reference/as.mic.md)
[`rescale_mic()`](https://amr-for-r.org/reference/as.mic.md)
[`mic_p50()`](https://amr-for-r.org/reference/as.mic.md)
[`mic_p90()`](https://amr-for-r.org/reference/as.mic.md)
[`droplevels(`*`<mic>`*`)`](https://amr-for-r.org/reference/as.mic.md)
[Transform Input to Disk Diffusion Diameters](https://amr-for-r.org/reference/as.disk.md)
: [`as.disk()`](https://amr-for-r.org/reference/as.disk.md)
[`NA_disk_`](https://amr-for-r.org/reference/as.disk.md)
[`is.disk()`](https://amr-for-r.org/reference/as.disk.md)
## Interpreting results as SIR
Interpret MIC values and disk diffusion zones as SIR with
[`as.sir()`](https://amr-for-r.org/reference/as.sir.md), according to
EUCAST or CLSI, for every guideline year from 2011 to 2026, and apply
interpretive rules.
[`as.sir()`](https://amr-for-r.org/reference/as.sir.md) also cleans
existing SIR data.
[Interpret MIC and Disk Diffusion as SIR, or Clean Existing SIR Data](https://amr-for-r.org/reference/as.sir.md)
: [`as.sir()`](https://amr-for-r.org/reference/as.sir.md)
[`NA_sir_`](https://amr-for-r.org/reference/as.sir.md)
[`is.sir()`](https://amr-for-r.org/reference/as.sir.md)
[`is_sir_eligible()`](https://amr-for-r.org/reference/as.sir.md)
[`sir_interpretation_history()`](https://amr-for-r.org/reference/as.sir.md)
[Apply Interpretive Rules](https://amr-for-r.org/reference/interpretive_rules.md)
: [`interpretive_rules()`](https://amr-for-r.org/reference/interpretive_rules.md)
[`eucast_rules()`](https://amr-for-r.org/reference/interpretive_rules.md)
[`clsi_rules()`](https://amr-for-r.org/reference/interpretive_rules.md)
[`eucast_dosage()`](https://amr-for-r.org/reference/interpretive_rules.md)
[Define Custom Interpretive Rules](https://amr-for-r.org/reference/custom_interpretive_rules.md)
: [`custom_interpretive_rules()`](https://amr-for-r.org/reference/custom_interpretive_rules.md)
## Analysing data
Use these function for the analysis part. You can use
[`susceptibility()`](https://amr-for-r.org/reference/proportion.md) or
[`resistance()`](https://amr-for-r.org/reference/proportion.md) on any
antibiotic column. With
[`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md), you
can generate a traditional, combined, syndromic, or weighted-incidence
syndromic combination antibiogram (WISCA). This function also comes with
support for R Markdown and Quarto. Be sure to first select the isolates
that are appropiate for analysis, by using
[`first_isolate()`](https://amr-for-r.org/reference/first_isolate.md) or
[`is_new_episode()`](https://amr-for-r.org/reference/get_episode.md).
You can also filter your data on certain resistance in certain
antibiotic classes
([`carbapenems()`](https://amr-for-r.org/reference/antimicrobial_selectors.md),
[`aminoglycosides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)),
or determine multi-drug resistant microorganisms (MDRO,
[`mdro()`](https://amr-for-r.org/reference/mdro.md)).
Select first isolates with
[`first_isolate()`](https://amr-for-r.org/reference/first_isolate.md),
generate traditional, combination, syndromic, and WISCA antibiograms
with [`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md)
and [`wisca()`](https://amr-for-r.org/reference/antibiogram.md),
calculate resistance, and determine multidrug-resistant organisms.
- [`wisca()`](https://amr-for-r.org/reference/antibiogram.md)
[`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md)
[`retrieve_wisca_parameters()`](https://amr-for-r.org/reference/antibiogram.md)
[`plot(`*`<antibiogram>`*`)`](https://amr-for-r.org/reference/antibiogram.md)
[`autoplot(`*`<antibiogram>`*`)`](https://amr-for-r.org/reference/antibiogram.md)
[`wisca_plot()`](https://amr-for-r.org/reference/antibiogram.md)
[`knit_print(`*`<antibiogram>`*`)`](https://amr-for-r.org/reference/antibiogram.md)
: Generate Antibiograms (WISCA, Traditional, Combination, or
Syndromic)
### Selecting isolates and antimicrobials
- [`resistance()`](https://amr-for-r.org/reference/proportion.md)
[`susceptibility()`](https://amr-for-r.org/reference/proportion.md)
[`sir_confidence_interval()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_R()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_IR()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_I()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_SI()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_S()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_df()`](https://amr-for-r.org/reference/proportion.md)
[`sir_df()`](https://amr-for-r.org/reference/proportion.md) :
Calculate Antimicrobial Resistance
[Determine First Isolates](https://amr-for-r.org/reference/first_isolate.md)
: [`first_isolate()`](https://amr-for-r.org/reference/first_isolate.md)
[`filter_first_isolate()`](https://amr-for-r.org/reference/first_isolate.md)
- [`count_resistant()`](https://amr-for-r.org/reference/count.md)
[`count_susceptible()`](https://amr-for-r.org/reference/count.md)
[`count_S()`](https://amr-for-r.org/reference/count.md)
[`count_SI()`](https://amr-for-r.org/reference/count.md)
[`count_I()`](https://amr-for-r.org/reference/count.md)
[`count_IR()`](https://amr-for-r.org/reference/count.md)
[`count_R()`](https://amr-for-r.org/reference/count.md)
[`count_all()`](https://amr-for-r.org/reference/count.md)
[`n_sir()`](https://amr-for-r.org/reference/count.md)
[`count_df()`](https://amr-for-r.org/reference/count.md) : Count
Available Isolates
[Determine Clinical or Epidemic Episodes](https://amr-for-r.org/reference/get_episode.md)
: [`get_episode()`](https://amr-for-r.org/reference/get_episode.md)
[`is_new_episode()`](https://amr-for-r.org/reference/get_episode.md)
- [`sir_combine()`](https://amr-for-r.org/reference/sir_combine.md) :
Combine SIR Results of Multiple Antimicrobials
[(Key) Antimicrobials for First Weighted Isolates](https://amr-for-r.org/reference/key_antimicrobials.md)
: [`key_antimicrobials()`](https://amr-for-r.org/reference/key_antimicrobials.md)
[`all_antimicrobials()`](https://amr-for-r.org/reference/key_antimicrobials.md)
[`antimicrobials_equal()`](https://amr-for-r.org/reference/key_antimicrobials.md)
- [`get_episode()`](https://amr-for-r.org/reference/get_episode.md)
[`is_new_episode()`](https://amr-for-r.org/reference/get_episode.md) :
Determine Clinical or Epidemic Episodes
[Filter Top *n* Microorganisms](https://amr-for-r.org/reference/top_n_microorganisms.md)
: [`top_n_microorganisms()`](https://amr-for-r.org/reference/top_n_microorganisms.md)
- [`first_isolate()`](https://amr-for-r.org/reference/first_isolate.md)
[`filter_first_isolate()`](https://amr-for-r.org/reference/first_isolate.md)
: Determine First Isolates
[Antimicrobial Selectors](https://amr-for-r.org/reference/antimicrobial_selectors.md)
: [`aminoglycosides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`aminopenicillins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`antifungals()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`antimycobacterials()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`betalactams()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`betalactams_with_inhibitor()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`carbapenems()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins_1st()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins_2nd()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins_3rd()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins_4th()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins_5th()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`fluoroquinolones()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`glycopeptides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`ionophores()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`isoxazolylpenicillins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`lincosamides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`lipoglycopeptides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`macrolides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`monobactams()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`nitrofurans()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`oxazolidinones()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`penicillins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`peptides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`phenicols()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`phosphonics()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`polymyxins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`quinolones()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`rifamycins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`spiropyrimidinetriones()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`streptogramins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`sulfonamides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`tetracyclines()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`trimethoprims()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`ureidopenicillins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`amr_class()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`amr_selector()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`administrable_per_os()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`administrable_iv()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`not_intrinsic_resistant()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
- [`key_antimicrobials()`](https://amr-for-r.org/reference/key_antimicrobials.md)
[`all_antimicrobials()`](https://amr-for-r.org/reference/key_antimicrobials.md)
[`antimicrobials_equal()`](https://amr-for-r.org/reference/key_antimicrobials.md)
: (Key) Antimicrobials for First Weighted Isolates
[Guess Antimicrobial Column](https://amr-for-r.org/reference/guess_ab_col.md)
: [`guess_ab_col()`](https://amr-for-r.org/reference/guess_ab_col.md)
- [`mdro()`](https://amr-for-r.org/reference/mdro.md)
[`brmo()`](https://amr-for-r.org/reference/mdro.md)
[`mrgn()`](https://amr-for-r.org/reference/mdro.md)
[`mdr_tb()`](https://amr-for-r.org/reference/mdro.md)
[`mdr_cmi2012()`](https://amr-for-r.org/reference/mdro.md)
[`eucast_exceptional_phenotypes()`](https://amr-for-r.org/reference/mdro.md)
: Determine Multidrug-Resistant Organisms (MDRO)
[Check Availability of Columns](https://amr-for-r.org/reference/availability.md)
: [`availability()`](https://amr-for-r.org/reference/availability.md)
- [`custom_mdro_guideline()`](https://amr-for-r.org/reference/custom_mdro_guideline.md)
[`c(`*`<custom_mdro_guideline>`*`)`](https://amr-for-r.org/reference/custom_mdro_guideline.md)
: Define Custom MDRO Guideline
### Generating antibiograms and WISCA
- [`bug_drug_combinations()`](https://amr-for-r.org/reference/bug_drug_combinations.md)
[`format(`*`<bug_drug_combinations>`*`)`](https://amr-for-r.org/reference/bug_drug_combinations.md)
: Determine Bug-Drug Combinations
[Generate Antibiograms (WISCA, Traditional, Combination, or Syndromic)](https://amr-for-r.org/reference/antibiogram.md)
: [`wisca()`](https://amr-for-r.org/reference/antibiogram.md)
[`antibiogram()`](https://amr-for-r.org/reference/antibiogram.md)
[`retrieve_wisca_parameters()`](https://amr-for-r.org/reference/antibiogram.md)
[`plot(`*`<antibiogram>`*`)`](https://amr-for-r.org/reference/antibiogram.md)
[`autoplot(`*`<antibiogram>`*`)`](https://amr-for-r.org/reference/antibiogram.md)
[`wisca_plot()`](https://amr-for-r.org/reference/antibiogram.md)
[`knit_print(`*`<antibiogram>`*`)`](https://amr-for-r.org/reference/antibiogram.md)
- [`aminoglycosides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`aminopenicillins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`antifungals()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`antimycobacterials()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`betalactams()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`betalactams_with_inhibitor()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`carbapenems()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins_1st()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins_2nd()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins_3rd()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins_4th()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`cephalosporins_5th()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`fluoroquinolones()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`glycopeptides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`ionophores()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`isoxazolylpenicillins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`lincosamides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`lipoglycopeptides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`macrolides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`monobactams()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`nitrofurans()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`oxazolidinones()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`penicillins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`peptides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`phenicols()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`phosphonics()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`polymyxins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`quinolones()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`rifamycins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`spiropyrimidinetriones()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`streptogramins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`sulfonamides()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`tetracyclines()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`trimethoprims()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`ureidopenicillins()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`amr_class()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`amr_selector()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`administrable_per_os()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`administrable_iv()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
[`not_intrinsic_resistant()`](https://amr-for-r.org/reference/antimicrobial_selectors.md)
: Antimicrobial Selectors
### Calculating resistance and susceptibility
- [`top_n_microorganisms()`](https://amr-for-r.org/reference/top_n_microorganisms.md)
:
[Calculate Antimicrobial Resistance](https://amr-for-r.org/reference/proportion.md)
: [`resistance()`](https://amr-for-r.org/reference/proportion.md)
[`susceptibility()`](https://amr-for-r.org/reference/proportion.md)
[`sir_confidence_interval()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_R()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_IR()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_I()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_SI()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_S()`](https://amr-for-r.org/reference/proportion.md)
[`proportion_df()`](https://amr-for-r.org/reference/proportion.md)
[`sir_df()`](https://amr-for-r.org/reference/proportion.md)
Filter Top *n* Microorganisms
[Count Available Isolates](https://amr-for-r.org/reference/count.md)
: [`count_resistant()`](https://amr-for-r.org/reference/count.md)
[`count_susceptible()`](https://amr-for-r.org/reference/count.md)
[`count_S()`](https://amr-for-r.org/reference/count.md)
[`count_SI()`](https://amr-for-r.org/reference/count.md)
[`count_I()`](https://amr-for-r.org/reference/count.md)
[`count_IR()`](https://amr-for-r.org/reference/count.md)
[`count_R()`](https://amr-for-r.org/reference/count.md)
[`count_all()`](https://amr-for-r.org/reference/count.md)
[`n_sir()`](https://amr-for-r.org/reference/count.md)
[`count_df()`](https://amr-for-r.org/reference/count.md)
- [`mean_amr_distance()`](https://amr-for-r.org/reference/mean_amr_distance.md)
[`amr_distance_from_row()`](https://amr-for-r.org/reference/mean_amr_distance.md)
: Calculate the Mean AMR Distance
[Combine SIR Results of Multiple Antimicrobials](https://amr-for-r.org/reference/sir_combine.md)
: [`sir_combine()`](https://amr-for-r.org/reference/sir_combine.md)
- [`resistance_predict()`](https://amr-for-r.org/reference/resistance_predict.md)
[`sir_predict()`](https://amr-for-r.org/reference/resistance_predict.md)
[`plot(`*`<resistance_predict>`*`)`](https://amr-for-r.org/reference/resistance_predict.md)
[`ggplot_sir_predict()`](https://amr-for-r.org/reference/resistance_predict.md)
[`autoplot(`*`<resistance_predict>`*`)`](https://amr-for-r.org/reference/resistance_predict.md)
: Predict Antimicrobial Resistance
[Determine Bug-Drug Combinations](https://amr-for-r.org/reference/bug_drug_combinations.md)
: [`bug_drug_combinations()`](https://amr-for-r.org/reference/bug_drug_combinations.md)
[`format(`*`<bug_drug_combinations>`*`)`](https://amr-for-r.org/reference/bug_drug_combinations.md)
- [`guess_ab_col()`](https://amr-for-r.org/reference/guess_ab_col.md) :
Guess Antibiotic Column
### Determining multidrug resistance
## Plotting data
[Determine Multidrug-Resistant Organisms (MDRO)](https://amr-for-r.org/reference/mdro.md)
: [`mdro()`](https://amr-for-r.org/reference/mdro.md)
[`brmo()`](https://amr-for-r.org/reference/mdro.md)
[`mrgn()`](https://amr-for-r.org/reference/mdro.md)
[`mdr_tb()`](https://amr-for-r.org/reference/mdro.md)
[`mdr_cmi2012()`](https://amr-for-r.org/reference/mdro.md)
[`eucast_exceptional_phenotypes()`](https://amr-for-r.org/reference/mdro.md)
Use these functions for the plotting part. The `scale_*_mic()` functions
extend the ggplot2 package to allow plotting of MIC values, even within
a manually set range. If using
[`plot()`](https://amr-for-r.org/reference/plot.md) (base R) or
[`autoplot()`](https://ggplot2.tidyverse.org/reference/autoplot.html)
(ggplot2) on MIC values or disk diffusion values, the user can set the
interpretation guideline to give the bars the right SIR colours. The
[`ggplot_sir()`](https://amr-for-r.org/reference/ggplot_sir.md) function
is a short wrapper for users not much accustomed to ggplot2 yet. The
[`ggplot_pca()`](https://amr-for-r.org/reference/ggplot_pca.md) function
is a specific function to plot so-called biplots for PCA (principal
component analysis).
[Define Custom MDRO Guideline](https://amr-for-r.org/reference/custom_mdro_guideline.md)
: [`custom_mdro_guideline()`](https://amr-for-r.org/reference/custom_mdro_guideline.md)
[`c(`*`<custom_mdro_guideline>`*`)`](https://amr-for-r.org/reference/custom_mdro_guideline.md)
- [`scale_x_mic()`](https://amr-for-r.org/reference/plot.md)
[`scale_y_mic()`](https://amr-for-r.org/reference/plot.md)
[`scale_colour_mic()`](https://amr-for-r.org/reference/plot.md)
[`scale_fill_mic()`](https://amr-for-r.org/reference/plot.md)
[`scale_x_sir()`](https://amr-for-r.org/reference/plot.md)
[`scale_colour_sir()`](https://amr-for-r.org/reference/plot.md)
[`scale_fill_sir()`](https://amr-for-r.org/reference/plot.md)
[`plot(`*`<mic>`*`)`](https://amr-for-r.org/reference/plot.md)
[`autoplot(`*`<mic>`*`)`](https://amr-for-r.org/reference/plot.md)
[`plot(`*`<disk>`*`)`](https://amr-for-r.org/reference/plot.md)
[`autoplot(`*`<disk>`*`)`](https://amr-for-r.org/reference/plot.md)
[`plot(`*`<sir>`*`)`](https://amr-for-r.org/reference/plot.md)
[`autoplot(`*`<sir>`*`)`](https://amr-for-r.org/reference/plot.md)
[`facet_sir()`](https://amr-for-r.org/reference/plot.md)
[`scale_y_percent()`](https://amr-for-r.org/reference/plot.md)
[`scale_sir_colours()`](https://amr-for-r.org/reference/plot.md)
[`theme_sir()`](https://amr-for-r.org/reference/plot.md) : Plotting
Helpers for AMR Data Analysis
## Visualising data
- [`ggplot_sir()`](https://amr-for-r.org/reference/ggplot_sir.md)
[`geom_sir()`](https://amr-for-r.org/reference/ggplot_sir.md)
[`labels_sir_count()`](https://amr-for-r.org/reference/ggplot_sir.md)
:
Plot MIC values, disk zones, and SIR results in base R or `ggplot2`,
with scales and colours tailored to AMR data.
AMR Plots with `ggplot2`
[Plotting Helpers for AMR Data Analysis](https://amr-for-r.org/reference/plot.md)
: [`scale_x_mic()`](https://amr-for-r.org/reference/plot.md)
[`scale_y_mic()`](https://amr-for-r.org/reference/plot.md)
[`scale_colour_mic()`](https://amr-for-r.org/reference/plot.md)
[`scale_fill_mic()`](https://amr-for-r.org/reference/plot.md)
[`scale_x_sir()`](https://amr-for-r.org/reference/plot.md)
[`scale_colour_sir()`](https://amr-for-r.org/reference/plot.md)
[`scale_fill_sir()`](https://amr-for-r.org/reference/plot.md)
[`plot(`*`<mic>`*`)`](https://amr-for-r.org/reference/plot.md)
[`autoplot(`*`<mic>`*`)`](https://amr-for-r.org/reference/plot.md)
[`plot(`*`<disk>`*`)`](https://amr-for-r.org/reference/plot.md)
[`autoplot(`*`<disk>`*`)`](https://amr-for-r.org/reference/plot.md)
[`plot(`*`<sir>`*`)`](https://amr-for-r.org/reference/plot.md)
[`autoplot(`*`<sir>`*`)`](https://amr-for-r.org/reference/plot.md)
[`facet_sir()`](https://amr-for-r.org/reference/plot.md)
[`scale_y_percent()`](https://amr-for-r.org/reference/plot.md)
[`scale_sir_colours()`](https://amr-for-r.org/reference/plot.md)
[`theme_sir()`](https://amr-for-r.org/reference/plot.md)
- [`ggplot_pca()`](https://amr-for-r.org/reference/ggplot_pca.md) :
[AMR Plots with `ggplot2`](https://amr-for-r.org/reference/ggplot_sir.md)
: [`ggplot_sir()`](https://amr-for-r.org/reference/ggplot_sir.md)
[`geom_sir()`](https://amr-for-r.org/reference/ggplot_sir.md)
[`labels_sir_count()`](https://amr-for-r.org/reference/ggplot_sir.md)
PCA Biplot with `ggplot2`
[PCA Biplot with `ggplot2`](https://amr-for-r.org/reference/ggplot_pca.md)
: [`ggplot_pca()`](https://amr-for-r.org/reference/ggplot_pca.md)
## AMR-specific options
## Modelling
The AMR package is customisable, by providing settings that can be set
per user or per team. For example, the default interpretation guideline
can be changed from EUCAST to CLSI, or a supported language can be set
for the whole team (system-language independent) for antibiotic names in
a foreign language.
Use AMR data types in `tidymodels` pipelines, and perform principal
component analysis or distance calculations on resistance profiles.
- [`AMR-options`](https://amr-for-r.org/reference/AMR-options.md) :
Options for the AMR package
[AMR Extensions for Tidymodels](https://amr-for-r.org/reference/amr-tidymodels.md)
: [`all_sir()`](https://amr-for-r.org/reference/amr-tidymodels.md)
[`all_sir_predictors()`](https://amr-for-r.org/reference/amr-tidymodels.md)
[`all_mic()`](https://amr-for-r.org/reference/amr-tidymodels.md)
[`all_mic_predictors()`](https://amr-for-r.org/reference/amr-tidymodels.md)
[`all_disk()`](https://amr-for-r.org/reference/amr-tidymodels.md)
[`all_disk_predictors()`](https://amr-for-r.org/reference/amr-tidymodels.md)
[`step_mic_log2()`](https://amr-for-r.org/reference/amr-tidymodels.md)
[`step_sir_numeric()`](https://amr-for-r.org/reference/amr-tidymodels.md)
## Other: antiviral drugs
[Principal Component Analysis (for AMR)](https://amr-for-r.org/reference/pca.md)
: [`pca()`](https://amr-for-r.org/reference/pca.md)
This package also provides extensive support for antiviral agents, even
though it is not the primary scope of this package. Working with data
containing information about antiviral drugs was never easier. Use these
functions to get valid properties of antiviral drugs from any input or
to clean your input. You can even retrieve drug names and doses from
clinical text records, using
[`av_from_text()`](https://amr-for-r.org/reference/av_from_text.md).
[Calculate the Mean AMR Distance](https://amr-for-r.org/reference/mean_amr_distance.md)
: [`mean_amr_distance()`](https://amr-for-r.org/reference/mean_amr_distance.md)
[`amr_distance_from_row()`](https://amr-for-r.org/reference/mean_amr_distance.md)
- [`as.av()`](https://amr-for-r.org/reference/as.av.md)
[`is.av()`](https://amr-for-r.org/reference/as.av.md) : Transform
Input to an Antiviral Drug ID
- [`av_name()`](https://amr-for-r.org/reference/av_property.md)
[`av_cid()`](https://amr-for-r.org/reference/av_property.md)
[`av_synonyms()`](https://amr-for-r.org/reference/av_property.md)
[`av_tradenames()`](https://amr-for-r.org/reference/av_property.md)
[`av_group()`](https://amr-for-r.org/reference/av_property.md)
[`av_atc()`](https://amr-for-r.org/reference/av_property.md)
[`av_loinc()`](https://amr-for-r.org/reference/av_property.md)
[`av_ddd()`](https://amr-for-r.org/reference/av_property.md)
[`av_ddd_units()`](https://amr-for-r.org/reference/av_property.md)
[`av_info()`](https://amr-for-r.org/reference/av_property.md)
[`av_url()`](https://amr-for-r.org/reference/av_property.md)
[`av_property()`](https://amr-for-r.org/reference/av_property.md) :
Get Properties of an Antiviral Drug
- [`av_from_text()`](https://amr-for-r.org/reference/av_from_text.md) :
Retrieve Antiviral Drug Names and Doses from Clinical Text
## Reference data
## Other: background information on included data
The data sets underlying this package, all of which can also be
[downloaded in other
formats](https://amr-for-r.org/articles/datasets.md).
Some pages about our package and its external sources. Be sure to read
our [How To’s](https://amr-for-r.org/articles/index.md) for more
information about how to work with functions in this package.
### Microorganisms
- [`microorganisms`](https://amr-for-r.org/reference/microorganisms.md)
: Data Set with 103 222 Taxonomic Records of Microorganisms
- [`antimicrobials`](https://amr-for-r.org/reference/antimicrobials.md)
[`antibiotics`](https://amr-for-r.org/reference/antimicrobials.md)
[`antivirals`](https://amr-for-r.org/reference/antimicrobials.md) :
Data Sets with 626 Antimicrobial Drugs
- [`clinical_breakpoints`](https://amr-for-r.org/reference/clinical_breakpoints.md)
: Data Set with Clinical Breakpoints for SIR Interpretation
- [`example_isolates`](https://amr-for-r.org/reference/example_isolates.md)
: Data Set with 2 000 Example Isolates
- [`esbl_isolates`](https://amr-for-r.org/reference/esbl_isolates.md) :
Data Set with 500 ESBL Isolates
- [`microorganisms.codes`](https://amr-for-r.org/reference/microorganisms.codes.md)
: Data Set with 6 293 Common Microorganism Codes
- [`microorganisms.groups`](https://amr-for-r.org/reference/microorganisms.groups.md)
: Data Set with 466 Microorganisms In Species Groups
- [`intrinsic_resistant`](https://amr-for-r.org/reference/intrinsic_resistant.md)
: Data Set Denoting Bacterial Intrinsic Resistance
- [`dosage`](https://amr-for-r.org/reference/dosage.md) : Data Set with
Treatment Dosages as Defined by EUCAST
- [`WHOCC`](https://amr-for-r.org/reference/WHOCC.md) : WHOCC: WHO
Collaborating Centre for Drug Statistics Methodology
- [`example_isolates_unclean`](https://amr-for-r.org/reference/example_isolates_unclean.md)
: Data Set with Unclean Data
- [`WHONET`](https://amr-for-r.org/reference/WHONET.md) : Data Set with
500 Isolates - WHONET Example
[Data Set with 103 222 Taxonomic Records of Microorganisms](https://amr-for-r.org/reference/microorganisms.md)
: [`microorganisms`](https://amr-for-r.org/reference/microorganisms.md)
## Other: miscellaneous functions
[Data Set with 6 293 Common Microorganism Codes](https://amr-for-r.org/reference/microorganisms.codes.md)
: [`microorganisms.codes`](https://amr-for-r.org/reference/microorganisms.codes.md)
Miscellaneous functions that support various parts of an AMR analysis,
such as working with ages, joining tables, principal component analysis,
and other utilities. Especially the ‘like’ function can be useful:
`if (x %like% y) {...}`.
[Data Set with 466 Microorganisms In Species Groups](https://amr-for-r.org/reference/microorganisms.groups.md)
: [`microorganisms.groups`](https://amr-for-r.org/reference/microorganisms.groups.md)
- [`age_groups()`](https://amr-for-r.org/reference/age_groups.md) :
Split Ages into Age Groups
- [`age()`](https://amr-for-r.org/reference/age.md) : Age in Years of
Individuals
- [`amr_course()`](https://amr-for-r.org/reference/amr_course.md) :
Download and Unpack an AMR Course Repository
- [`export_ncbi_biosample()`](https://amr-for-r.org/reference/export_ncbi_biosample.md)
: Export Data Set as NCBI BioSample Antibiogram
- [`availability()`](https://amr-for-r.org/reference/availability.md) :
Check Availability of Columns
- [`get_AMR_locale()`](https://amr-for-r.org/reference/translate.md)
[`set_AMR_locale()`](https://amr-for-r.org/reference/translate.md)
[`reset_AMR_locale()`](https://amr-for-r.org/reference/translate.md)
[`translate_AMR()`](https://amr-for-r.org/reference/translate.md) :
Translate Strings from the AMR Package
- [`italicise_taxonomy()`](https://amr-for-r.org/reference/italicise_taxonomy.md)
[`italicize_taxonomy()`](https://amr-for-r.org/reference/italicise_taxonomy.md)
: Italicise Taxonomic Families, Genera, Species, Subspecies
- [`inner_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[`left_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[`right_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[`full_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[`semi_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[`anti_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
: Join microorganisms to a Data Set
- [`like()`](https://amr-for-r.org/reference/like.md)
[`` `%like%` ``](https://amr-for-r.org/reference/like.md)
[`` `%unlike%` ``](https://amr-for-r.org/reference/like.md)
[`` `%like_case%` ``](https://amr-for-r.org/reference/like.md)
[`` `%unlike_case%` ``](https://amr-for-r.org/reference/like.md) :
Vectorised Pattern Matching with Keyboard Shortcut
- [`mo_matching_score()`](https://amr-for-r.org/reference/mo_matching_score.md)
: Calculate the Matching Score for Microorganisms
- [`pca()`](https://amr-for-r.org/reference/pca.md) : Principal
Component Analysis (for AMR)
- [`random_mic()`](https://amr-for-r.org/reference/random.md)
[`random_disk()`](https://amr-for-r.org/reference/random.md)
[`random_sir()`](https://amr-for-r.org/reference/random.md) : Random
MIC Values/Disk Zones/SIR Generation
### Antimicrobials
## Other: statistical tests
[Data Sets with 626 Antimicrobial Drugs](https://amr-for-r.org/reference/antimicrobials.md)
: [`antimicrobials`](https://amr-for-r.org/reference/antimicrobials.md)
[`antibiotics`](https://amr-for-r.org/reference/antimicrobials.md)
[`antivirals`](https://amr-for-r.org/reference/antimicrobials.md)
Some statistical tests or methods usable for AMR analyses are not part
of base R and were added to this package for convenience.
[WHOCC: WHO Collaborating Centre for Drug Statistics Methodology](https://amr-for-r.org/reference/WHOCC.md)
: [`WHOCC`](https://amr-for-r.org/reference/WHOCC.md)
- [`g.test()`](https://amr-for-r.org/reference/g.test.md) :
[Data Set with Treatment Dosages as Defined by EUCAST](https://amr-for-r.org/reference/dosage.md)
: [`dosage`](https://amr-for-r.org/reference/dosage.md)
*G*-test for Count Data
### Breakpoints and intrinsic resistance
- [`kurtosis()`](https://amr-for-r.org/reference/kurtosis.md) : Kurtosis
of the Sample
[Data Set with Clinical Breakpoints for SIR Interpretation](https://amr-for-r.org/reference/clinical_breakpoints.md)
: [`clinical_breakpoints`](https://amr-for-r.org/reference/clinical_breakpoints.md)
- [`skewness()`](https://amr-for-r.org/reference/skewness.md) : Skewness
of the Sample
[Data Set Denoting Bacterial Intrinsic Resistance](https://amr-for-r.org/reference/intrinsic_resistant.md)
: [`intrinsic_resistant`](https://amr-for-r.org/reference/intrinsic_resistant.md)
## Other: deprecated functions/arguments/datasets
### Example data
These objects are deprecated, meaning that they will still work but show
a warning that they will be removed in a future version.
[Data Set with 2 000 Example Isolates](https://amr-for-r.org/reference/example_isolates.md)
: [`example_isolates`](https://amr-for-r.org/reference/example_isolates.md)
- [`custom_eucast_rules()`](https://amr-for-r.org/reference/AMR-deprecated.md)
[`ab_class()`](https://amr-for-r.org/reference/AMR-deprecated.md)
[`ab_selector()`](https://amr-for-r.org/reference/AMR-deprecated.md) :
Deprecated Functions, Arguments, or Datasets
[Data Set with Unclean Data](https://amr-for-r.org/reference/example_isolates_unclean.md)
: [`example_isolates_unclean`](https://amr-for-r.org/reference/example_isolates_unclean.md)
[Data Set with 500 ESBL Isolates](https://amr-for-r.org/reference/esbl_isolates.md)
: [`esbl_isolates`](https://amr-for-r.org/reference/esbl_isolates.md)
[Data Set with 500 Isolates - WHONET Example](https://amr-for-r.org/reference/WHONET.md)
: [`WHONET`](https://amr-for-r.org/reference/WHONET.md)
## Utilities
Helper functions for pattern matching with `%like%`, ages, joining and
italicising taxonomy, generating random test results, and data export.
[Vectorised Pattern Matching with Keyboard Shortcut](https://amr-for-r.org/reference/like.md)
: [`like()`](https://amr-for-r.org/reference/like.md)
[`` `%like%` ``](https://amr-for-r.org/reference/like.md)
[`` `%unlike%` ``](https://amr-for-r.org/reference/like.md)
[`` `%like_case%` ``](https://amr-for-r.org/reference/like.md)
[`` `%unlike_case%` ``](https://amr-for-r.org/reference/like.md)
[Age in Years of Individuals](https://amr-for-r.org/reference/age.md)
: [`age()`](https://amr-for-r.org/reference/age.md)
[Split Ages into Age Groups](https://amr-for-r.org/reference/age_groups.md)
: [`age_groups()`](https://amr-for-r.org/reference/age_groups.md)
[Join microorganisms to a Data Set](https://amr-for-r.org/reference/join.md)
: [`inner_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[`left_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[`right_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[`full_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[`semi_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[`anti_join_microorganisms()`](https://amr-for-r.org/reference/join.md)
[Italicise Taxonomic Families, Genera, Species, and Subspecies](https://amr-for-r.org/reference/italicise_taxonomy.md)
: [`italicise_taxonomy()`](https://amr-for-r.org/reference/italicise_taxonomy.md)
[`italicize_taxonomy()`](https://amr-for-r.org/reference/italicise_taxonomy.md)
[Generate Random MIC Values, Disk Zones, or SIR Results](https://amr-for-r.org/reference/random.md)
: [`random_mic()`](https://amr-for-r.org/reference/random.md)
[`random_disk()`](https://amr-for-r.org/reference/random.md)
[`random_sir()`](https://amr-for-r.org/reference/random.md)
[Export Data Set as NCBI BioSample Antibiogram](https://amr-for-r.org/reference/export_ncbi_biosample.md)
: [`export_ncbi_biosample()`](https://amr-for-r.org/reference/export_ncbi_biosample.md)
### Statistical tests
[*G*-test for Count Data](https://amr-for-r.org/reference/g.test.md)
: [`g.test()`](https://amr-for-r.org/reference/g.test.md)
[Kurtosis of the Sample](https://amr-for-r.org/reference/kurtosis.md)
: [`kurtosis()`](https://amr-for-r.org/reference/kurtosis.md)
[Skewness of the Sample](https://amr-for-r.org/reference/skewness.md)
: [`skewness()`](https://amr-for-r.org/reference/skewness.md)
## Deprecated functions
These still work, but show a warning and will be removed in a future
version.
[Deprecated Functions, Arguments, or Data Sets](https://amr-for-r.org/reference/AMR-deprecated.md)
: [`custom_eucast_rules()`](https://amr-for-r.org/reference/AMR-deprecated.md)
[`ab_class()`](https://amr-for-r.org/reference/AMR-deprecated.md)
[`ab_selector()`](https://amr-for-r.org/reference/AMR-deprecated.md)
[Predict Antimicrobial Resistance](https://amr-for-r.org/reference/resistance_predict.md)
: [`resistance_predict()`](https://amr-for-r.org/reference/resistance_predict.md)
[`sir_predict()`](https://amr-for-r.org/reference/resistance_predict.md)
[`plot(`*`<resistance_predict>`*`)`](https://amr-for-r.org/reference/resistance_predict.md)
[`ggplot_sir_predict()`](https://amr-for-r.org/reference/resistance_predict.md)
[`autoplot(`*`<resistance_predict>`*`)`](https://amr-for-r.org/reference/resistance_predict.md)
+1 -1
View File
@@ -9,7 +9,7 @@ To improve the interpretation of the antibiogram before CLSI/EUCAST interpretive
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+3 -3
View File
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Italicise Taxonomic Families, Genera, Species, Subspecies — italicise_taxonomy • AMR (for R)</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.8/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.8/bootstrap.bundle.min.js"></script><link href="../deps/Lato-0.4.10/font.css" rel="stylesheet"><link href="../deps/Fira_Code-0.4.10/font.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><script src="../extra.js"></script><meta property="og:title" content="Italicise Taxonomic Families, Genera, Species, Subspecies — italicise_taxonomy"><meta name="description" content="According to the binomial nomenclature, the lowest four taxonomic levels (family, genus, species, subspecies) should be printed in italics. This function finds taxonomic names within strings and makes them italic."><meta property="og:description" content="According to the binomial nomenclature, the lowest four taxonomic levels (family, genus, species, subspecies) should be printed in italics. This function finds taxonomic names within strings and makes them italic."><meta property="og:image" content="https://amr-for-r.org/logo.svg"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css" integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js" integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script></head><body>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Italicise Taxonomic Families, Genera, Species, and Subspecies — italicise_taxonomy • AMR (for R)</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.8/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.8/bootstrap.bundle.min.js"></script><link href="../deps/Lato-0.4.10/font.css" rel="stylesheet"><link href="../deps/Fira_Code-0.4.10/font.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><script src="../extra.js"></script><meta property="og:title" content="Italicise Taxonomic Families, Genera, Species, and Subspecies — italicise_taxonomy"><meta name="description" content="According to the binomial nomenclature, the lowest four taxonomic levels (family, genus, species, subspecies) should be printed in italics. This function finds taxonomic names within strings and makes them italic."><meta property="og:description" content="According to the binomial nomenclature, the lowest four taxonomic levels (family, genus, species, subspecies) should be printed in italics. This function finds taxonomic names within strings and makes them italic."><meta property="og:image" content="https://amr-for-r.org/logo.svg"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css" integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js" integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script></head><body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
@@ -44,7 +44,7 @@
</nav><div class="container template-reference-topic">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.svg" class="logo" alt=""><h1>Italicise Taxonomic Families, Genera, Species, Subspecies</h1>
<img src="../logo.svg" class="logo" alt=""><h1>Italicise Taxonomic Families, Genera, Species, and Subspecies</h1>
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/main/R/italicise_taxonomy.R" class="external-link"><code>R/italicise_taxonomy.R</code></a></small>
<div class="d-none name"><code>italicise_taxonomy.Rd</code></div>
</div>
+1 -1
View File
@@ -1,4 +1,4 @@
# Italicise Taxonomic Families, Genera, Species, Subspecies
# Italicise Taxonomic Families, Genera, Species, and Subspecies
According to the binomial nomenclature, the lowest four taxonomic levels
(family, genus, species, subspecies) should be printed in italics. This
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -9,7 +9,7 @@ This data set is carefully crafted, yet made 100% reproducible from public and a
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -9,7 +9,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="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -9,7 +9,7 @@ Especially the scale_*_mic() functions are relevant wrappers to plot MIC values
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -9,7 +9,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="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+3 -3
View File
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Random MIC Values/Disk Zones/SIR Generation — random • AMR (for R)</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.8/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.8/bootstrap.bundle.min.js"></script><link href="../deps/Lato-0.4.10/font.css" rel="stylesheet"><link href="../deps/Fira_Code-0.4.10/font.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><script src="../extra.js"></script><meta property="og:title" content="Random MIC Values/Disk Zones/SIR Generation — random"><meta name="description" content="These functions can be used for generating random MIC values and disk diffusion diameters, for AMR data analysis practice. By providing a microorganism and antimicrobial drug, the generated results will reflect reality as much as possible."><meta property="og:description" content="These functions can be used for generating random MIC values and disk diffusion diameters, for AMR data analysis practice. By providing a microorganism and antimicrobial drug, the generated results will reflect reality as much as possible."><meta property="og:image" content="https://amr-for-r.org/logo.svg"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css" integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js" integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script></head><body>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Generate Random MIC Values, Disk Zones, or SIR Results — random • AMR (for R)</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.8/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.8/bootstrap.bundle.min.js"></script><link href="../deps/Lato-0.4.10/font.css" rel="stylesheet"><link href="../deps/Fira_Code-0.4.10/font.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><script src="../extra.js"></script><meta property="og:title" content="Generate Random MIC Values, Disk Zones, or SIR Results — random"><meta name="description" content="These functions can be used for generating random MIC values and disk diffusion diameters, for AMR data analysis practice. By providing a microorganism and antimicrobial drug, the generated results will reflect reality as much as possible."><meta property="og:description" content="These functions can be used for generating random MIC values and disk diffusion diameters, for AMR data analysis practice. By providing a microorganism and antimicrobial drug, the generated results will reflect reality as much as possible."><meta property="og:image" content="https://amr-for-r.org/logo.svg"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css" integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous"><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js" integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script><script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script></head><body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
@@ -44,7 +44,7 @@
</nav><div class="container template-reference-topic">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.svg" class="logo" alt=""><h1>Random MIC Values/Disk Zones/SIR Generation</h1>
<img src="../logo.svg" class="logo" alt=""><h1>Generate Random MIC Values, Disk Zones, or SIR Results</h1>
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/main/R/random.R" class="external-link"><code>R/random.R</code></a></small>
<div class="d-none name"><code>random.Rd</code></div>
</div>
+1 -1
View File
@@ -1,4 +1,4 @@
# Random MIC Values/Disk Zones/SIR Generation
# Generate Random MIC Values, Disk Zones, or SIR Results
These functions can be used for generating random MIC values and disk
diffusion diameters, for AMR data analysis practice. By providing a
+1 -1
View File
@@ -9,7 +9,7 @@ NOTE: These functions are deprecated and will be removed in a future version. Us
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -17,7 +17,7 @@ See Combination Therapy below for the exact rules. The same rules are used by an
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -9,7 +9,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="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9002</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9003</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">
+1 -1
View File
@@ -1 +1 @@
[{"path":"https://amr-for-r.org/CLAUDE.html","id":null,"dir":"","previous_headings":"","what":"CLAUDE.md — AMR R Package","title":"CLAUDE.md — AMR R Package","text":"file provides context Claude Code working repository.","code":""},{"path":"https://amr-for-r.org/CLAUDE.html","id":"project-overview","dir":"","previous_headings":"","what":"Project Overview","title":"CLAUDE.md — AMR R Package","text":"AMR zero-dependency R package antimicrobial resistance (AMR) data analysis using One Health approach. peer-reviewed, used 175+ countries, supports 28 languages. Key capabilities: - SIR (Susceptible/Intermediate/Resistant) classification using EUCAST 2011–2025 CLSI 2011–2025 breakpoints - Antibiogram generation: traditional, combined, syndromic, WISCA - Microorganism taxonomy database (~79,000 species) - Antimicrobial drug database (~620 drugs) - Multi-drug resistant organism (MDRO) classification - First-isolate identification - Minimum Inhibitory Concentration (MIC) disk diffusion handling - Multilingual output (28 languages)","code":""},{"path":"https://amr-for-r.org/CLAUDE.html","id":"common-commands","dir":"","previous_headings":"","what":"Common Commands","title":"CLAUDE.md — AMR R Package","text":"commands run inside R session: shell:","code":"# Rebuild documentation (roxygen2 → .Rd files + NAMESPACE) devtools::document() # Run all tests devtools::test() # Full package check (CRAN-level: docs + tests + checks) devtools::check() # Build pkgdown website locally pkgdown::build_site() # Code coverage report covr::package_coverage() # CRAN check from parent directory R CMD check AMR"},{"path":"https://amr-for-r.org/CLAUDE.html","id":"repository-structure","dir":"","previous_headings":"","what":"Repository Structure","title":"CLAUDE.md — AMR R Package","text":"","code":"R/ # All R source files (62 files, ~28,000 lines) man/ # Auto-generated .Rd documentation (do not edit manually) tests/testthat/ # testthat test files (test-*.R) and helper-functions.R data/ # Pre-compiled .rda datasets data-raw/ # Scripts used to generate data/ files vignettes/ # Rmd vignette articles inst/ # Installed files (translations, etc.) _pkgdown.yml # pkgdown website configuration"},{"path":"https://amr-for-r.org/CLAUDE.html","id":"r-source-file-conventions","dir":"","previous_headings":"","what":"R Source File Conventions","title":"CLAUDE.md — AMR R Package","text":"Naming conventions R/: Key source files: aa_helper_functions.R / aa_helper_pm_functions.R — internal utility functions (large; ~63 KB ~37 KB) aa_globals.R — global constants breakpoint lookup structures aa_options.R — amr_options() / get_AMR_option() system mo.R / mo_property.R — microorganism lookup properties ab.R / ab_property.R — antimicrobial drug functions av.R / av_property.R — antiviral drug functions sir.R / sir_calc.R / sir_df.R — SIR classification engine mic.R / disk.R — MIC disk diffusion classes antibiogram.R — antibiogram generation (traditional, combined, syndromic, WISCA) first_isolate.R — first-isolate identification algorithms mdro.R — MDRO classification (EUCAST, CLSI, CDC, custom guidelines) amr_selectors.R — tidyselect helpers selecting AMR columns interpretive_rules.R / custom_eucast_rules.R — clinical interpretation rules translate.R — 28-language translation system ggplot_sir.R / ggplot_pca.R / plotting.R — visualisation functions","code":""},{"path":"https://amr-for-r.org/CLAUDE.html","id":"code-style","dir":"","previous_headings":"","what":"Code Style","title":"CLAUDE.md — AMR R Package","text":"Follow tidyverse style guide precisely. Key rules: 2-space indentation; tabs <- assignment, = Spaces around binary operators commas; spaces inside parentheses function call must break across lines, place first argument new line indented 2 spaces, put closing ) line — never align arguments opening parenthesis (hanging/forced mid-line indentation)","code":"# good stop_( \"some long message part one \", \"part two\" ) # bad — forces indentation to match the opening parenthesis stop_(\"some long message part one \", \"part two\")"},{"path":"https://amr-for-r.org/CLAUDE.html","id":"custom-s3-classes","dir":"","previous_headings":"","what":"Custom S3 Classes","title":"CLAUDE.md — AMR R Package","text":"package defines five S3 classes full print/format/plot/vctrs support:","code":""},{"path":"https://amr-for-r.org/CLAUDE.html","id":"data-files","dir":"","previous_headings":"","what":"Data Files","title":"CLAUDE.md — AMR R Package","text":"Pre-compiled data/ (edit directly; regenerate via data-raw/ scripts):","code":""},{"path":"https://amr-for-r.org/CLAUDE.html","id":"zero-dependency-design","dir":"","previous_headings":"","what":"Zero-Dependency Design","title":"CLAUDE.md — AMR R Package","text":"package Imports DESCRIPTION. optional integrations (ggplot2, dplyr, data.table, tidymodels, cli, crayon, etc.) listed Suggests guarded : Line truncated
[{"path":"https://amr-for-r.org/CLAUDE.html","id":null,"dir":"","previous_headings":"","what":"CLAUDE.md — AMR R Package","title":"CLAUDE.md — AMR R Package","text":"file provides context Claude Code working repository.","code":""},{"path":"https://amr-for-r.org/CLAUDE.html","id":"project-overview","dir":"","previous_headings":"","what":"Project Overview","title":"CLAUDE.md — AMR R Package","text":"AMR zero-dependency R package antimicrobial resistance (AMR) data analysis using One Health approach. peer-reviewed, used 175+ countries, supports 28 languages. Key capabilities: - SIR (Susceptible/Intermediate/Resistant) classification using EUCAST 2011–2025 CLSI 2011–2025 breakpoints - Antibiogram generation: traditional, combined, syndromic, WISCA - Microorganism taxonomy database (~79,000 species) - Antimicrobial drug database (~620 drugs) - Multi-drug resistant organism (MDRO) classification - First-isolate identification - Minimum Inhibitory Concentration (MIC) disk diffusion handling - Multilingual output (28 languages)","code":""},{"path":"https://amr-for-r.org/CLAUDE.html","id":"common-commands","dir":"","previous_headings":"","what":"Common Commands","title":"CLAUDE.md — AMR R Package","text":"commands run inside R session: shell:","code":"# Rebuild documentation (roxygen2 → .Rd files + NAMESPACE) devtools::document() # Run all tests devtools::test() # Full package check (CRAN-level: docs + tests + checks) devtools::check() # Build pkgdown website locally pkgdown::build_site() # Code coverage report covr::package_coverage() # CRAN check from parent directory R CMD check AMR"},{"path":"https://amr-for-r.org/CLAUDE.html","id":"repository-structure","dir":"","previous_headings":"","what":"Repository Structure","title":"CLAUDE.md — AMR R Package","text":"","code":"R/ # All R source files (62 files, ~28,000 lines) man/ # Auto-generated .Rd documentation (do not edit manually) tests/testthat/ # testthat test files (test-*.R) and helper-functions.R data/ # Pre-compiled .rda datasets data-raw/ # Scripts used to generate data/ files vignettes/ # Rmd vignette articles inst/ # Installed files (translations, etc.) _pkgdown.yml # pkgdown website configuration"},{"path":"https://amr-for-r.org/CLAUDE.html","id":"r-source-file-conventions","dir":"","previous_headings":"","what":"R Source File Conventions","title":"CLAUDE.md — AMR R Package","text":"Naming conventions R/: Key source files: aa_helper_functions.R / aa_helper_pm_functions.R — internal utility functions (large; ~63 KB ~37 KB) aa_globals.R — global constants breakpoint lookup structures aa_options.R — amr_options() / get_AMR_option() system mo.R / mo_property.R — microorganism lookup properties ab.R / ab_property.R — antimicrobial drug functions av.R / av_property.R — antiviral drug functions sir.R / sir_calc.R / sir_df.R — SIR classification engine mic.R / disk.R — MIC disk diffusion classes antibiogram.R — antibiogram generation (traditional, combined, syndromic, WISCA) first_isolate.R — first-isolate identification algorithms mdro.R — MDRO classification (EUCAST, CLSI, CDC, custom guidelines) amr_selectors.R — tidyselect helpers selecting AMR columns interpretive_rules.R / custom_eucast_rules.R — clinical interpretation rules translate.R — 28-language translation system ggplot_sir.R / ggplot_pca.R / plotting.R — visualisation functions","code":""},{"path":"https://amr-for-r.org/CLAUDE.html","id":"code-style","dir":"","previous_headings":"","what":"Code Style","title":"CLAUDE.md — AMR R Package","text":"Follow tidyverse style guide precisely. Key rules: 2-space indentation; tabs <- assignment, = Spaces around binary operators commas; spaces inside parentheses function call must break across lines, place first argument new line indented 2 spaces, put closing ) line — never align arguments opening parenthesis (hanging/forced mid-line indentation)","code":"# good stop_( \"some long message part one \", \"part two\" ) # bad — forces indentation to match the opening parenthesis stop_(\"some long message part one \", \"part two\")"},{"path":"https://amr-for-r.org/CLAUDE.html","id":"custom-s3-classes","dir":"","previous_headings":"","what":"Custom S3 Classes","title":"CLAUDE.md — AMR R Package","text":"package defines five S3 classes full print/format/plot/vctrs support:","code":""},{"path":"https://amr-for-r.org/CLAUDE.html","id":"data-files","dir":"","previous_headings":"","what":"Data Files","title":"CLAUDE.md — AMR R Package","text":"Pre-compiled data/ (edit directly; regenerate via data-raw/ scripts):","code":""},{"path":"https://amr-for-r.org/CLAUDE.html","id":"zero-dependency-design","dir":"","previous_headings":"","what":"Zero-Dependency Design","title":"CLAUDE.md — AMR R Package","text":"package Imports DESCRIPTION. optional integrations (ggplot2, dplyr, data.table, tidymodels, cli, crayon, etc.) listed Suggests guarded : Line truncated