diff --git a/articles/index.html b/articles/index.html
index cf6c303fa..67f9018e5 100644
--- a/articles/index.html
+++ b/articles/index.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9002
+ 3.1.0.9003
diff --git a/authors.html b/authors.html
index b39a9082b..82f1557e1 100644
--- a/authors.html
+++ b/authors.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9002
+ 3.1.0.9003
diff --git a/extra.css b/extra.css
index d995e63fa..c99d538f3 100644
--- a/extra.css
+++ b/extra.css
@@ -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] {
diff --git a/extra.js b/extra.js
index 0c24aea37..603571233 100644
--- a/extra.js
+++ b/extra.js
@@ -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('');
+ 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');
$('.template-citation-authors li:contains("Former doctoral advisor")').first().before('');
+
+ // 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("");
diff --git a/index.html b/index.html
index 90a7ad91e..863534f3a 100644
--- a/index.html
+++ b/index.html
@@ -33,7 +33,7 @@
AMR (for R)
- 3.1.0.9002
+ 3.1.0.9003
diff --git a/llms.txt b/llms.txt
index 012113c5d..8f6b82cea 100644
--- a/llms.txt
+++ b/llms.txt
@@ -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(`*``*`)`](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(`*``*`)`](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(`*``*`)`](https://amr-for-r.org/reference/antibiogram.md)
- [`autoplot(`*``*`)`](https://amr-for-r.org/reference/antibiogram.md)
- [`wisca_plot()`](https://amr-for-r.org/reference/antibiogram.md)
- [`knit_print(`*``*`)`](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(`*``*`)`](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(`*``*`)`](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(`*``*`)`](https://amr-for-r.org/reference/antibiogram.md)
+ [`autoplot(`*``*`)`](https://amr-for-r.org/reference/antibiogram.md)
+ [`wisca_plot()`](https://amr-for-r.org/reference/antibiogram.md)
+ [`knit_print(`*``*`)`](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(`*``*`)`](https://amr-for-r.org/reference/resistance_predict.md)
- [`ggplot_sir_predict()`](https://amr-for-r.org/reference/resistance_predict.md)
- [`autoplot(`*``*`)`](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(`*``*`)`](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(`*``*`)`](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(`*``*`)`](https://amr-for-r.org/reference/plot.md)
- [`autoplot(`*``*`)`](https://amr-for-r.org/reference/plot.md)
- [`plot(`*``*`)`](https://amr-for-r.org/reference/plot.md)
- [`autoplot(`*``*`)`](https://amr-for-r.org/reference/plot.md)
- [`plot(`*``*`)`](https://amr-for-r.org/reference/plot.md)
- [`autoplot(`*``*`)`](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(`*``*`)`](https://amr-for-r.org/reference/plot.md)
+ [`autoplot(`*``*`)`](https://amr-for-r.org/reference/plot.md)
+ [`plot(`*``*`)`](https://amr-for-r.org/reference/plot.md)
+ [`autoplot(`*``*`)`](https://amr-for-r.org/reference/plot.md)
+ [`plot(`*``*`)`](https://amr-for-r.org/reference/plot.md)
+ [`autoplot(`*``*`)`](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(`*``*`)`](https://amr-for-r.org/reference/resistance_predict.md)
+ [`ggplot_sir_predict()`](https://amr-for-r.org/reference/resistance_predict.md)
+ [`autoplot(`*``*`)`](https://amr-for-r.org/reference/resistance_predict.md)
# Articles
diff --git a/news/index.html b/news/index.html
index 872613361..251df97f3 100644
--- a/news/index.html
+++ b/news/index.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9002
+ 3.1.0.9003
@@ -49,10 +49,14 @@
-
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
+
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 ECOFFs, unifies the EUCAST and CLSI interpretive rules, and supports tidymodels pipelines. As it contains several breaking changes, please read the Breaking section below before updating.
Breaking
diff --git a/news/index.md b/news/index.md
index b2801c1fa..81730134f 100644
--- a/news/index.md
+++ b/news/index.md
@@ -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
diff --git a/pkgdown.yml b/pkgdown.yml
index 943e44530..65cdf4598 100644
--- a/pkgdown.yml
+++ b/pkgdown.yml
@@ -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
diff --git a/reference/AMR-deprecated.html b/reference/AMR-deprecated.html
index 1e24ad663..ffcf19b30 100644
--- a/reference/AMR-deprecated.html
+++ b/reference/AMR-deprecated.html
@@ -1,5 +1,5 @@
-Deprecated Functions, Arguments, or Datasets — AMR-deprecated • AMR (for R)
+Deprecated Functions, Arguments, or Data Sets — AMR-deprecated • AMR (for R)Skip to contents
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9002
+ 3.1.0.9003
@@ -44,7 +44,7 @@
diff --git a/reference/AMR-options.md b/reference/AMR-options.md
index 194034415..49cebd750 100644
--- a/reference/AMR-options.md
+++ b/reference/AMR-options.md
@@ -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
diff --git a/reference/AMR.html b/reference/AMR.html
index 6a3fb57d1..38a81415a 100644
--- a/reference/AMR.html
+++ b/reference/AMR.html
@@ -21,7 +21,7 @@ The AMR package is available in English, Arabic, Bengali, Chinese, Czech, Danish
AMR (for R)
- 3.1.0.9002
+ 3.1.0.9003
diff --git a/reference/WHOCC.html b/reference/WHOCC.html
index 878208812..9cc3e7919 100644
--- a/reference/WHOCC.html
+++ b/reference/WHOCC.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9002
+ 3.1.0.9003
diff --git a/reference/WHONET.html b/reference/WHONET.html
index be92f2c0b..af4e90346 100644
--- a/reference/WHONET.html
+++ b/reference/WHONET.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9002
+ 3.1.0.9003
diff --git a/reference/ab_from_text.html b/reference/ab_from_text.html
index ae2836def..c5bdd80ed 100644
--- a/reference/ab_from_text.html
+++ b/reference/ab_from_text.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9002
+ 3.1.0.9003
diff --git a/reference/ab_property.html b/reference/ab_property.html
index 482a6bc19..dae466d2d 100644
--- a/reference/ab_property.html
+++ b/reference/ab_property.html
@@ -1,5 +1,5 @@
-Get Properties of an Antibiotic — ab_property • AMR (for R)
+Get Properties of an Antimicrobial Drug — ab_property • AMR (for R)Skip to contents
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9002
+ 3.1.0.9003
@@ -44,7 +44,7 @@