diff --git a/DESCRIPTION b/DESCRIPTION index c711a499..4d9810c7 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: AMR -Version: 1.8.0.9000 -Date: 2022-02-01 +Version: 1.8.0.9001 +Date: 2022-02-26 Title: Antimicrobial Resistance Data Analysis Description: Functions to simplify and standardise antimicrobial resistance (AMR) data analysis and to work with microbial and antimicrobial properties by diff --git a/NEWS.md b/NEWS.md index 0e5cf055..1bfc0627 100755 --- a/NEWS.md +++ b/NEWS.md @@ -1,14 +1,23 @@ -# `AMR` 1.8.0.9000 -## Last updated: 1 February 2022 +# `AMR` 1.8.0.9001 +## Last updated: 26 February 2022 + +All functions in this package are considered to be stable. Updates to the AMR interpretation rules (such as by EUCAST and CLSI), the microbial taxonomy, and the antibiotic dosages will all be updated every 6 to 12 months. ### Changed +* Support for antibiotic interpretations of the MIPS laboratory system: `"U"` for S ('susceptible urine'), `"D"` for I ('susceptible dose-dependent') +* Improved algorithm of `as.mo()`, especially for ignoring non-taxonomic text, such as: + ```r + mo_name("methicillin-resistant S. aureus (MRSA)") + #> [1] "Staphylococcus aureus" + ``` + +### Other * Fix for unit testing on R 3.3 +* Fix for size of some image elements, as requested by CRAN # `AMR` 1.8.0 -All functions in this package are now all considered to be stable. Updates to the AMR interpretation rules (such as by EUCAST and CLSI), the microbial taxonomy, and the antibiotic dosages will all be updated every 6 to 12 months from now on. - ### Breaking changes * Removed `p_symbol()` and all `filter_*()` functions (except for `filter_first_isolate()`), which were all deprecated in a previous package version * Removed the `key_antibiotics()` and `key_antibiotics_equal()` functions, which were deprecated and superseded by `key_antimicrobials()` and `antimicrobials_equal()` diff --git a/R/catalogue_of_life.R b/R/catalogue_of_life.R index 9599d61c..f2c035c9 100755 --- a/R/catalogue_of_life.R +++ b/R/catalogue_of_life.R @@ -43,7 +43,7 @@ format_included_data_number <- function(data) { #' #' This package contains the complete taxonomic tree (last updated: `r CATALOGUE_OF_LIFE$yearmonth_LPSN`) of almost all microorganisms from the authoritative and comprehensive Catalogue of Life (CoL), supplemented with data from the List of Prokaryotic names with Standing in Nomenclature (LPSN). #' @section Catalogue of Life: -#' \if{html}{\figure{logo_col.png}{options: height=40px style=margin-bottom:5px} \cr} +#' \if{html}{\figure{logo_col.png}{options: height="40" style=margin-bottom:"5"} \cr} #' This package contains the complete taxonomic tree of almost all microorganisms (`r format_included_data_number(microorganisms)` species) from the authoritative and comprehensive Catalogue of Life (CoL, ). The CoL is the most comprehensive and authoritative global index of species currently available. Nonetheless, we supplemented the CoL data with data from the List of Prokaryotic names with Standing in Nomenclature (LPSN, [lpsn.dsmz.de](https://lpsn.dsmz.de)). This supplementation is needed until the [CoL+ project](https://github.com/CatalogueOfLife/general) is finished, which we await. #' #' [Click here][catalogue_of_life] for more information about the included taxa. Check which versions of the CoL and LPSN were included in this package with [catalogue_of_life_version()]. diff --git a/R/lifecycle.R b/R/lifecycle.R index eeb8dfba..7fd460a3 100644 --- a/R/lifecycle.R +++ b/R/lifecycle.R @@ -32,23 +32,23 @@ #' @rdname lifecycle #' @description Functions in this `AMR` package are categorised using [the lifecycle circle of the Tidyverse as found on www.tidyverse.org/lifecycle](https://lifecycle.r-lib.org/articles/stages.html). #' -#' \if{html}{\figure{lifecycle_tidyverse.svg}{options: height=200px style=margin-bottom:5px} \cr} +#' \if{html}{\figure{lifecycle_tidyverse.svg}{options: height="200" style=margin-bottom:"5"} \cr} #' This page contains a section for every lifecycle (with text borrowed from the aforementioned Tidyverse website), so they can be used in the manual pages of the functions. #' @section Experimental Lifecycle: -#' \if{html}{\figure{lifecycle_experimental.svg}{options: style=margin-bottom:5px} \cr} +#' \if{html}{\figure{lifecycle_experimental.svg}{options: style=margin-bottom:"5"} \cr} #' The [lifecycle][AMR::lifecycle] of this function is **experimental**. An experimental function is in early stages of development. The unlying code might be changing frequently. Experimental functions might be removed without deprecation, so you are generally best off waiting until a function is more mature before you use it in production code. Experimental functions are only available in development versions of this `AMR` package and will thus not be included in releases that are submitted to CRAN, since such functions have not yet matured enough. #' @section Maturing Lifecycle: -#' \if{html}{\figure{lifecycle_maturing.svg}{options: style=margin-bottom:5px} \cr} +#' \if{html}{\figure{lifecycle_maturing.svg}{options: style=margin-bottom:"5"} \cr} #' The [lifecycle][AMR::lifecycle] of this function is **maturing**. The unlying code of a maturing function has been roughed out, but finer details might still change. Since this function needs wider usage and more extensive testing, you are very welcome [to suggest changes at our repository](https://github.com/msberends/AMR/issues) or [write us an email (see section 'Contact Us')][AMR::AMR]. #' @section Stable Lifecycle: -#' \if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +#' \if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} #' The [lifecycle][AMR::lifecycle] of this function is **stable**. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. #' #' If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. #' @section Retired Lifecycle: -#' \if{html}{\figure{lifecycle_retired.svg}{options: style=margin-bottom:5px} \cr} +#' \if{html}{\figure{lifecycle_retired.svg}{options: style=margin-bottom:"5"} \cr} #' The [lifecycle][AMR::lifecycle] of this function is **retired**. A retired function is no longer under active development, and (if appropiate) a better alternative is available. No new arguments will be added, and only the most critical bugs will be fixed. In a future version, this function will be removed. #' @section Questioning Lifecycle: -#' \if{html}{\figure{lifecycle_questioning.svg}{options: style=margin-bottom:5px} \cr} +#' \if{html}{\figure{lifecycle_questioning.svg}{options: style=margin-bottom:"5"} \cr} #' The [lifecycle][AMR::lifecycle] of this function is **questioning**. This function might be no longer be optimal approach, or is it questionable whether this function should be in this `AMR` package at all. NULL diff --git a/R/mo.R b/R/mo.R index 4ce1c9d5..462ef1c3 100755 --- a/R/mo.R +++ b/R/mo.R @@ -31,9 +31,9 @@ #' @param Becker a [logical] to indicate whether staphylococci should be categorised into coagulase-negative staphylococci ("CoNS") and coagulase-positive staphylococci ("CoPS") instead of their own species, according to Karsten Becker *et al.* (1,2,3). #' #' This excludes *Staphylococcus aureus* at default, use `Becker = "all"` to also categorise *S. aureus* as "CoPS". -#' @param Lancefield a [logical] to indicate whether beta-haemolytic *Streptococci* should be categorised into Lancefield groups instead of their own species, according to Rebecca C. Lancefield (4). These *Streptococci* will be categorised in their first group, e.g. *Streptococcus dysgalactiae* will be group C, although officially it was also categorised into groups G and L. +#' @param Lancefield a [logical] to indicate whether a beta-haemolytic *Streptococcus* should be categorised into Lancefield groups instead of their own species, according to Rebecca C. Lancefield (4). These streptococci will be categorised in their first group, e.g. *Streptococcus dysgalactiae* will be group C, although officially it was also categorised into groups G and L. #' -#' This excludes *Enterococci* at default (who are in group D), use `Lancefield = "all"` to also categorise all *Enterococci* as group D. +#' This excludes enterococci at default (who are in group D), use `Lancefield = "all"` to also categorise all enterococci as group D. #' @param allow_uncertain a number between `0` (or `"none"`) and `3` (or `"all"`), or `TRUE` (= `2`) or `FALSE` (= `0`) to indicate whether the input should be checked for less probable results, see *Details* #' @param reference_df a [data.frame] to be used for extra reference when translating `x` to a valid [`mo`]. See [set_mo_source()] and [get_mo_source()] to automate the usage of your own codes (e.g. used in your analysis or organisation). #' @param ignore_pattern a regular expression (case-insensitive) of which all matches in `x` must return `NA`. This can be convenient to exclude known non-relevant input and can also be set with the option `AMR_ignore_pattern`, e.g. `options(AMR_ignore_pattern = "(not reported|contaminated flora)")`. @@ -1188,9 +1188,38 @@ exec_as.mo <- function(x, return(found) } - # (6) try to strip off half an element from end and check the remains ---- + # (6) remove non-taxonomic prefix and suffix ---- if (isTRUE(debug)) { - cat(font_bold("\n[ UNCERTAINTY LEVEL", now_checks_for_uncertainty_level, "] (6) try to strip off half an element from end and check the remains\n")) + cat(font_bold("\n[ UNCERTAINTY LEVEL", now_checks_for_uncertainty_level, "] (6) remove non-taxonomic prefix and suffix\n")) + } + x_without_nontax <- gsub("(^[a-zA-Z]+[./-]+[a-zA-Z]+[^a-zA-Z]* )([a-zA-Z.]+ [a-zA-Z]+.*)", + "\\2", a.x_backup, perl = TRUE) + x_without_nontax <- gsub("( *[(].*[)] *)[^a-zA-Z]*$", "", x_without_nontax, perl = TRUE) + if (isTRUE(debug)) { + message("Running '", x_without_nontax, "'") + } + + # first try without dyslexia mode + found <- suppressMessages(suppressWarnings(exec_as.mo(x_without_nontax, initial_search = FALSE, dyslexia_mode = FALSE, allow_uncertain = FALSE, debug = debug, reference_data_to_use = uncertain.reference_data_to_use, actual_uncertainty = 2, actual_input = x_without_nontax))) + if (empty_result(found)) { + # then with dyslexia mode + found <- suppressMessages(suppressWarnings(exec_as.mo(x_without_nontax, initial_search = FALSE, dyslexia_mode = TRUE, allow_uncertain = FALSE, debug = debug, reference_data_to_use = uncertain.reference_data_to_use, actual_uncertainty = 2, actual_input = x_without_nontax))) + } + if (!empty_result(found) & nchar(g.x_backup_without_spp) >= 6) { + # we ran with actual_input = x_without_nontax, so now correct for a.x_backup: + uncertain_df <- attr(found, which = "uncertainties", exact = TRUE) + uncertain_df$input <- a.x_backup + found_result <- found + uncertainties <<- rbind(uncertainties, + uncertain_df, + stringsAsFactors = FALSE) + found <- lookup(mo == found) + return(found) + } + + # (7) try to strip off half an element from end and check the remains ---- + if (isTRUE(debug)) { + cat(font_bold("\n[ UNCERTAINTY LEVEL", now_checks_for_uncertainty_level, "] (7) try to strip off half an element from end and check the remains\n")) } x_strip <- a.x_backup %pm>% strsplit("[ .]") %pm>% unlist() if (length(x_strip) > 1) { @@ -1220,9 +1249,9 @@ exec_as.mo <- function(x, } } } - # (7) try to strip off one element from end and check the remains ---- + # (8) try to strip off one element from end and check the remains ---- if (isTRUE(debug)) { - cat(font_bold("\n[ UNCERTAINTY LEVEL", now_checks_for_uncertainty_level, "] (7) try to strip off one element from end and check the remains\n")) + cat(font_bold("\n[ UNCERTAINTY LEVEL", now_checks_for_uncertainty_level, "] (8) try to strip off one element from end and check the remains\n")) } if (length(x_strip) > 1) { for (i in seq_len(length(x_strip) - 1)) { @@ -1249,9 +1278,9 @@ exec_as.mo <- function(x, } } } - # (8) check for unknown yeasts/fungi ---- + # (9) check for unknown yeasts/fungi ---- if (isTRUE(debug)) { - cat(font_bold("\n[ UNCERTAINTY LEVEL", now_checks_for_uncertainty_level, "] (8) check for unknown yeasts/fungi\n")) + cat(font_bold("\n[ UNCERTAINTY LEVEL", now_checks_for_uncertainty_level, "] (9) check for unknown yeasts/fungi\n")) } if (b.x_trimmed %like_case% "yeast") { found <- "F_YEAST" @@ -1275,9 +1304,9 @@ exec_as.mo <- function(x, stringsAsFactors = FALSE) return(found) } - # (9) try to strip off one element from start and check the remains (only allow >= 2-part name outcome) ---- + # (10) try to strip off one element from start and check the remains (only allow >= 2-part name outcome) ---- if (isTRUE(debug)) { - cat(font_bold("\n[ UNCERTAINTY LEVEL", now_checks_for_uncertainty_level, "] (9) try to strip off one element from start and check the remains (only allow >= 2-part name outcome)\n")) + cat(font_bold("\n[ UNCERTAINTY LEVEL", now_checks_for_uncertainty_level, "] (10) try to strip off one element from start and check the remains (only allow >= 2-part name outcome)\n")) } x_strip <- a.x_backup %pm>% strsplit("[ .]") %pm>% unlist() if (length(x_strip) > 1 & nchar(g.x_backup_without_spp) >= 6) { @@ -1311,9 +1340,9 @@ exec_as.mo <- function(x, if (uncertainty_level >= 3) { now_checks_for_uncertainty_level <- 3 - # (10) try to strip off one element from start and check the remains (any text size) ---- + # (11) try to strip off one element from start and check the remains (any text size) ---- if (isTRUE(debug)) { - cat(font_bold("\n[ UNCERTAINTY LEVEL", now_checks_for_uncertainty_level, "] (10) try to strip off one element from start and check the remains (any text size)\n")) + cat(font_bold("\n[ UNCERTAINTY LEVEL", now_checks_for_uncertainty_level, "] (11) try to strip off one element from start and check the remains (any text size)\n")) } x_strip <- a.x_backup %pm>% strsplit("[ .]") %pm>% unlist() if (length(x_strip) > 1 & nchar(g.x_backup_without_spp) >= 6) { @@ -1338,10 +1367,10 @@ exec_as.mo <- function(x, } } } - # (11) try to strip off one element from end and check the remains (any text size) ---- + # (12) try to strip off one element from end and check the remains (any text size) ---- # (this is in fact 7 but without nchar limit of >=6) if (isTRUE(debug)) { - cat(font_bold("\n[ UNCERTAINTY LEVEL", now_checks_for_uncertainty_level, "] (11) try to strip off one element from end and check the remains (any text size)\n")) + cat(font_bold("\n[ UNCERTAINTY LEVEL", now_checks_for_uncertainty_level, "] (12) try to strip off one element from end and check the remains (any text size)\n")) } if (length(x_strip) > 1) { for (i in seq_len(length(x_strip) - 1)) { @@ -1366,9 +1395,9 @@ exec_as.mo <- function(x, } } - # (12) part of a name (very unlikely match) ---- + # (13) part of a name (very unlikely match) ---- if (isTRUE(debug)) { - cat(font_bold("\n[ UNCERTAINTY LEVEL", now_checks_for_uncertainty_level, "] (12) part of a name (very unlikely match)\n")) + cat(font_bold("\n[ UNCERTAINTY LEVEL", now_checks_for_uncertainty_level, "] (13) part of a name (very unlikely match)\n")) } if (isTRUE(debug)) { message("Running '", f.x_withspaces_end_only, "'") @@ -1882,7 +1911,7 @@ print.mo_uncertainties <- function(x, ...) { if (NROW(x) == 0) { return(NULL) } - cat(word_wrap("Matching scores", ifelse(has_colour(), " (in blue)", ""), " are based on human pathogenic prevalence and the resemblance between the input and the full taxonomic name. See `?mo_matching_score`.\n\n", add_fn = font_blue)) + cat(word_wrap("Matching scores", ifelse(has_colour(), " (in blue)", ""), " are based on pathogenicity in humans and the resemblance between the input and the full taxonomic name. See `?mo_matching_score`.\n\n", add_fn = font_blue)) txt <- "" for (i in seq_len(nrow(x))) { diff --git a/R/mo_matching_score.R b/R/mo_matching_score.R index ad50a08a..74fd8412 100755 --- a/R/mo_matching_score.R +++ b/R/mo_matching_score.R @@ -27,13 +27,13 @@ #' #' This algorithm is used by [as.mo()] and all the [`mo_*`][mo_property()] functions to determine the most probable match of taxonomic records based on user input. #' @inheritSection lifecycle Stable Lifecycle -#' @author Dr. Matthijs Berends +#' @author Dr Matthijs Berends #' @param x Any user input value(s) #' @param n A full taxonomic name, that exists in [`microorganisms$fullname`][microorganisms] #' @section Matching Score for Microorganisms: #' With ambiguous user input in [as.mo()] and all the [`mo_*`][mo_property()] functions, the returned results are chosen based on their matching score using [mo_matching_score()]. This matching score \eqn{m}, is calculated as: #' -#' \ifelse{latex}{\deqn{m_{(x, n)} = \frac{l_{n} - 0.5 \cdot \min \begin{cases}l_{n} \\ \textrm{lev}(x, n)\end{cases}}{l_{n} \cdot p_{n} \cdot k_{n}}}}{\ifelse{html}{\figure{mo_matching_score.png}{options: width="300px" alt="mo matching score"}}{m(x, n) = ( l_n * min(l_n, lev(x, n) ) ) / ( l_n * p_n * k_n )}} +#' \ifelse{latex}{\deqn{m_{(x, n)} = \frac{l_{n} - 0.5 \cdot \min \begin{cases}l_{n} \\ \textrm{lev}(x, n)\end{cases}}{l_{n} \cdot p_{n} \cdot k_{n}}}}{\ifelse{html}{\figure{mo_matching_score.png}{options: width="300" alt="mo matching score"}}{m(x, n) = ( l_n * min(l_n, lev(x, n) ) ) / ( l_n * p_n * k_n )}} #' #' where: #' @@ -49,6 +49,8 @@ #' All characters in \eqn{x} and \eqn{n} are ignored that are other than A-Z, a-z, 0-9, spaces and parentheses. #' #' All matches are sorted descending on their matching score and for all user input values, the top match will be returned. This will lead to the effect that e.g., `"E. coli"` will return the microbial ID of *Escherichia coli* (\eqn{m = `r round(mo_matching_score("E. coli", "Escherichia coli"), 3)`}, a highly prevalent microorganism found in humans) and not *Entamoeba coli* (\eqn{m = `r round(mo_matching_score("E. coli", "Entamoeba coli"), 3)`}, a less prevalent microorganism in humans), although the latter would alphabetically come first. +#' +#' Since `AMR` version 1.8.1, common microorganism abbreviations are ignored in determining the matching score. These abbreviations are currently: `r vector_and(pkg_env$mo_field_abbreviations, quotes = FALSE)`. #' @export #' @inheritSection AMR Reference Data Publicly Available #' @inheritSection AMR Read more on Our Website! @@ -65,9 +67,16 @@ mo_matching_score <- function(x, n) { x <- parse_and_convert(x) # no dots and other non-whitespace characters x <- gsub("[^a-zA-Z0-9 \\(\\)]+", "", x) + + # remove abbreviations known to the field + x <- gsub(paste0("(^|[^a-z0-9]+)(", + paste0(pkg_env$mo_field_abbreviations, collapse = "|"), + ")([^a-z0-9]+|$)"), + "", x, perl = TRUE, ignore.case = TRUE) + # only keep one space x <- gsub(" +", " ", x) - + # n is always a taxonomically valid full name if (length(n) == 1) { n <- rep(n, length(x)) @@ -82,7 +91,7 @@ mo_matching_score <- function(x, n) { l_n.lev <- double(length = length(x)) for (i in seq_len(length(x))) { # determine Levenshtein distance, but maximise to nchar of n - lev[i] <- utils::adist(x[i], n[i], ignore.case = FALSE, fixed = TRUE) + lev[i] <- utils::adist(x[i], n[i], ignore.case = FALSE, fixed = TRUE, costs = c(ins = 1, del = 1, sub = 1)) # minimum of (l_n, Levenshtein distance) l_n.lev[i] <- min(l_n[i], as.double(lev[i])) } diff --git a/R/rsi.R b/R/rsi.R index ea7aaedd..404e0485 100755 --- a/R/rsi.R +++ b/R/rsi.R @@ -310,11 +310,15 @@ as.rsi.default <- function(x, ...) { x[x %like% "([^a-z]|^)sus(cep(tible)?)?"] <- "S" x[x %like% "([^a-z]|^)int(er(mediate)?)?|incr.*exp"] <- "I" # remove other invalid characters - x <- gsub("[^rsiRSIHi]+", "", x, perl = TRUE) - # some labs now report "H" instead of "I" to not interfere with EUCAST prior to 2019 - x <- gsub("H", "I", x, ignore.case = TRUE) # set to capitals x <- toupper(x) + x <- gsub("[^RSIHDU]+", "", x, perl = TRUE) + # some labs now report "H" instead of "I" to not interfere with EUCAST prior to 2019 + x <- gsub("^H$", "I", x, perl = TRUE) + # and MIPS uses D for Dose-dependent (which is I, but it will throw a note) + x <- gsub("^D$", "I", x, perl = TRUE) + # and MIPS uses U for "susceptible urine" + x <- gsub("^U$", "S", x, perl = TRUE) # in cases of "S;S" keep S, but in case of "S;I" make it NA x <- gsub("^S+$", "S", x) x <- gsub("^I+$", "I", x) @@ -333,6 +337,15 @@ as.rsi.default <- function(x, ...) { "%) that were invalid antimicrobial interpretations: ", list_missing, call = FALSE) } + if (any(toupper(x.bak) == "U") && message_not_thrown_before("as.rsi", "U")) { + warning_("in as.rsi(): 'U' was interpreted as 'S', following some laboratory systems", call = FALSE) + } + if (any(toupper(x.bak) == "D") && message_not_thrown_before("as.rsi", "D")) { + warning_("in as.rsi(): 'D' (dose-dependent) was interpreted as 'I', following some laboratory systems", call = FALSE) + } + if (any(toupper(x.bak) == "H") && message_not_thrown_before("as.rsi", "H")) { + warning_("in as.rsi(): 'H' was interpreted as 'I', following some laboratory systems", call = FALSE) + } } } diff --git a/R/whocc.R b/R/whocc.R index f157b6bb..170aff6c 100755 --- a/R/whocc.R +++ b/R/whocc.R @@ -27,7 +27,7 @@ #' #' All antimicrobial drugs and their official names, ATC codes, ATC groups and defined daily dose (DDD) are included in this package, using the WHO Collaborating Centre for Drug Statistics Methodology. #' @section WHOCC: -#' \if{html}{\figure{logo_who.png}{options: height=60px style=margin-bottom:5px} \cr} +#' \if{html}{\figure{logo_who.png}{options: height="60" style=margin-bottom:"5"} \cr} #' This package contains **all ~550 antibiotic, antimycotic and antiviral drugs** and their Anatomical Therapeutic Chemical (ATC) codes, ATC groups and Defined Daily Dose (DDD) from the World Health Organization Collaborating Centre for Drug Statistics Methodology (WHOCC, ) and the Pharmaceuticals Community Register of the European Commission (). #' #' These have become the gold standard for international drug utilisation monitoring and research. diff --git a/R/zzz.R b/R/zzz.R index 8bf5abde..c8df3be3 100755 --- a/R/zzz.R +++ b/R/zzz.R @@ -26,6 +26,11 @@ # set up package environment, used by numerous AMR functions pkg_env <- new.env(hash = FALSE) pkg_env$mo_failed <- character(0) +pkg_env$mo_field_abbreviations <- c("AIEC", "ATEC", "BORSA", "CRSM", "DAEC", "EAEC", + "EHEC", "EIEC", "EPEC", "ETEC", "GISA", "MRPA", + "MRSA", "MRSE", "MSSA", "MSSE", "NMEC", "PISP", + "PRSP", "STEC", "UPEC", "VISA", "VISP", "VRE", + "VRSA", "VRSP") # determine info icon for messages utf8_supported <- isTRUE(base::l10n_info()$`UTF-8`) diff --git a/data-raw/AMR_latest.tar.gz b/data-raw/AMR_latest.tar.gz index fb36be5f..33275e8c 100644 Binary files a/data-raw/AMR_latest.tar.gz and b/data-raw/AMR_latest.tar.gz differ diff --git a/data-raw/reproduction_of_microorganisms.R b/data-raw/reproduction_of_microorganisms.R index 3ba4bd15..bc571fad 100644 --- a/data-raw/reproduction_of_microorganisms.R +++ b/data-raw/reproduction_of_microorganisms.R @@ -26,8 +26,8 @@ # Reproduction of the `microorganisms` data set # Data retrieved from the Catalogue of Life (CoL): -# https://download.catalogueoflife.org/col/monthly/life/ -# (download latest dwca, such as https://download.catalogueoflife.org/col/monthly/2020-12-01_dwca.zip) +# https://download.catalogueoflife.org/col/monthly/ +# (download latest dwca, such as https://download.catalogueoflife.org/col/monthly/2022-01-14_dwca.zip) # Data retrieved from the Global Biodiversity Information Facility (GBIF): # https://doi.org/10.15468/rffz4x # diff --git a/docs/articles/datasets.html b/docs/articles/datasets.html index 55aaedb6..f1dbfe8b 100644 --- a/docs/articles/datasets.html +++ b/docs/articles/datasets.html @@ -44,7 +44,7 @@ AMR (for R) - 1.8.0.9000 + 1.8.0.9001 @@ -190,7 +190,7 @@ @@ -157,16 +157,32 @@
- +
-

Last updated: 1 February 2022

+

Last updated: 26 February 2022

+

All functions in this package are considered to be stable. Updates to the AMR interpretation rules (such as by EUCAST and CLSI), the microbial taxonomy, and the antibiotic dosages will all be updated every 6 to 12 months.

+
+

Changed

+
  • Support for antibiotic interpretations of the MIPS laboratory system: "U" for S (‘susceptible urine’), "D" for I (‘susceptible dose-dependent’)

  • +
  • +

    Improved algorithm of as.mo(), especially for ignoring non-taxonomic text, such as:

    +
    +
    +mo_name("methicillin-resistant S. aureus (MRSA)")
    +#> [1] "Staphylococcus aureus"
    +
  • +
+
+

Other

+
  • Fix for unit testing on R 3.3
  • +
  • Fix for size of some image elements, as requested by CRAN
  • +
-

All functions in this package are now all considered to be stable. Updates to the AMR interpretation rules (such as by EUCAST and CLSI), the microbial taxonomy, and the antibiotic dosages will all be updated every 6 to 12 months from now on.

Breaking changes

  • Removed p_symbol() and all filter_*() functions (except for filter_first_isolate()), which were all deprecated in a previous package version
  • @@ -182,7 +198,7 @@
  • Support for all antimicrobial drug (group) names and colloquial microorganism names in Danish, Dutch, English, French, German, Italian, Portuguese, Russian, Spanish and Swedish

  • Function set_ab_names() to rename data set columns that resemble antimicrobial drugs. This allows for quickly renaming columns to official names, ATC codes, etc. Its second argument can be a tidyverse way of selecting:

    -
    +
     
     example_isolates %>% set_ab_names(where(is.rsi))
     example_isolates %>% set_ab_names(AMC:GEN, property = "atc")
    @@ -208,14 +224,14 @@
  • Added more selectors for antibiotic classes: aminopenicillins(), antifungals(), antimycobacterials(), lincosamides(), lipoglycopeptides(), polymyxins(), quinolones(), streptogramins(), trimethoprims() and ureidopenicillins()

  • Added specific selectors for certain types for treatment: administrable_per_os() and administrable_iv(), which are based on available Defined Daily Doses (DDDs), as defined by the WHOCC. These are ideal for e.g. analysing pathogens in primary care where IV treatment is not an option. They can be combined with other AB selectors, e.g. to select penicillins that are only administrable per os (i.e., orally):

    -
    +
     
     example_isolates[, penicillins() & administrable_per_os()]          # base R
     example_isolates %>% select(penicillins() & administrable_per_os()) # dplyr
  • Added the selector ab_selector(), which accepts a filter to be used internally on the antibiotics data set, yielding great flexibility on drug properties, such as selecting antibiotic columns with an oral DDD of at least 1 gram:

    -
    +
     
     example_isolates[, ab_selector(oral_ddd > 1 & oral_units == "g")]          # base R
     example_isolates %>% select(ab_selector(oral_ddd > 1 & oral_units == "g")) # dplyr
    @@ -273,7 +289,7 @@

    Breaking change

    • All antibiotic class selectors (such as carbapenems(), aminoglycosides()) can now be used for filtering as well, making all their accompanying filter_*() functions redundant (such as filter_carbapenems(), filter_aminoglycosides()). These functions are now deprecated and will be removed in a next release. Examples of how the selectors can be used for filtering:

      -
      +
       
       # select columns with results for carbapenems
       example_isolates[, carbapenems()]           # base R
      @@ -328,7 +344,7 @@
       
      • Now checks if pattern is a valid regular expression

      • Added %unlike% and %unlike_case% (as negations of the existing %like% and %like_case%). This greatly improves readability:

        -
        +
         
         if (!grepl("EUCAST", guideline)) ...
         # same:
        @@ -381,7 +397,7 @@
         
    • Functions oxazolidinones() (an antibiotic selector function) and filter_oxazolidinones() (an antibiotic filter function) to select/filter on e.g. linezolid and tedizolid

      -
      +
       
       library(dplyr)
       x <- example_isolates %>% select(date, hospital_id, oxazolidinones())
      @@ -394,7 +410,7 @@
       
    • ggplot() generics for classes <mic> and <disk>

    • Function mo_is_yeast(), which determines whether a microorganism is a member of the taxonomic class Saccharomycetes or the taxonomic order Saccharomycetales:

      -
      +
       
       mo_kingdom(c("Aspergillus", "Candida"))
       #> [1] "Fungi" "Fungi"
      @@ -406,7 +422,7 @@
       example_isolates[which(mo_is_yeast()), ]   # base R
       example_isolates %>% filter(mo_is_yeast()) # dplyr

      The mo_type() function has also been updated to reflect this change:

      -
      +
       
       mo_type(c("Aspergillus", "Candida"))
       # [1] "Fungi"  "Yeasts"
      @@ -416,7 +432,7 @@
       
    • Added Pretomanid (PMD, J04AK08) to the antibiotics data set

    • MIC values (see as.mic()) can now be used in any mathematical processing, such as usage inside functions min(), max(), range(), and with binary operators (+, -, etc.). This allows for easy distribution analysis and fast filtering on MIC values:

      -
      +
       
       x <- random_mic(10)
       x
      @@ -485,7 +501,7 @@
       

      New

      +
     
     # to select first isolates that are Gram-negative 
     # and view results of cephalosporins and aminoglycosides:
    @@ -542,7 +558,7 @@
     
  • For antibiotic selection functions (such as cephalosporins(), aminoglycosides()) to select columns based on a certain antibiotic group, the dependency on the tidyselect package was removed, meaning that they can now also be used without the need to have this package installed and now also work in base R function calls (they rely on R 3.2 or later):

    -
    +
     
     # above example in base R:
     example_isolates[which(first_isolate() & mo_is_gram_negative()),
    @@ -585,7 +601,7 @@
     
  • Data set intrinsic_resistant. This data set contains all bug-drug combinations where the ‘bug’ is intrinsic resistant to the ‘drug’ according to the latest EUCAST insights. It contains just two columns: microorganism and antibiotic.

    Curious about which enterococci are actually intrinsic resistant to vancomycin?

    -
    +
     
     library(AMR)
     library(dplyr)
    @@ -604,7 +620,7 @@
     

    Improvements for as.rsi():

    • Support for using dplyr’s across() to interpret MIC values or disk zone diameters, which also automatically determines the column with microorganism names or codes.

      -
      +
       
       # until dplyr 1.0.0
       your_data %>% mutate_if(is.mic, as.rsi)
      @@ -621,7 +637,7 @@
       
  • Added intelligent data cleaning to as.disk(), so numbers can also be extracted from text and decimal numbers will always be rounded up:

    -
    +
     
     as.disk(c("disk zone: 23.4 mm", 23.4))
     #> Class <disk>
    @@ -670,7 +686,7 @@
     
    • Function ab_from_text() to retrieve antimicrobial drug names, doses and forms of administration from clinical texts in e.g. health care records, which also corrects for misspelling since it uses as.ab() internally

    • Tidyverse selection helpers for antibiotic classes, that help to select the columns of antibiotics that are of a specific antibiotic class, without the need to define the columns or antibiotic abbreviations. They can be used in any function that allows selection helpers, like dplyr::select() and tidyr::pivot_longer():

      -
      +
       
       library(dplyr)
       
      @@ -811,7 +827,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
       
      • Fixed important floating point error for some MIC comparisons in EUCAST 2020 guideline

      • Interpretation from MIC values (and disk zones) to R/SI can now be used with mutate_at() of the dplyr package:

        -
        +
         
         yourdata %>% 
           mutate_at(vars(antibiotic1:antibiotic25), as.rsi, mo = "E. coli")
        @@ -834,7 +850,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
         
      • Support for LOINC and SNOMED codes
        • Support for LOINC codes in the antibiotics data set. Use ab_loinc() to retrieve LOINC codes, or use a LOINC code for input in any ab_* function:

          -
          +
           
           ab_loinc("ampicillin")
           #> [1] "21066-6" "3355-5"  "33562-0" "33919-2" "43883-8" "43884-6" "87604-5"
          @@ -845,7 +861,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
           
        • Support for SNOMED CT codes in the microorganisms data set. Use mo_snomed() to retrieve SNOMED codes, or use a SNOMED code for input in any mo_* function:

          -
          +
           
           mo_snomed("S. aureus")
           #> [1] 115329001   3092008 113961008
          @@ -893,11 +909,11 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
           
          • Adopted Adeolu et al. (2016), PMID 27620848 for the microorganisms data set, which means that the new order Enterobacterales now consists of a part of the existing family Enterobacteriaceae, but that this family has been split into other families as well (like Morganellaceae and Yersiniaceae). Although published in 2016, this information is not yet in the Catalogue of Life version of 2019. All MDRO determinations with mdro() will now use the Enterobacterales order for all guidelines before 2016 that were dependent on the Enterobacteriaceae family.
            • If you were dependent on the old Enterobacteriaceae family e.g. by using in your code:

              -
              +
               
               if (mo_family(somebugs) == "Enterobacteriaceae") ...

              then please adjust this to:

              -
              +
               
               if (mo_order(somebugs) == "Enterobacterales") ...
            • @@ -907,7 +923,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/

              New

              • Functions susceptibility() and resistance() as aliases of proportion_SI() and proportion_R(), respectively. These functions were added to make it more clear that “I” should be considered susceptible and not resistant.

                -
                +
                 
                 library(dplyr)
                 example_isolates %>%
                @@ -930,7 +946,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                 
              • More intelligent way of coping with some consonants like “l” and “r”

              • Added a score (a certainty percentage) to mo_uncertainties(), that is calculated using the Levenshtein distance:

                -
                +
                 
                 as.mo(c("Stafylococcus aureus",
                         "staphylokok aureuz"))
                @@ -978,14 +994,14 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                 

                Breaking

                • Determination of first isolates now excludes all ‘unknown’ microorganisms at default, i.e. microbial code "UNKNOWN". They can be included with the new argument include_unknown:

                  -
                  +
                   
                   first_isolate(..., include_unknown = TRUE)

                  For WHONET users, this means that all records/isolates with organism code "con" (contamination) will be excluded at default, since as.mo("con") = "UNKNOWN". The function always shows a note with the number of ‘unknown’ microorganisms that were included or excluded.

                • For code consistency, classes ab and mo will now be preserved in any subsetting or assignment. For the sake of data integrity, this means that invalid assignments will now result in NA:

                  -
                  +
                   
                   # how it works in base R:
                   x <- factor("A")
                  @@ -1007,7 +1023,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                   

                  New

                  • Function bug_drug_combinations() to quickly get a data.frame with the results of all bug-drug combinations in a data set. The column containing microorganism codes is guessed automatically and its input is transformed with mo_shortname() at default:

                    -
                    +
                     
                     x <- bug_drug_combinations(example_isolates)
                     #> NOTE: Using column `mo` as input for `col_mo`.
                    @@ -1030,13 +1046,13 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                     #> 4 Gram-negative AMX 227  0 405   632
                     #> NOTE: Use 'format()' on this result to get a publicable/printable format.

                    You can format this to a printable format, ready for reporting or exporting to e.g. Excel with the base R format() function:

                    -
                    +
                     
                     format(x, combine_IR = FALSE)
                  • Additional way to calculate co-resistance, i.e. when using multiple antimicrobials as input for portion_* functions or count_* functions. This can be used to determine the empiric susceptibility of a combination therapy. A new argument only_all_tested (which defaults to FALSE) replaces the old also_single_tested and can be used to select one of the two methods to count isolates and calculate portions. The difference can be seen in this example table (which is also on the portion and count help pages), where the %SI is being determined:

                    -
                    +
                     
                     # --------------------------------------------------------------------
                     #                     only_all_tested = FALSE  only_all_tested = TRUE
                    @@ -1058,7 +1074,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                     
                  • tibble printing support for classes rsi, mic, disk, ab mo. When using tibbles containing antimicrobial columns, values S will print in green, values I will print in yellow and values R will print in red. Microbial IDs (class mo) will emphasise on the genus and species, not on the kingdom.

                    -
                    +
                     
                     # (run this on your own console, as this page does not support colour printing)
                     library(dplyr)
                    @@ -1126,7 +1142,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                     
                    New
                    • Function rsi_df() to transform a data.frame to a data set containing only the microbial interpretation (S, I, R), the antibiotic, the percentage of S/I/R and the number of available isolates. This is a convenient combination of the existing functions count_df() and portion_df() to immediately show resistance percentages and number of available isolates:

                      -
                      +
                       
                       septic_patients %>%
                         select(AMX, CIP) %>%
                      @@ -1151,7 +1167,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                       
                    • STEC (Shiga-toxin producing E. coli)
                    • UPEC (Uropathogenic E. coli)

                    All these lead to the microbial ID of E. coli:

                    -
                    +
                     
                     as.mo("UPEC")
                     # B_ESCHR_COL
                    @@ -1235,7 +1251,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                     
                  • when all values are unique it now shows a message instead of a warning

                  • support for boxplots:

                    -
                    +
                     
                     septic_patients %>% 
                       freq(age) %>% 
                    @@ -1310,7 +1326,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                     
                • New filters for antimicrobial classes. Use these functions to filter isolates on results in one of more antibiotics from a specific class:

                  -
                  +
                   
                   filter_aminoglycosides()
                   filter_carbapenems()
                  @@ -1324,7 +1340,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                   filter_macrolides()
                   filter_tetracyclines()

                  The antibiotics data set will be searched, after which the input data will be checked for column names with a value in any abbreviations, codes or official names found in the antibiotics data set. For example:

                  -
                  +
                   
                   septic_patients %>% filter_glycopeptides(result = "R")
                   # Filtering on glycopeptide antibacterials: any of `vanc` or `teic` is R
                  @@ -1333,7 +1349,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                   
                • All ab_* functions are deprecated and replaced by atc_* functions:

                  -
                  +
                   
                   ab_property -> atc_property()
                   ab_name -> atc_name()
                  @@ -1354,7 +1370,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                   
                • New function age_groups() to split ages into custom or predefined groups (like children or elderly). This allows for easier demographic AMR data analysis per age group.

                • New function ggplot_rsi_predict() as well as the base R plot() function can now be used for resistance prediction calculated with resistance_predict():

                  -
                  +
                   
                   x <- resistance_predict(septic_patients, col_ab = "amox")
                   plot(x)
                  @@ -1362,13 +1378,13 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                   
                • Functions filter_first_isolate() and filter_first_weighted_isolate() to shorten and fasten filtering on data sets with antimicrobial results, e.g.:

                  -
                  +
                   
                   septic_patients %>% filter_first_isolate(...)
                   # or
                   filter_first_isolate(septic_patients, ...)

                  is equal to:

                  -
                  +
                   
                   septic_patients %>%
                     mutate(only_firsts = first_isolate(septic_patients, ...)) %>%
                  @@ -1395,7 +1411,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                   
                • Improvements for as.mo():
                  • Now handles incorrect spelling, like i instead of y and f instead of ph:

                    -
                    +
                     
                     # mo_fullname() uses as.mo() internally
                     
                    @@ -1407,7 +1423,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                     
                  • Uncertainty of the algorithm is now divided into four levels, 0 to 3, where the default allow_uncertain = TRUE is equal to uncertainty level 2. Run ?as.mo for more info about these levels.

                    -
                    +
                     
                     # equal:
                     as.mo(..., allow_uncertain = TRUE)
                    @@ -1458,7 +1474,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                     
                  • Frequency tables (freq() function):
                    • Support for tidyverse quasiquotation! Now you can create frequency tables of function outcomes:

                      -
                      +
                       
                       # Determine genus of microorganisms (mo) in `septic_patients` data set:
                       # OLD WAY
                      @@ -1528,7 +1544,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                       
                    • Fewer than 3 characters as input for as.mo will return NA

                    • Function as.mo (and all mo_* wrappers) now supports genus abbreviations with “species” attached

                      -
                      +
                       
                       as.mo("E. species")        # B_ESCHR
                       mo_fullname("E. spp.")     # "Escherichia species"
                      @@ -1544,7 +1560,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                       

                      Frequency tables - freq():

                      • Support for grouping variables, test with:

                        -
                        +
                         
                         septic_patients %>% 
                           group_by(hospital_id) %>% 
                        @@ -1552,7 +1568,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                         
                      • Support for (un)selecting columns:

                        -
                        +
                         
                         septic_patients %>% 
                           freq(hospital_id) %>% 
                        @@ -1619,7 +1635,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                         
                      • Author and year: mo_ref

                      They also come with support for German, Dutch, French, Italian, Spanish and Portuguese:

                      -
                      +
                       
                       mo_gramstain("E. coli")
                       # [1] "Gram negative"
                      @@ -1630,7 +1646,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                       mo_fullname("S. group A", language = "pt") # Portuguese
                       # [1] "Streptococcus grupo A"

                      Furthermore, former taxonomic names will give a note about the current taxonomic name:

                      -
                      +
                       
                       mo_gramstain("Esc blattae")
                       # Note: 'Escherichia blattae' (Burgess et al., 1973) was renamed 'Shimwellia blattae' (Priest and Barker, 2010)
                      @@ -1643,7 +1659,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                       
                    • Function is.rsi.eligible to check for columns that have valid antimicrobial results, but do not have the rsi class yet. Transform the columns of your raw data with: data %>% mutate_if(is.rsi.eligible, as.rsi)

                    • Functions as.mo and is.mo as replacements for as.bactid and is.bactid (since the microoganisms data set not only contains bacteria). These last two functions are deprecated and will be removed in a future release. The as.mo function determines microbial IDs using intelligent rules:

                      -
                      +
                       
                       as.mo("E. coli")
                       # [1] B_ESCHR_COL
                      @@ -1652,7 +1668,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                       as.mo("S group A")
                       # [1] B_STRPTC_GRA

                      And with great speed too - on a quite regular Linux server from 2007 it takes us less than 0.02 seconds to transform 25,000 items:

                      -
                      +
                       
                       thousands_of_E_colis <- rep("E. coli", 25000)
                       microbenchmark::microbenchmark(as.mo(thousands_of_E_colis), unit = "s")
                      @@ -1681,7 +1697,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                       
                      • Added three antimicrobial agents to the antibiotics data set: Terbinafine (D01BA02), Rifaximin (A07AA11) and Isoconazole (D01AC05)

                      • Added 163 trade names to the antibiotics data set, it now contains 298 different trade names in total, e.g.:

                        -
                        +
                         
                         ab_official("Bactroban")
                         # [1] "Mupirocin"
                        @@ -1698,7 +1714,7 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                         
                      • Added arguments minimum and as_percent to portion_df

                      • Support for quasiquotation in the functions series count_* and portions_*, and n_rsi. This allows to check for more than 2 vectors or columns.

                        -
                        +
                         
                         septic_patients %>% select(amox, cipr) %>% count_IR()
                         # which is the same as:
                        @@ -1718,12 +1734,12 @@ This works for all drug combinations, such as ampicillin/sulbactam, ceftazidime/
                         
                      • Added longest en shortest character length in the frequency table (freq) header of class character

                      • Support for types (classes) list and matrix for freq

                        -
                        +
                         
                         my_matrix = with(septic_patients, matrix(c(age, gender), ncol = 2))
                         freq(my_matrix)

                        For lists, subsetting is possible:

                        -
                        +
                         
                         my_list = list(age = septic_patients$age, gender = septic_patients$gender)
                         my_list %>% freq(age)
                        diff --git a/docs/reference/AMR-deprecated.html b/docs/reference/AMR-deprecated.html
                        index 50adff6f..78933eab 100644
                        --- a/docs/reference/AMR-deprecated.html
                        +++ b/docs/reference/AMR-deprecated.html
                        @@ -17,7 +17,7 @@
                               
                               
                                 AMR (for R)
                        -        1.8.0
                        +        1.8.0.9001
                               
                             
                        @@ -161,13 +161,12 @@

                        These functions are so-called 'Deprecated'. They will be removed in a future release. Using the functions will give a warning with the name of the function it has been replaced by (if there is one).

                        -
                        Usage,NULL

                        Retired Lifecycle

                        -


                        +


                        The lifecycle of this function is retired. A retired function is no longer under active development, and (if appropiate) a better alternative is available. No new arguments will be added, and only the most critical bugs will be fixed. In a future version, this function will be removed.

                        @@ -189,7 +188,7 @@ The lifecycle of this function is retired
                        -

                        Site built with pkgdown 2.0.0.

                        +

                        Site built with pkgdown 2.0.2.

                        diff --git a/docs/reference/WHOCC.html b/docs/reference/WHOCC.html index 899e26de..6b749823 100644 --- a/docs/reference/WHOCC.html +++ b/docs/reference/WHOCC.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001
                        @@ -161,13 +161,12 @@

                        All antimicrobial drugs and their official names, ATC codes, ATC groups and defined daily dose (DDD) are included in this package, using the WHO Collaborating Centre for Drug Statistics Methodology.

                      • -
                        Usage,NULL

                        WHOCC

                        -


                        +


                        This package contains all ~550 antibiotic, antimycotic and antiviral drugs and their Anatomical Therapeutic Chemical (ATC) codes, ATC groups and Defined Daily Dose (DDD) from the World Health Organization Collaborating Centre for Drug Statistics Methodology (WHOCC, https://www.whocc.no) and the Pharmaceuticals Community Register of the European Commission (https://ec.europa.eu/health/documents/community-register/html/reg_hum_atc.htm).

                        These have become the gold standard for international drug utilisation monitoring and research.

                        The WHOCC is located in Oslo at the Norwegian Institute of Public Health and funded by the Norwegian government. The European Commission is the executive of the European Union and promotes its general interest.

                        @@ -200,7 +199,7 @@ This package contains all ~550 antibiotic, antimycotic and antiviral dru
                        -

                        Site built with pkgdown 2.0.0.

                        +

                        Site built with pkgdown 2.0.2.

                        diff --git a/docs/reference/ab_from_text.html b/docs/reference/ab_from_text.html index cd46324b..bb0ce37e 100644 --- a/docs/reference/ab_from_text.html +++ b/docs/reference/ab_from_text.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001
                      • @@ -161,7 +161,8 @@

                        Use this function on e.g. clinical texts from health care records. It returns a list with all antimicrobial drugs, doses and forms of administration found in the texts.

                        -
                        Usage,
                        ab_from_text(
                        +    
                        +
                        ab_from_text(
                           text,
                           type = c("drug", "dose", "administration"),
                           collapse = NULL,
                        @@ -169,7 +170,8 @@
                           thorough_search = NULL,
                           info = interactive(),
                           ...
                        -)
                        +)
                        +

                        Arguments

                        @@ -217,7 +219,7 @@

                        Stable Lifecycle

                        -


                        +


                        The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

                        If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

                        @@ -277,7 +279,7 @@ The lifecycle of this function is stable
                        -

                        Site built with pkgdown 2.0.0.

                        +

                        Site built with pkgdown 2.0.2.

                      diff --git a/docs/reference/ab_property.html b/docs/reference/ab_property.html index f29cb649..ea4611cc 100644 --- a/docs/reference/ab_property.html +++ b/docs/reference/ab_property.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001
                      @@ -161,7 +161,8 @@

                      Use these functions to return a specific property of an antibiotic from the antibiotics data set. All input values will be evaluated internally with as.ab().

                      -
                      Usage,
                      ab_name(x, language = get_AMR_locale(), tolower = FALSE, ...)
                      +    
                      +
                      ab_name(x, language = get_AMR_locale(), tolower = FALSE, ...)
                       
                       ab_cid(x, ...)
                       
                      @@ -195,7 +196,8 @@
                         property = "name",
                         language = get_AMR_locale(),
                         snake_case = NULL
                      -)
                      +)
                      +

                      Arguments

                      @@ -238,7 +240,7 @@

                      Stable Lifecycle

                      -


                      +


                      The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

                      If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

                      @@ -247,7 +249,6 @@ The lifecycle of this function is stableWorld Health Organization (WHO) Collaborating Centre for Drug Statistics Methodology: https://www.whocc.no/atc_ddd_index/

                      -

                      WHONET 2019 software: http://www.whonet.org/software.html

                      European Commission Public Health PHARMACEUTICALS - COMMUNITY REGISTER: https://ec.europa.eu/health/documents/community-register/html/reg_hum_atc.htm

                    • @@ -347,7 +348,7 @@ The lifecycle of this function is stable
                      -

                      Site built with pkgdown 2.0.0.

                      +

                      Site built with pkgdown 2.0.2.

                      diff --git a/docs/reference/age.html b/docs/reference/age.html index ae357dff..21f7400c 100644 --- a/docs/reference/age.html +++ b/docs/reference/age.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001
                      @@ -161,7 +161,9 @@

                      Calculates age in years based on a reference date, which is the sytem date at default.

                      -
                      Usage,
                      age(x, reference = Sys.Date(), exact = FALSE, na.rm = FALSE, ...)
                      +
                      +
                      age(x, reference = Sys.Date(), exact = FALSE, na.rm = FALSE, ...)
                      +

                      Arguments

                      @@ -189,7 +191,7 @@

                      Stable Lifecycle

                      -


                      +


                      The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

                      If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

                      @@ -228,7 +230,7 @@ The lifecycle of this function is stable
                      -

                      Site built with pkgdown 2.0.0.

                      +

                      Site built with pkgdown 2.0.2.

                      diff --git a/docs/reference/age_groups.html b/docs/reference/age_groups.html index 05d7a21a..d13568e8 100644 --- a/docs/reference/age_groups.html +++ b/docs/reference/age_groups.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001
                      @@ -161,7 +161,9 @@

                      Split ages into age groups defined by the split argument. This allows for easier demographic (antimicrobial resistance) analysis.

                    • -
                      Usage,
                      age_groups(x, split_at = c(12, 25, 55, 75), na.rm = FALSE)
                      +
                      +
                      age_groups(x, split_at = c(12, 25, 55, 75), na.rm = FALSE)
                      +

                      Arguments

                      @@ -190,7 +192,7 @@ The default is to split on young children (0-11), youth (12-24), young adults (2

                      Stable Lifecycle

                      -


                      +


                      The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

                      If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

                      @@ -252,7 +254,7 @@ The lifecycle of this function is stable
                      -

                      Site built with pkgdown 2.0.0.

                      +

                      Site built with pkgdown 2.0.2.

                      diff --git a/docs/reference/antibiotic_class_selectors.html b/docs/reference/antibiotic_class_selectors.html index 5218ffac..6ec0aac7 100644 --- a/docs/reference/antibiotic_class_selectors.html +++ b/docs/reference/antibiotic_class_selectors.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001
                  • @@ -161,7 +161,8 @@

                    These functions allow for filtering rows and selecting columns based on antibiotic test results that are of a specific antibiotic class or group, without the need to define the columns or antibiotic abbreviations. In short, if you have a column name that resembles an antimicrobial agent, it will be picked up by any of these functions that matches its pharmaceutical class: "cefazolin", "CZO" and "J01DB04" will all be picked up by cephalosporins().

                    -
                    Usage,
                    ab_class(ab_class, only_rsi_columns = FALSE, only_treatable = TRUE, ...)
                    +    
                    +
                    ab_class(ab_class, only_rsi_columns = FALSE, only_treatable = TRUE, ...)
                     
                     ab_selector(filter, only_rsi_columns = FALSE, only_treatable = TRUE, ...)
                     
                    @@ -224,7 +225,8 @@
                       col_mo = NULL,
                       version_expertrules = 3.3,
                       ...
                    -)
                    +)
                    +

                    Arguments

                    @@ -290,7 +292,7 @@

                    Stable Lifecycle

                    -


                    +


                    The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

                    If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

                    @@ -432,7 +434,7 @@ The lifecycle of this function is stable
                    -

                    Site built with pkgdown 2.0.0.

                    +

                    Site built with pkgdown 2.0.2.

                • diff --git a/docs/reference/antibiotics.html b/docs/reference/antibiotics.html index 56e22fc9..e84476d6 100644 --- a/docs/reference/antibiotics.html +++ b/docs/reference/antibiotics.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001
                  @@ -161,9 +161,11 @@

                  Two data sets containing all antibiotics/antimycotics and antivirals. Use as.ab() or one of the ab_* functions to retrieve values from the antibiotics data set. Three identifiers are included in this data set: an antibiotic ID (ab, primarily used in this package) as defined by WHONET/EARS-Net, an ATC code (atc) as defined by the WHO, and a Compound ID (cid) as found in PubChem. Other properties in this data set are derived from one or more of these codes. Note that some drugs have multiple ATC codes.

                  -
                  Usage,
                  antibiotics
                  +    
                  +
                  antibiotics
                   
                  -antivirals
                  +antivirals
                  +

                  Format

                  @@ -206,7 +208,6 @@

                  Source

                  World Health Organization (WHO) Collaborating Centre for Drug Statistics Methodology (WHOCC): https://www.whocc.no/atc_ddd_index/

                  -

                  WHONET 2019 software: http://www.whonet.org/software.html

                  European Commission Public Health PHARMACEUTICALS - COMMUNITY REGISTER: https://ec.europa.eu/health/documents/community-register/html/reg_hum_atc.htm

                  @@ -233,7 +234,7 @@

                  WHOCC

                  -


                  +


                  This package contains all ~550 antibiotic, antimycotic and antiviral drugs and their Anatomical Therapeutic Chemical (ATC) codes, ATC groups and Defined Daily Dose (DDD) from the World Health Organization Collaborating Centre for Drug Statistics Methodology (WHOCC, https://www.whocc.no) and the Pharmaceuticals Community Register of the European Commission (https://ec.europa.eu/health/documents/community-register/html/reg_hum_atc.htm).

                  These have become the gold standard for international drug utilisation monitoring and research.

                  The WHOCC is located in Oslo at the Norwegian Institute of Public Health and funded by the Norwegian government. The European Commission is the executive of the European Union and promotes its general interest.

                  @@ -262,7 +263,7 @@ This package contains all ~550 antibiotic, antimycotic and antiviral dru
                  -

                  Site built with pkgdown 2.0.0.

                  +

                  Site built with pkgdown 2.0.2.

                  diff --git a/docs/reference/as.ab.html b/docs/reference/as.ab.html index 28e2f710..5ccb6432 100644 --- a/docs/reference/as.ab.html +++ b/docs/reference/as.ab.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001
                • @@ -161,9 +161,11 @@

                  Use this function to determine the antibiotic code of one or more antibiotics. The data set antibiotics will be searched for abbreviations, official names and synonyms (brand names).

                  -
                  Usage,
                  as.ab(x, flag_multiple_results = TRUE, info = interactive(), ...)
                  +    
                  +
                  as.ab(x, flag_multiple_results = TRUE, info = interactive(), ...)
                   
                  -is.ab(x)
                  +is.ab(x)
                  +

                  Arguments

                  @@ -195,14 +197,13 @@

                  World Health Organization (WHO) Collaborating Centre for Drug Statistics Methodology: https://www.whocc.no/atc_ddd_index/

                  -

                  WHONET 2019 software: http://www.whonet.org/software.html

                  European Commission Public Health PHARMACEUTICALS - COMMUNITY REGISTER: https://ec.europa.eu/health/documents/community-register/html/reg_hum_atc.htm

                  Stable Lifecycle

                  -


                  +


                  The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

                  If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

                  @@ -210,7 +211,7 @@ The lifecycle of this function is stableWHOCC -


                  +


                  This package contains all ~550 antibiotic, antimycotic and antiviral drugs and their Anatomical Therapeutic Chemical (ATC) codes, ATC groups and Defined Daily Dose (DDD) from the World Health Organization Collaborating Centre for Drug Statistics Methodology (WHOCC, https://www.whocc.no) and the Pharmaceuticals Community Register of the European Commission (https://ec.europa.eu/health/documents/community-register/html/reg_hum_atc.htm).

                  These have become the gold standard for international drug utilisation monitoring and research.

                  The WHOCC is located in Oslo at the Norwegian Institute of Public Health and funded by the Norwegian government. The European Commission is the executive of the European Union and promotes its general interest.

                  @@ -283,7 +284,7 @@ This package contains all ~550 antibiotic, antimycotic and antiviral dru
                -

                Site built with pkgdown 2.0.0.

                +

                Site built with pkgdown 2.0.2.

                diff --git a/docs/reference/as.disk.html b/docs/reference/as.disk.html index a223c7eb..d303a6f9 100644 --- a/docs/reference/as.disk.html +++ b/docs/reference/as.disk.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001
              • @@ -161,11 +161,13 @@

                This transforms a vector to a new class disk, which is a disk diffusion growth zone size (around an antibiotic disk) in millimetres between 6 and 50.

                -
                Usage,
                as.disk(x, na.rm = FALSE)
                +    
                +
                as.disk(x, na.rm = FALSE)
                 
                 NA_disk_
                 
                -is.disk(x)
                +is.disk(x)
                +

                Format

                @@ -191,7 +193,7 @@

                Stable Lifecycle

                -


                +


                The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

                If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

                @@ -241,7 +243,7 @@ The lifecycle of this function is stable
                -

                Site built with pkgdown 2.0.0.

                +

                Site built with pkgdown 2.0.2.

          diff --git a/docs/reference/as.mic.html b/docs/reference/as.mic.html index 2a0762bb..e2ba1539 100644 --- a/docs/reference/as.mic.html +++ b/docs/reference/as.mic.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001
          @@ -161,11 +161,13 @@

          This transforms vectors to a new class mic, which treats the input as decimal numbers, while maintaining operators (such as ">=") and only allowing valid MIC values known to the field of (medical) microbiology.

      • -
        Usage,
        as.mic(x, na.rm = FALSE)
        +    
        +
        as.mic(x, na.rm = FALSE)
         
         NA_mic_
         
        -is.mic(x)
        +is.mic(x)
        +

        Format

        @@ -220,7 +222,7 @@

        Stable Lifecycle

        -


        +


        The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

        If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

        @@ -275,7 +277,7 @@ The lifecycle of this function is stable
        -

        Site built with pkgdown 2.0.0.

        +

        Site built with pkgdown 2.0.2.

        diff --git a/docs/reference/as.mo.html b/docs/reference/as.mo.html index 625e9e2e..edaa414c 100644 --- a/docs/reference/as.mo.html +++ b/docs/reference/as.mo.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001
      @@ -161,7 +161,8 @@

      Use this function to determine a valid microorganism code (mo). Determination is done using intelligent rules and the complete taxonomic kingdoms Bacteria, Chromista, Protozoa, Archaea and most microbial species from the kingdom Fungi (see Source). The input can be almost anything: a full name (like "Staphylococcus aureus"), an abbreviated name (such as "S. aureus"), an abbreviation known in the field (such as "MRSA"), or just a genus. See Examples.

      -
      Usage,
      as.mo(
      +    
      +
      as.mo(
         x,
         Becker = FALSE,
         Lancefield = FALSE,
      @@ -179,7 +180,8 @@
       
       mo_uncertainties()
       
      -mo_renamed()
      +mo_renamed()
      +

      Arguments

      @@ -189,8 +191,8 @@

      a logical to indicate whether staphylococci should be categorised into coagulase-negative staphylococci ("CoNS") and coagulase-positive staphylococci ("CoPS") instead of their own species, according to Karsten Becker et al. (1,2,3).

      This excludes Staphylococcus aureus at default, use Becker = "all" to also categorise S. aureus as "CoPS".

      Lancefield
      -

      a logical to indicate whether beta-haemolytic Streptococci should be categorised into Lancefield groups instead of their own species, according to Rebecca C. Lancefield (4). These Streptococci will be categorised in their first group, e.g. Streptococcus dysgalactiae will be group C, although officially it was also categorised into groups G and L.

      -

      This excludes Enterococci at default (who are in group D), use Lancefield = "all" to also categorise all Enterococci as group D.

      +

      a logical to indicate whether a beta-haemolytic Streptococcus should be categorised into Lancefield groups instead of their own species, according to Rebecca C. Lancefield (4). These streptococci will be categorised in their first group, e.g. Streptococcus dysgalactiae will be group C, although officially it was also categorised into groups G and L.

      +

      This excludes enterococci at default (who are in group D), use Lancefield = "all" to also categorise all enterococci as group D.

      allow_uncertain

      a number between 0 (or "none") and 3 (or "all"), or TRUE (= 2) or FALSE (= 0) to indicate whether the input should be checked for less probable results, see Details

      reference_df
      @@ -279,7 +281,7 @@

      Stable Lifecycle

      -


      +


      The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

      If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

      @@ -288,7 +290,7 @@ The lifecycle of this function is stableWith ambiguous user input in as.mo() and all the mo_* functions, the returned results are chosen based on their matching score using mo_matching_score(). This matching score \(m\), is calculated as:

      -

      mo matching score

      +

      mo matching score

      where:

      • x is the user input;

      • n is a taxonomic name (genus, species, and subspecies);

      • ln is the length of n;

      • @@ -298,12 +300,13 @@ The lifecycle of this function is stable

        The grouping into human pathogenic prevalence (\(p\)) is based on experience from several microbiological laboratories in the Netherlands in conjunction with international reports on pathogen prevalence. Group 1 (most prevalent microorganisms) consists of all microorganisms where the taxonomic class is Gammaproteobacteria or where the taxonomic genus is Enterococcus, Staphylococcus or Streptococcus. This group consequently contains all common Gram-negative bacteria, such as Pseudomonas and Legionella and all species within the order Enterobacterales. Group 2 consists of all microorganisms where the taxonomic phylum is Proteobacteria, Firmicutes, Actinobacteria or Sarcomastigophora, or where the taxonomic genus is Absidia, Acremonium, Actinotignum, Alternaria, Anaerosalibacter, Apophysomyces, Arachnia, Aspergillus, Aureobacterium, Aureobasidium, Bacteroides, Basidiobolus, Beauveria, Blastocystis, Branhamella, Calymmatobacterium, Candida, Capnocytophaga, Catabacter, Chaetomium, Chryseobacterium, Chryseomonas, Chrysonilia, Cladophialophora, Cladosporium, Conidiobolus, Cryptococcus, Curvularia, Exophiala, Exserohilum, Flavobacterium, Fonsecaea, Fusarium, Fusobacterium, Hendersonula, Hypomyces, Koserella, Lelliottia, Leptosphaeria, Leptotrichia, Malassezia, Malbranchea, Mortierella, Mucor, Mycocentrospora, Mycoplasma, Nectria, Ochroconis, Oidiodendron, Phoma, Piedraia, Pithomyces, Pityrosporum, Prevotella, Pseudallescheria, Rhizomucor, Rhizopus, Rhodotorula, Scolecobasidium, Scopulariopsis, Scytalidium, Sporobolomyces, Stachybotrys, Stomatococcus, Treponema, Trichoderma, Trichophyton, Trichosporon, Tritirachium or Ureaplasma. Group 3 consists of all other microorganisms.

        All characters in \(x\) and \(n\) are ignored that are other than A-Z, a-z, 0-9, spaces and parentheses.

        All matches are sorted descending on their matching score and for all user input values, the top match will be returned. This will lead to the effect that e.g., "E. coli" will return the microbial ID of Escherichia coli (\(m = 0.688\), a highly prevalent microorganism found in humans) and not Entamoeba coli (\(m = 0.079\), a less prevalent microorganism in humans), although the latter would alphabetically come first.

        +

        Since AMR version 1.8.1, common microorganism abbreviations are ignored in determining the matching score. These abbreviations are currently: AIEC, ATEC, BORSA, CRSM, DAEC, EAEC, EHEC, EIEC, EPEC, ETEC, GISA, MRPA, MRSA, MRSE, MSSA, MSSE, NMEC, PISP, PRSP, STEC, UPEC, VISA, VISP, VRE, VRSA and VRSP.

    Catalogue of Life

    -


    +


    This package contains the complete taxonomic tree of almost all microorganisms (~71,000 species) from the authoritative and comprehensive Catalogue of Life (CoL, http://www.catalogueoflife.org). The CoL is the most comprehensive and authoritative global index of species currently available. Nonetheless, we supplemented the CoL data with data from the List of Prokaryotic names with Standing in Nomenclature (LPSN, lpsn.dsmz.de). This supplementation is needed until the CoL+ project is finished, which we await.

    Click here for more information about the included taxa. Check which versions of the CoL and LPSN were included in this package with catalogue_of_life_version().

    @@ -378,7 +381,7 @@ This package contains the complete taxonomic tree of almost all microorganisms (
    -

    Site built with pkgdown 2.0.0.

    +

    Site built with pkgdown 2.0.2.

  • diff --git a/docs/reference/as.rsi.html b/docs/reference/as.rsi.html index 0d741c24..0fba532d 100644 --- a/docs/reference/as.rsi.html +++ b/docs/reference/as.rsi.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001
    @@ -161,7 +161,8 @@

    Interpret minimum inhibitory concentration (MIC) values and disk diffusion diameters according to EUCAST or CLSI, or clean up existing R/SI values. This transforms the input to a new class rsi, which is an ordered factor with levels S < I < R.

  • -
    Usage,
    as.rsi(x, ...)
    +    
    +
    as.rsi(x, ...)
     
     NA_rsi_
     
    @@ -204,7 +205,8 @@
       conserve_capped_values = FALSE,
       add_intrinsic_resistance = FALSE,
       reference_data = AMR::rsi_translation
    -)
    +)
    +

    Format

    @@ -305,7 +307,7 @@ A microorganism is categorised as Susceptible, Increased exposure when

    Stable Lifecycle

    -


    +


    The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

    If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

    @@ -425,7 +427,7 @@ The lifecycle of this function is stable
    -

    Site built with pkgdown 2.0.0.

    +

    Site built with pkgdown 2.0.2.

diff --git a/docs/reference/atc_online.html b/docs/reference/atc_online.html index 32fd07c5..7517a2d3 100644 --- a/docs/reference/atc_online.html +++ b/docs/reference/atc_online.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001
@@ -161,7 +161,8 @@

Gets data from the WHOCC website to determine properties of an Anatomical Therapeutic Chemical (ATC) (e.g. an antibiotic), such as the name, defined daily dose (DDD) or standard unit.

-
Usage,
atc_online_property(
+    
+
atc_online_property(
   atc_code,
   property,
   administration = "O",
@@ -173,7 +174,8 @@
 
 atc_online_ddd(atc_code, ...)
 
-atc_online_ddd_units(atc_code, ...)
+atc_online_ddd_units(atc_code, ...)
+

Source

@@ -220,7 +222,7 @@

Stable Lifecycle

-


+


The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

@@ -259,7 +261,7 @@ The lifecycle of this function is stable
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/availability.html b/docs/reference/availability.html index 5564ef63..dbe0e663 100644 --- a/docs/reference/availability.html +++ b/docs/reference/availability.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,9 @@

Easy check for data availability of all columns in a data set. This makes it easy to get an idea of which antimicrobial combinations can be used for calculation with e.g. susceptibility() and resistance().

-
Usage,
availability(tbl, width = NULL)
+
+
availability(tbl, width = NULL)
+

Arguments

@@ -182,7 +184,7 @@

Stable Lifecycle

-


+


The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

@@ -218,7 +220,7 @@ The lifecycle of this function is stable
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/bug_drug_combinations.html b/docs/reference/bug_drug_combinations.html index 61d64b28..f67f0fd6 100644 --- a/docs/reference/bug_drug_combinations.html +++ b/docs/reference/bug_drug_combinations.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,8 @@

Determine antimicrobial resistance (AMR) of all bug-drug combinations in your data set where at least 30 (default) isolates are available per species. Use format() on the result to prettify it to a publishable/printable format, see Examples.

-
Usage,
bug_drug_combinations(x, col_mo = NULL, FUN = mo_shortname, ...)
+    
+
bug_drug_combinations(x, col_mo = NULL, FUN = mo_shortname, ...)
 
 # S3 method for bug_drug_combinations
 format(
@@ -176,7 +177,8 @@
   decimal.mark = getOption("OutDec"),
   big.mark = ifelse(decimal.mark == ",", ".", ","),
   ...
-)
+)
+

Source

@@ -226,7 +228,7 @@

Stable Lifecycle

-


+


The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

@@ -267,7 +269,7 @@ The lifecycle of this function is stable
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/catalogue_of_life.html b/docs/reference/catalogue_of_life.html index e9dbe473..9b643fe4 100644 --- a/docs/reference/catalogue_of_life.html +++ b/docs/reference/catalogue_of_life.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,13 +161,12 @@

This package contains the complete taxonomic tree (last updated: 5 October 2021) of almost all microorganisms from the authoritative and comprehensive Catalogue of Life (CoL), supplemented with data from the List of Prokaryotic names with Standing in Nomenclature (LPSN).

-
Usage,NULL

Catalogue of Life

-


+


This package contains the complete taxonomic tree of almost all microorganisms (~71,000 species) from the authoritative and comprehensive Catalogue of Life (CoL, http://www.catalogueoflife.org). The CoL is the most comprehensive and authoritative global index of species currently available. Nonetheless, we supplemented the CoL data with data from the List of Prokaryotic names with Standing in Nomenclature (LPSN, lpsn.dsmz.de). This supplementation is needed until the CoL+ project is finished, which we await.

Click here for more information about the included taxa. Check which versions of the CoL and LPSN were included in this package with catalogue_of_life_version().

@@ -240,7 +239,7 @@ Function as.mo() to use the data for intel
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/catalogue_of_life_version.html b/docs/reference/catalogue_of_life_version.html index 5134e14d..7b30d783 100644 --- a/docs/reference/catalogue_of_life_version.html +++ b/docs/reference/catalogue_of_life_version.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,9 @@

This function returns information about the included data from the Catalogue of Life.

-
Usage,
catalogue_of_life_version()
+
+
catalogue_of_life_version()
+

Value

@@ -175,7 +177,7 @@

Catalogue of Life

-


+


This package contains the complete taxonomic tree of almost all microorganisms (~71,000 species) from the authoritative and comprehensive Catalogue of Life (CoL, http://www.catalogueoflife.org). The CoL is the most comprehensive and authoritative global index of species currently available. Nonetheless, we supplemented the CoL data with data from the List of Prokaryotic names with Standing in Nomenclature (LPSN, lpsn.dsmz.de). This supplementation is needed until the CoL+ project is finished, which we await.

Click here for more information about the included taxa. Check which versions of the CoL and LPSN were included in this package with catalogue_of_life_version().

@@ -202,7 +204,7 @@ This package contains the complete taxonomic tree of almost all microorganisms (
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/count.html b/docs/reference/count.html index 4909015c..de356478 100644 --- a/docs/reference/count.html +++ b/docs/reference/count.html @@ -18,7 +18,7 @@ count_resistant() should be used to count resistant isolates, count_susceptible( AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -163,7 +163,8 @@ count_resistant() should be used to count resistant isolates, count_susceptible(

count_resistant() should be used to count resistant isolates, count_susceptible() should be used to count susceptible isolates.

-
Usage,
count_resistant(..., only_all_tested = FALSE)
+    
+
count_resistant(..., only_all_tested = FALSE)
 
 count_susceptible(..., only_all_tested = FALSE)
 
@@ -187,7 +188,8 @@ count_resistant() should be used to count resistant isolates, count_susceptible(
   language = get_AMR_locale(),
   combine_SI = TRUE,
   combine_IR = FALSE
-)
+)
+

Arguments

@@ -221,7 +223,7 @@ count_resistant() should be used to count resistant isolates, count_susceptible(

Stable Lifecycle

-


+


The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

@@ -360,7 +362,7 @@ A microorganism is categorised as Susceptible, Increased exposure when
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/custom_eucast_rules.html b/docs/reference/custom_eucast_rules.html index 4dd5e628..aeb6399a 100644 --- a/docs/reference/custom_eucast_rules.html +++ b/docs/reference/custom_eucast_rules.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,9 @@

Define custom EUCAST rules for your organisation or specific analysis and use the output of this function in eucast_rules().

-
Usage,
custom_eucast_rules(...)
+
+
custom_eucast_rules(...)
+

Arguments

@@ -265,7 +267,7 @@

Stable Lifecycle

-


+


The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

@@ -303,7 +305,7 @@ The lifecycle of this function is stable
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/eucast_rules.html b/docs/reference/eucast_rules.html index 18942303..86f9ad27 100644 --- a/docs/reference/eucast_rules.html +++ b/docs/reference/eucast_rules.html @@ -18,7 +18,7 @@ To improve the interpretation of the antibiogram before EUCAST rules are applied AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -163,7 +163,8 @@ To improve the interpretation of the antibiogram before EUCAST rules are applied

To improve the interpretation of the antibiogram before EUCAST rules are applied, some non-EUCAST rules can applied at default, see Details.

-
Usage,
eucast_rules(
+    
+
eucast_rules(
   x,
   col_mo = NULL,
   info = interactive(),
@@ -177,7 +178,8 @@ To improve the interpretation of the antibiogram before EUCAST rules are applied
   ...
 )
 
-eucast_dosage(ab, administration = "iv", version_breakpoints = 11)
+eucast_dosage(ab, administration = "iv", version_breakpoints = 11)
+

Source

@@ -261,7 +263,7 @@ Leclercq et al. EUCAST expert rules in antimicrobial susceptibility test

Stable Lifecycle

-


+


The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

@@ -336,7 +338,7 @@ The lifecycle of this function is stable
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/first_isolate.html b/docs/reference/first_isolate.html index 1722c498..b425f01d 100644 --- a/docs/reference/first_isolate.html +++ b/docs/reference/first_isolate.html @@ -18,7 +18,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -163,7 +163,8 @@ ). To determine patient episodes not necessarily based on microorganisms, use is_new_episode() that also supports grouping with the dplyr package.

-
Usage,
first_isolate(
+    
+
first_isolate(
   x = NULL,
   col_date = NULL,
   col_patient_id = NULL,
@@ -194,7 +195,8 @@
   episode_days = 365,
   method = c("phenotype-based", "episode-based", "patient-based", "isolate-based"),
   ...
-)
+)
+

Source

@@ -302,7 +304,7 @@

Stable Lifecycle

-


+


The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

@@ -373,7 +375,7 @@ The lifecycle of this function is stable
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/g.test.html b/docs/reference/g.test.html index 00eab6c0..c58e29d6 100644 --- a/docs/reference/g.test.html +++ b/docs/reference/g.test.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,9 @@

g.test() performs chi-squared contingency table tests and goodness-of-fit tests, just like chisq.test() but is more reliable (1). A G-test can be used to see whether the number of observations in each category fits a theoretical expectation (called a G-test of goodness-of-fit), or to see whether the proportions of one variable are different for different values of the other variable (called a G-test of independence).

-
Usage,
g.test(x, y = NULL, p = rep(1/length(x), length(x)), rescale.p = FALSE)
+
+
g.test(x, y = NULL, p = rep(1/length(x), length(x)), rescale.p = FALSE)
+

Source

@@ -258,7 +260,7 @@

Questioning Lifecycle

-


+


The lifecycle of this function is questioning. This function might be no longer be optimal approach, or is it questionable whether this function should be in this AMR package at all.

@@ -325,7 +327,7 @@ The lifecycle of this function is questioni
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/get_episode.html b/docs/reference/get_episode.html index 2020dea5..36ec9836 100644 --- a/docs/reference/get_episode.html +++ b/docs/reference/get_episode.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,9 +161,11 @@

These functions determine which items in a vector can be considered (the start of) a new episode, based on the argument episode_days. This can be used to determine clinical episodes for any epidemiological analysis. The get_episode() function returns the index number of the episode per group, while the is_new_episode() function returns values TRUE/FALSE to indicate whether an item in a vector is the start of a new episode.

-
Usage,
get_episode(x, episode_days, ...)
+    
+
get_episode(x, episode_days, ...)
 
-is_new_episode(x, episode_days, ...)
+is_new_episode(x, episode_days, ...)
+

Arguments

@@ -189,7 +191,7 @@

Stable Lifecycle

-


+


The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

@@ -280,7 +282,7 @@ The lifecycle of this function is stable
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/ggplot_pca.html b/docs/reference/ggplot_pca.html index 2b6bf4f5..c1453b66 100644 --- a/docs/reference/ggplot_pca.html +++ b/docs/reference/ggplot_pca.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,8 @@

Produces a ggplot2 variant of a so-called biplot for PCA (principal component analysis), but is more flexible and more appealing than the base R biplot() function.

-
Usage,
ggplot_pca(
+    
+
ggplot_pca(
   x,
   choices = 1:2,
   scale = 1,
@@ -184,7 +185,8 @@
   arrows_alpha = 0.75,
   base_textsize = 10,
   ...
-)
+)
+

Source

@@ -260,7 +262,7 @@

Stable Lifecycle

-


+


The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

@@ -306,7 +308,7 @@ The lifecycle of this function is stable
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/ggplot_rsi.html b/docs/reference/ggplot_rsi.html index 6d1f376a..4e3f1246 100644 --- a/docs/reference/ggplot_rsi.html +++ b/docs/reference/ggplot_rsi.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,8 @@

Use these functions to create bar plots for AMR data analysis. All functions rely on ggplot2 functions.

-
Usage,
ggplot_rsi(
+    
+
ggplot_rsi(
   data,
   position = NULL,
   x = "antibiotic",
@@ -218,7 +219,8 @@
   combine_IR = FALSE,
   datalabels.size = 3,
   datalabels.colour = "grey15"
-)
+)
+

Arguments

@@ -291,7 +293,7 @@

Stable Lifecycle

-


+


The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

@@ -397,7 +399,7 @@ The lifecycle of this function is stable
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/guess_ab_col.html b/docs/reference/guess_ab_col.html index 56799eb4..7a8fa3e9 100644 --- a/docs/reference/guess_ab_col.html +++ b/docs/reference/guess_ab_col.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,12 +161,14 @@

This tries to find a column name in a data set based on information from the antibiotics data set. Also supports WHONET abbreviations.

-
Usage,
guess_ab_col(
+    
+
guess_ab_col(
   x = NULL,
   search_string = NULL,
   verbose = FALSE,
   only_rsi_columns = FALSE
-)
+)
+

Arguments

@@ -191,7 +193,7 @@

Stable Lifecycle

-


+


The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

@@ -245,7 +247,7 @@ The lifecycle of this function is stable
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/index.html b/docs/reference/index.html index 3e3cd38c..846ac6fb 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -416,7 +416,7 @@
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/italicise_taxonomy.html b/docs/reference/italicise_taxonomy.html index e53b4afd..1ab453c6 100644 --- a/docs/reference/italicise_taxonomy.html +++ b/docs/reference/italicise_taxonomy.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,9 +161,11 @@

According to the binomial nomenclature, the lowest four taxonomic levels (family, genus, species, subspecies) should be printed in italic. This function finds taxonomic names within strings and makes them italic.

-
Usage,
italicise_taxonomy(string, type = c("markdown", "ansi"))
+    
+
italicise_taxonomy(string, type = c("markdown", "ansi"))
 
-italicize_taxonomy(string, type = c("markdown", "ansi"))
+italicize_taxonomy(string, type = c("markdown", "ansi"))
+

Arguments

@@ -182,7 +184,7 @@

Stable Lifecycle

-


+


The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

@@ -223,7 +225,7 @@ The lifecycle of this function is stable
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/join.html b/docs/reference/join.html index 1ee36208..dda9ddb1 100644 --- a/docs/reference/join.html +++ b/docs/reference/join.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,8 @@

Join the data set microorganisms easily to an existing data set or to a character vector.

-
Usage,
inner_join_microorganisms(x, by = NULL, suffix = c("2", ""), ...)
+    
+
inner_join_microorganisms(x, by = NULL, suffix = c("2", ""), ...)
 
 left_join_microorganisms(x, by = NULL, suffix = c("2", ""), ...)
 
@@ -171,7 +172,8 @@
 
 semi_join_microorganisms(x, by = NULL, ...)
 
-anti_join_microorganisms(x, by = NULL, ...)
+anti_join_microorganisms(x, by = NULL, ...)
+

Arguments

@@ -197,7 +199,7 @@

Stable Lifecycle

-


+


The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

@@ -244,7 +246,7 @@ The lifecycle of this function is stable
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/key_antimicrobials.html b/docs/reference/key_antimicrobials.html index a1437630..70a99226 100644 --- a/docs/reference/key_antimicrobials.html +++ b/docs/reference/key_antimicrobials.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,8 @@

These functions can be used to determine first weighted isolates by considering the phenotype for isolate selection (see first_isolate()). Using a phenotype-based method to determine first isolates is more reliable than methods that disregard phenotypes.

-
Usage,
key_antimicrobials(
+    
+
key_antimicrobials(
   x = NULL,
   col_mo = NULL,
   universal = c("ampicillin", "amoxicillin/clavulanic acid", "cefuroxime",
@@ -185,7 +186,8 @@
   ignore_I = TRUE,
   points_threshold = 2,
   ...
-)
+)
+

Arguments

@@ -248,7 +250,7 @@

Stable Lifecycle

-


+


The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

@@ -310,7 +312,7 @@ The lifecycle of this function is stable
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/kurtosis.html b/docs/reference/kurtosis.html index 3c09df40..d3e8a8dc 100644 --- a/docs/reference/kurtosis.html +++ b/docs/reference/kurtosis.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,8 @@

Kurtosis is a measure of the "tailedness" of the probability distribution of a real-valued random variable. A normal distribution has a kurtosis of 3 and a excess kurtosis of 0.

-
Usage,
kurtosis(x, na.rm = FALSE, excess = FALSE)
+    
+
kurtosis(x, na.rm = FALSE, excess = FALSE)
 
 # S3 method for default
 kurtosis(x, na.rm = FALSE, excess = FALSE)
@@ -170,7 +171,8 @@
 kurtosis(x, na.rm = FALSE, excess = FALSE)
 
 # S3 method for data.frame
-kurtosis(x, na.rm = FALSE, excess = FALSE)
+kurtosis(x, na.rm = FALSE, excess = FALSE)
+

Arguments

@@ -185,7 +187,7 @@

Stable Lifecycle

-


+


The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

@@ -212,7 +214,7 @@ The lifecycle of this function is stable
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/lifecycle.html b/docs/reference/lifecycle.html index 066cc0cb..bb3fe978 100644 --- a/docs/reference/lifecycle.html +++ b/docs/reference/lifecycle.html @@ -19,7 +19,7 @@ This page contains a section for every lifecycle (with text borrowed from the af AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,31 +161,30 @@ This page contains a section for every lifecycle (with text borrowed from the af

Functions in this AMR package are categorised using the lifecycle circle of the Tidyverse as found on www.tidyverse.org/lifecycle.

-


+


This page contains a section for every lifecycle (with text borrowed from the aforementioned Tidyverse website), so they can be used in the manual pages of the functions.

-
Usage,NULL

Experimental Lifecycle

-


+


The lifecycle of this function is experimental. An experimental function is in early stages of development. The unlying code might be changing frequently. Experimental functions might be removed without deprecation, so you are generally best off waiting until a function is more mature before you use it in production code. Experimental functions are only available in development versions of this AMR package and will thus not be included in releases that are submitted to CRAN, since such functions have not yet matured enough.

Maturing Lifecycle

-


+


The lifecycle of this function is maturing. The unlying code of a maturing function has been roughed out, but finer details might still change. Since this function needs wider usage and more extensive testing, you are very welcome to suggest changes at our repository or write us an email (see section 'Contact Us').

Stable Lifecycle

-


+


The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

@@ -193,14 +192,14 @@ The lifecycle of this function is stable. In a stable function,

Retired Lifecycle

-


+


The lifecycle of this function is retired. A retired function is no longer under active development, and (if appropiate) a better alternative is available. No new arguments will be added, and only the most critical bugs will be fixed. In a future version, this function will be removed.

Questioning Lifecycle

-


+


The lifecycle of this function is questioning. This function might be no longer be optimal approach, or is it questionable whether this function should be in this AMR package at all.

@@ -216,7 +215,7 @@ The lifecycle of this function is questioning. This function mi
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/like.html b/docs/reference/like.html index 4ce26563..52d33917 100644 --- a/docs/reference/like.html +++ b/docs/reference/like.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,8 @@

Convenient wrapper around grepl() to match a pattern: x %like% pattern. It always returns a logical vector and is always case-insensitive (use x %like_case% pattern for case-sensitive matching). Also, pattern can be as long as x to compare items of each index in both vectors, or they both can have the same length to iterate over all cases.

-
Usage,
like(x, pattern, ignore.case = TRUE)
+    
+
like(x, pattern, ignore.case = TRUE)
 
 x %like% pattern
 
@@ -169,7 +170,8 @@
 
 x %like_case% pattern
 
-x %unlike_case% pattern
+x %unlike_case% pattern
+

Source

@@ -200,7 +202,7 @@

Stable Lifecycle

-


+


The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

@@ -262,7 +264,7 @@ The lifecycle of this function is stable
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/mdro.html b/docs/reference/mdro.html index 76fd1b99..006a53f2 100644 --- a/docs/reference/mdro.html +++ b/docs/reference/mdro.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,8 @@

Determine which isolates are multidrug-resistant organisms (MDRO) according to international, national and custom guidelines.

-
Usage,
mdro(
+    
+
mdro(
   x = NULL,
   guideline = "CMI2012",
   col_mo = NULL,
@@ -183,7 +184,8 @@
 
 mdr_cmi2012(x = NULL, only_rsi_columns = FALSE, ...)
 
-eucast_exceptional_phenotypes(x = NULL, only_rsi_columns = FALSE, ...)
+eucast_exceptional_phenotypes(x = NULL, only_rsi_columns = FALSE, ...)
+

Source

@@ -287,7 +289,7 @@ Ordered facto

Stable Lifecycle

-


+


The
lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

@@ -354,7 +356,7 @@ A microorganism is categorised as Susceptible, Increased exposure when
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/microorganisms.codes.html b/docs/reference/microorganisms.codes.html index d6f546eb..f0658981 100644 --- a/docs/reference/microorganisms.codes.html +++ b/docs/reference/microorganisms.codes.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,9 @@

A data set containing commonly used codes for microorganisms, from laboratory systems and WHONET. Define your own with set_mo_source(). They will all be searched when using as.mo() and consequently all the mo_* functions.

-
Usage,
microorganisms.codes
+
+
microorganisms.codes
+

Format

@@ -178,7 +180,7 @@

Catalogue of Life

-


+


This package contains the complete taxonomic tree of almost all microorganisms (~71,000 species) from the authoritative and comprehensive Catalogue of Life (CoL, http://www.catalogueoflife.org). The CoL is the most comprehensive and authoritative global index of species currently available. Nonetheless, we supplemented the CoL data with data from the List of Prokaryotic names with Standing in Nomenclature (LPSN, lpsn.dsmz.de). This supplementation is needed until the CoL+ project is finished, which we await.

Click here for more information about the included taxa. Check which versions of the CoL and LPSN were included in this package with catalogue_of_life_version().

@@ -205,7 +207,7 @@ This package contains the complete taxonomic tree of almost all microorganisms (
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/microorganisms.html b/docs/reference/microorganisms.html index 660fdd91..1fa762aa 100644 --- a/docs/reference/microorganisms.html +++ b/docs/reference/microorganisms.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,9 @@

A data set containing the full microbial taxonomy (last updated: 5 October 2021) of six kingdoms from the Catalogue of Life (CoL) and the List of Prokaryotic names with Standing in Nomenclature (LPSN). MO codes can be looked up using as.mo().

-
Usage,
microorganisms
+
+
microorganisms
+

Format

@@ -223,7 +225,7 @@

Catalogue of Life

-


+


This package contains the complete taxonomic tree of almost all microorganisms (~71,000 species) from the authoritative and comprehensive Catalogue of Life (CoL, http://www.catalogueoflife.org). The CoL is the most comprehensive and authoritative global index of species currently available. Nonetheless, we supplemented the CoL data with data from the List of Prokaryotic names with Standing in Nomenclature (LPSN, lpsn.dsmz.de). This supplementation is needed until the CoL+ project is finished, which we await.

Click here for more information about the included taxa. Check which versions of the CoL and LPSN were included in this package with catalogue_of_life_version().

@@ -256,7 +258,7 @@ This package contains the complete taxonomic tree of almost all microorganisms (
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/microorganisms.old.html b/docs/reference/microorganisms.old.html index cc5495f6..66f85586 100644 --- a/docs/reference/microorganisms.old.html +++ b/docs/reference/microorganisms.old.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,9 @@

A data set containing old (previously valid or accepted) taxonomic names according to the Catalogue of Life. This data set is used internally by as.mo().

-
Usage,
microorganisms.old
+
+
microorganisms.old
+

Format

@@ -179,7 +181,7 @@

Catalogue of Life

-


+


This package contains the complete taxonomic tree of almost all microorganisms (~71,000 species) from the authoritative and comprehensive Catalogue of Life (CoL, http://www.catalogueoflife.org). The CoL is the most comprehensive and authoritative global index of species currently available. Nonetheless, we supplemented the CoL data with data from the List of Prokaryotic names with Standing in Nomenclature (LPSN, lpsn.dsmz.de). This supplementation is needed until the CoL+ project is finished, which we await.

Click here for more information about the included taxa. Check which versions of the CoL and LPSN were included in this package with catalogue_of_life_version().

@@ -212,7 +214,7 @@ This package contains the complete taxonomic tree of almost all microorganisms (
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/mo_matching_score.html b/docs/reference/mo_matching_score.html index d792414d..f6dc2730 100644 --- a/docs/reference/mo_matching_score.html +++ b/docs/reference/mo_matching_score.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,9 @@

This algorithm is used by as.mo() and all the mo_* functions to determine the most probable match of taxonomic records based on user input.

-
Usage,
mo_matching_score(x, n)
+
+
mo_matching_score(x, n)
+

Arguments

@@ -175,7 +177,7 @@

With ambiguous user input in as.mo() and all the mo_* functions, the returned results are chosen based on their matching score using mo_matching_score(). This matching score \(m\), is calculated as:

-

mo matching score

+

mo matching score

where:

  • x is the user input;

  • n is a taxonomic name (genus, species, and subspecies);

  • ln is the length of n;

  • @@ -185,12 +187,13 @@

The grouping into human pathogenic prevalence (\(p\)) is based on experience from several microbiological laboratories in the Netherlands in conjunction with international reports on pathogen prevalence. Group 1 (most prevalent microorganisms) consists of all microorganisms where the taxonomic class is Gammaproteobacteria or where the taxonomic genus is Enterococcus, Staphylococcus or Streptococcus. This group consequently contains all common Gram-negative bacteria, such as Pseudomonas and Legionella and all species within the order Enterobacterales. Group 2 consists of all microorganisms where the taxonomic phylum is Proteobacteria, Firmicutes, Actinobacteria or Sarcomastigophora, or where the taxonomic genus is Absidia, Acremonium, Actinotignum, Alternaria, Anaerosalibacter, Apophysomyces, Arachnia, Aspergillus, Aureobacterium, Aureobasidium, Bacteroides, Basidiobolus, Beauveria, Blastocystis, Branhamella, Calymmatobacterium, Candida, Capnocytophaga, Catabacter, Chaetomium, Chryseobacterium, Chryseomonas, Chrysonilia, Cladophialophora, Cladosporium, Conidiobolus, Cryptococcus, Curvularia, Exophiala, Exserohilum, Flavobacterium, Fonsecaea, Fusarium, Fusobacterium, Hendersonula, Hypomyces, Koserella, Lelliottia, Leptosphaeria, Leptotrichia, Malassezia, Malbranchea, Mortierella, Mucor, Mycocentrospora, Mycoplasma, Nectria, Ochroconis, Oidiodendron, Phoma, Piedraia, Pithomyces, Pityrosporum, Prevotella, Pseudallescheria, Rhizomucor, Rhizopus, Rhodotorula, Scolecobasidium, Scopulariopsis, Scytalidium, Sporobolomyces, Stachybotrys, Stomatococcus, Treponema, Trichoderma, Trichophyton, Trichosporon, Tritirachium or Ureaplasma. Group 3 consists of all other microorganisms.

All characters in \(x\) and \(n\) are ignored that are other than A-Z, a-z, 0-9, spaces and parentheses.

All matches are sorted descending on their matching score and for all user input values, the top match will be returned. This will lead to the effect that e.g., "E. coli" will return the microbial ID of Escherichia coli (\(m = 0.688\), a highly prevalent microorganism found in humans) and not Entamoeba coli (\(m = 0.079\), a less prevalent microorganism in humans), although the latter would alphabetically come first.

+

Since AMR version 1.8.1, common microorganism abbreviations are ignored in determining the matching score. These abbreviations are currently: AIEC, ATEC, BORSA, CRSM, DAEC, EAEC, EHEC, EIEC, EPEC, ETEC, GISA, MRPA, MRSA, MRSE, MSSA, MSSE, NMEC, PISP, PRSP, STEC, UPEC, VISA, VISP, VRE, VRSA and VRSP.

Stable Lifecycle

-


+


The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

@@ -208,7 +211,7 @@ The lifecycle of this function is stable

Author

-

Dr. Matthijs Berends

+

Dr Matthijs Berends

@@ -232,7 +235,7 @@ The lifecycle of this function is stable
-

Site built with pkgdown 2.0.0.

+

Site built with pkgdown 2.0.2.

diff --git a/docs/reference/mo_property.html b/docs/reference/mo_property.html index 49b9f423..c70cbf1a 100644 --- a/docs/reference/mo_property.html +++ b/docs/reference/mo_property.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,8 @@

Use these functions to return a specific property of a microorganism based on the latest accepted taxonomy. All input values will be evaluated internally with as.mo(), which makes it possible to use microbial abbreviations, codes and names as input. See Examples.

-
Usage,
mo_name(x, language = get_AMR_locale(), ...)
+    
+
mo_name(x, language = get_AMR_locale(), ...)
 
 mo_fullname(x, language = get_AMR_locale(), ...)
 
@@ -217,7 +218,8 @@
 
 mo_url(x, open = FALSE, language = get_AMR_locale(), ...)
 
-mo_property(x, property = "fullname", language = get_AMR_locale(), ...)
+mo_property(x, property = "fullname", language = get_AMR_locale(), ...)
+

Arguments

@@ -260,7 +262,7 @@

Stable Lifecycle

-


+


The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

@@ -269,7 +271,7 @@ The lifecycle of this function is stableWith ambiguous user input in as.mo() and all the mo_* functions, the returned results are chosen based on their matching score using mo_matching_score(). This matching score \(m\), is calculated as:

-

mo matching score

+

mo matching score

where:

  • x is the user input;

  • n is a taxonomic name (genus, species, and subspecies);

  • ln is the length of n;

  • @@ -279,12 +281,13 @@ The lifecycle of this function is stable

    The grouping into human pathogenic prevalence (\(p\)) is based on experience from several microbiological laboratories in the Netherlands in conjunction with international reports on pathogen prevalence. Group 1 (most prevalent microorganisms) consists of all microorganisms where the taxonomic class is Gammaproteobacteria or where the taxonomic genus is Enterococcus, Staphylococcus or Streptococcus. This group consequently contains all common Gram-negative bacteria, such as Pseudomonas and Legionella and all species within the order Enterobacterales. Group 2 consists of all microorganisms where the taxonomic phylum is Proteobacteria, Firmicutes, Actinobacteria or Sarcomastigophora, or where the taxonomic genus is Absidia, Acremonium, Actinotignum, Alternaria, Anaerosalibacter, Apophysomyces, Arachnia, Aspergillus, Aureobacterium, Aureobasidium, Bacteroides, Basidiobolus, Beauveria, Blastocystis, Branhamella, Calymmatobacterium, Candida, Capnocytophaga, Catabacter, Chaetomium, Chryseobacterium, Chryseomonas, Chrysonilia, Cladophialophora, Cladosporium, Conidiobolus, Cryptococcus, Curvularia, Exophiala, Exserohilum, Flavobacterium, Fonsecaea, Fusarium, Fusobacterium, Hendersonula, Hypomyces, Koserella, Lelliottia, Leptosphaeria, Leptotrichia, Malassezia, Malbranchea, Mortierella, Mucor, Mycocentrospora, Mycoplasma, Nectria, Ochroconis, Oidiodendron, Phoma, Piedraia, Pithomyces, Pityrosporum, Prevotella, Pseudallescheria, Rhizomucor, Rhizopus, Rhodotorula, Scolecobasidium, Scopulariopsis, Scytalidium, Sporobolomyces, Stachybotrys, Stomatococcus, Treponema, Trichoderma, Trichophyton, Trichosporon, Tritirachium or Ureaplasma. Group 3 consists of all other microorganisms.

    All characters in \(x\) and \(n\) are ignored that are other than A-Z, a-z, 0-9, spaces and parentheses.

    All matches are sorted descending on their matching score and for all user input values, the top match will be returned. This will lead to the effect that e.g., "E. coli" will return the microbial ID of Escherichia coli (\(m = 0.688\), a highly prevalent microorganism found in humans) and not Entamoeba coli (\(m = 0.079\), a less prevalent microorganism in humans), although the latter would alphabetically come first.

    +

    Since AMR version 1.8.1, common microorganism abbreviations are ignored in determining the matching score. These abbreviations are currently: AIEC, ATEC, BORSA, CRSM, DAEC, EAEC, EHEC, EIEC, EPEC, ETEC, GISA, MRPA, MRSA, MRSE, MSSA, MSSE, NMEC, PISP, PRSP, STEC, UPEC, VISA, VISP, VRE, VRSA and VRSP.

    Catalogue of Life

    -


    +


    This package contains the complete taxonomic tree of almost all microorganisms (~71,000 species) from the authoritative and comprehensive Catalogue of Life (CoL, http://www.catalogueoflife.org). The CoL is the most comprehensive and authoritative global index of species currently available. Nonetheless, we supplemented the CoL data with data from the List of Prokaryotic names with Standing in Nomenclature (LPSN, lpsn.dsmz.de). This supplementation is needed until the CoL+ project is finished, which we await.

    Click here for more information about the included taxa. Check which versions of the CoL and LPSN were included in this package with catalogue_of_life_version().

    @@ -434,7 +437,7 @@ This package contains the complete taxonomic tree of almost all microorganisms (
    -

    Site built with pkgdown 2.0.0.

    +

    Site built with pkgdown 2.0.2.

    diff --git a/docs/reference/mo_source.html b/docs/reference/mo_source.html index cc11d523..3b18c79c 100644 --- a/docs/reference/mo_source.html +++ b/docs/reference/mo_source.html @@ -18,7 +18,7 @@ This is the fastest way to have your organisation (or analysis) specific codes p AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -163,12 +163,14 @@ This is the fastest way to have your organisation (or analysis) specific codes p

    This is the fastest way to have your organisation (or analysis) specific codes picked up and translated by this package, since you don't have to bother about it again after setting it up once.

    -
    Usage,
    set_mo_source(
    +    
    +
    set_mo_source(
       path,
       destination = getOption("AMR_mo_source", "~/mo_source.rds")
     )
     
    -get_mo_source(destination = getOption("AMR_mo_source", "~/mo_source.rds"))
    +get_mo_source(destination = getOption("AMR_mo_source", "~/mo_source.rds"))
    +

    Arguments

    @@ -246,7 +248,7 @@ This is the fastest way to have your organisation (or analysis) specific codes p

    Stable Lifecycle

    -


    +


    The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

    If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

    @@ -269,7 +271,7 @@ The lifecycle of this function is stable
    -

    Site built with pkgdown 2.0.0.

    +

    Site built with pkgdown 2.0.2.

    diff --git a/docs/reference/pca.html b/docs/reference/pca.html index 261b77f0..4893725c 100644 --- a/docs/reference/pca.html +++ b/docs/reference/pca.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,8 @@

    Performs a principal component analysis (PCA) based on a data set with automatic determination for afterwards plotting the groups and labels, and automatic filtering on only suitable (i.e. non-empty and numeric) variables.

    -
    Usage,
    pca(
    +    
    +
    pca(
       x,
       ...,
       retx = TRUE,
    @@ -169,7 +170,8 @@
       scale. = TRUE,
       tol = NULL,
       rank. = NULL
    -)
    +)
    +

    Arguments

    @@ -220,7 +222,7 @@

    Stable Lifecycle

    -


    +


    The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

    If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

    @@ -268,7 +270,7 @@ The lifecycle of this function is stable
    -

    Site built with pkgdown 2.0.0.

    +

    Site built with pkgdown 2.0.2.

    diff --git a/docs/reference/plot.html b/docs/reference/plot.html index b18984ff..dbdf11f9 100644 --- a/docs/reference/plot.html +++ b/docs/reference/plot.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,8 @@

    Functions to plot classes rsi, mic and disk, with support for base R and ggplot2.

    -
    Usage,
    # S3 method for mic
    +    
    +
    # S3 method for mic
     plot(
       x,
       mo = NULL,
    @@ -248,7 +249,8 @@
     )
     
     # S3 method for rsi
    -fortify(object, ...)
    +fortify(object, ...)
    +

    Arguments

    @@ -288,7 +290,7 @@ The
    +


    The
    lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

    If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

    @@ -334,7 +336,7 @@ The lifecycle of this function is stable
    -

    Site built with pkgdown 2.0.0.

    +

    Site built with pkgdown 2.0.2.

    diff --git a/docs/reference/proportion.html b/docs/reference/proportion.html index ae2cbb8d..c37dad57 100644 --- a/docs/reference/proportion.html +++ b/docs/reference/proportion.html @@ -18,7 +18,7 @@ resistance() should be used to calculate resistance, susceptibility() should be AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -163,7 +163,8 @@ resistance() should be used to calculate resistance, susceptibility() should be

    resistance() should be used to calculate resistance, susceptibility() should be used to calculate susceptibility.

    -
    Usage,
    resistance(..., minimum = 30, as_percent = FALSE, only_all_tested = FALSE)
    +    
    +
    resistance(..., minimum = 30, as_percent = FALSE, only_all_tested = FALSE)
     
     susceptibility(..., minimum = 30, as_percent = FALSE, only_all_tested = FALSE)
     
    @@ -195,7 +196,8 @@ resistance() should be used to calculate resistance, susceptibility() should be
       as_percent = FALSE,
       combine_SI = TRUE,
       combine_IR = FALSE
    -)
    +)
    +

    Source

    @@ -267,7 +269,7 @@ resistance() should be used to calculate resistance, susceptibility() should be

    Stable Lifecycle

    -


    +


    The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

    If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

    @@ -383,7 +385,7 @@ A microorganism is categorised as Susceptible, Increased exposure when
    -

    Site built with pkgdown 2.0.0.

    +

    Site built with pkgdown 2.0.2.

    diff --git a/docs/reference/random.html b/docs/reference/random.html index 86775529..ef8be26a 100644 --- a/docs/reference/random.html +++ b/docs/reference/random.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,11 +161,13 @@

    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 agent, the generated results will reflect reality as much as possible.

    -
    Usage,
    random_mic(size = NULL, mo = NULL, ab = NULL, ...)
    +    
    +
    random_mic(size = NULL, mo = NULL, ab = NULL, ...)
     
     random_disk(size = NULL, mo = NULL, ab = NULL, ...)
     
    -random_rsi(size = NULL, prob_RSI = c(0.33, 0.33, 0.33), ...)
    +random_rsi(size = NULL, prob_RSI = c(0.33, 0.33, 0.33), ...)
    +

    Arguments

    @@ -193,7 +195,7 @@

    Stable Lifecycle

    -


    +


    The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

    If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

    @@ -234,7 +236,7 @@ The lifecycle of this function is stable
    -

    Site built with pkgdown 2.0.0.

    +

    Site built with pkgdown 2.0.2.

    diff --git a/docs/reference/resistance_predict.html b/docs/reference/resistance_predict.html index e4df407a..dd484257 100644 --- a/docs/reference/resistance_predict.html +++ b/docs/reference/resistance_predict.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,8 @@

    Create a prediction model to predict antimicrobial resistance for the next years on statistical solid ground. Standard errors (SE) will be returned as columns se_min and se_max. See Examples for a real live example.

    -
    Usage,
    resistance_predict(
    +    
    +
    resistance_predict(
       x,
       col_ab,
       col_date = NULL,
    @@ -207,7 +208,8 @@
       main = paste("Resistance Prediction of", x_name),
       ribbon = TRUE,
       ...
    -)
    +)
    +

    Arguments

    @@ -263,7 +265,7 @@

    Stable Lifecycle

    -


    +


    The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

    If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

    @@ -360,7 +362,7 @@ A microorganism is categorised as Susceptible, Increased exposure when
    -

    Site built with pkgdown 2.0.0.

    +

    Site built with pkgdown 2.0.2.

    diff --git a/docs/reference/skewness.html b/docs/reference/skewness.html index 035e576c..74902e5b 100644 --- a/docs/reference/skewness.html +++ b/docs/reference/skewness.html @@ -18,7 +18,7 @@ When negative ('left-skewed'): the left tail is longer; the mass of the distribu AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -163,7 +163,8 @@ When negative ('left-skewed'): the left tail is longer; the mass of the distribu

    When negative ('left-skewed'): the left tail is longer; the mass of the distribution is concentrated on the right of a histogram. When positive ('right-skewed'): the right tail is longer; the mass of the distribution is concentrated on the left of a histogram. A normal distribution has a skewness of 0.

    -
    Usage,
    skewness(x, na.rm = FALSE)
    +    
    +
    skewness(x, na.rm = FALSE)
     
     # S3 method for default
     skewness(x, na.rm = FALSE)
    @@ -172,7 +173,8 @@ When negative ('left-skewed'): the left tail is longer; the mass of the distribu
     skewness(x, na.rm = FALSE)
     
     # S3 method for data.frame
    -skewness(x, na.rm = FALSE)
    +skewness(x, na.rm = FALSE)
    +

    Arguments

    @@ -185,7 +187,7 @@ When negative ('left-skewed'): the left tail is longer; the mass of the distribu

    Stable Lifecycle

    -


    +


    The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

    If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

    @@ -212,7 +214,7 @@ The lifecycle of this function is stable
    -

    Site built with pkgdown 2.0.0.

    +

    Site built with pkgdown 2.0.2.

    diff --git a/docs/reference/translate.html b/docs/reference/translate.html index cdddbee0..74be690a 100644 --- a/docs/reference/translate.html +++ b/docs/reference/translate.html @@ -17,7 +17,7 @@ AMR (for R) - 1.8.0 + 1.8.0.9001 @@ -161,7 +161,9 @@

    For language-dependent output of AMR functions, like mo_name(), mo_gramstain(), mo_type() and ab_name().

    -
    Usage,
    get_AMR_locale()
    +
    +
    get_AMR_locale()
    +

    Details

    @@ -181,7 +183,7 @@

    Stable Lifecycle

    -


    +


    The lifecycle of this function is stable. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided.

    If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.

    @@ -239,7 +241,7 @@ The lifecycle of this function is stable
    -

    Site built with pkgdown 2.0.0.

    +

    Site built with pkgdown 2.0.2.

    diff --git a/man/AMR-deprecated.Rd b/man/AMR-deprecated.Rd index bf88277f..4a44ffb1 100644 --- a/man/AMR-deprecated.Rd +++ b/man/AMR-deprecated.Rd @@ -8,7 +8,7 @@ These functions are so-called '\link{Deprecated}'. \strong{They will be removed } \section{Retired Lifecycle}{ -\if{html}{\figure{lifecycle_retired.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_retired.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{retired}. A retired function is no longer under active development, and (if appropiate) a better alternative is available. No new arguments will be added, and only the most critical bugs will be fixed. In a future version, this function will be removed. } diff --git a/man/WHOCC.Rd b/man/WHOCC.Rd index 9bbfe7b7..136fc9ca 100644 --- a/man/WHOCC.Rd +++ b/man/WHOCC.Rd @@ -8,7 +8,7 @@ All antimicrobial drugs and their official names, ATC codes, ATC groups and defi } \section{WHOCC}{ -\if{html}{\figure{logo_who.png}{options: height=60px style=margin-bottom:5px} \cr} +\if{html}{\figure{logo_who.png}{options: height="60" style=margin-bottom:"5"} \cr} This package contains \strong{all ~550 antibiotic, antimycotic and antiviral drugs} and their Anatomical Therapeutic Chemical (ATC) codes, ATC groups and Defined Daily Dose (DDD) from the World Health Organization Collaborating Centre for Drug Statistics Methodology (WHOCC, \url{https://www.whocc.no}) and the Pharmaceuticals Community Register of the European Commission (\url{https://ec.europa.eu/health/documents/community-register/html/reg_hum_atc.htm}). These have become the gold standard for international drug utilisation monitoring and research. diff --git a/man/ab_from_text.Rd b/man/ab_from_text.Rd index 8c3d0d34..f89b3161 100644 --- a/man/ab_from_text.Rd +++ b/man/ab_from_text.Rd @@ -59,7 +59,7 @@ With using \code{collapse}, this function will return a \link{character}:\cr } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/ab_property.Rd b/man/ab_property.Rd index b78bd1a3..4f32fefb 100644 --- a/man/ab_property.Rd +++ b/man/ab_property.Rd @@ -97,7 +97,7 @@ The function \code{\link[=set_ab_names]{set_ab_names()}} is a special column ren } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/age.Rd b/man/age.Rd index 218ef612..23b91b04 100644 --- a/man/age.Rd +++ b/man/age.Rd @@ -30,7 +30,7 @@ This function vectorises over both \code{x} and \code{reference}, meaning that e } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/age_groups.Rd b/man/age_groups.Rd index 5dece449..a772a961 100644 --- a/man/age_groups.Rd +++ b/man/age_groups.Rd @@ -35,7 +35,7 @@ The default is to split on young children (0-11), youth (12-24), young adults (2 } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/antibiotic_class_selectors.Rd b/man/antibiotic_class_selectors.Rd index d89c8d16..7dbe1ce9 100644 --- a/man/antibiotic_class_selectors.Rd +++ b/man/antibiotic_class_selectors.Rd @@ -166,7 +166,7 @@ The \code{\link[=not_intrinsic_resistant]{not_intrinsic_resistant()}} function c \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/antibiotics.Rd b/man/antibiotics.Rd index afd219f6..816060f5 100644 --- a/man/antibiotics.Rd +++ b/man/antibiotics.Rd @@ -80,7 +80,7 @@ All reference data sets (about microorganisms, antibiotics, R/SI interpretation, \section{WHOCC}{ -\if{html}{\figure{logo_who.png}{options: height=60px style=margin-bottom:5px} \cr} +\if{html}{\figure{logo_who.png}{options: height="60" style=margin-bottom:"5"} \cr} This package contains \strong{all ~550 antibiotic, antimycotic and antiviral drugs} and their Anatomical Therapeutic Chemical (ATC) codes, ATC groups and Defined Daily Dose (DDD) from the World Health Organization Collaborating Centre for Drug Statistics Methodology (WHOCC, \url{https://www.whocc.no}) and the Pharmaceuticals Community Register of the European Commission (\url{https://ec.europa.eu/health/documents/community-register/html/reg_hum_atc.htm}). These have become the gold standard for international drug utilisation monitoring and research. diff --git a/man/as.ab.Rd b/man/as.ab.Rd index bfabe588..f9bf62f3 100644 --- a/man/as.ab.Rd +++ b/man/as.ab.Rd @@ -49,7 +49,7 @@ European Commission Public Health PHARMACEUTICALS - COMMUNITY REGISTER: \url{htt \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. @@ -57,7 +57,7 @@ If the unlying code needs breaking changes, they will occur gradually. For examp \section{WHOCC}{ -\if{html}{\figure{logo_who.png}{options: height=60px style=margin-bottom:5px} \cr} +\if{html}{\figure{logo_who.png}{options: height="60" style=margin-bottom:"5"} \cr} This package contains \strong{all ~550 antibiotic, antimycotic and antiviral drugs} and their Anatomical Therapeutic Chemical (ATC) codes, ATC groups and Defined Daily Dose (DDD) from the World Health Organization Collaborating Centre for Drug Statistics Methodology (WHOCC, \url{https://www.whocc.no}) and the Pharmaceuticals Community Register of the European Commission (\url{https://ec.europa.eu/health/documents/community-register/html/reg_hum_atc.htm}). These have become the gold standard for international drug utilisation monitoring and research. diff --git a/man/as.disk.Rd b/man/as.disk.Rd index 8d5b768e..e3b107f8 100644 --- a/man/as.disk.Rd +++ b/man/as.disk.Rd @@ -35,7 +35,7 @@ Interpret disk values as RSI values with \code{\link[=as.rsi]{as.rsi()}}. It sup } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/as.mic.Rd b/man/as.mic.Rd index 3268fba0..3a68a2cc 100755 --- a/man/as.mic.Rd +++ b/man/as.mic.Rd @@ -67,7 +67,7 @@ The following \link[=groupGeneric]{generic functions} are implemented for the MI } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/as.mo.Rd b/man/as.mo.Rd index d0e4a128..175c5e20 100644 --- a/man/as.mo.Rd +++ b/man/as.mo.Rd @@ -36,9 +36,9 @@ mo_renamed() This excludes \emph{Staphylococcus aureus} at default, use \code{Becker = "all"} to also categorise \emph{S. aureus} as "CoPS".} -\item{Lancefield}{a \link{logical} to indicate whether beta-haemolytic \emph{Streptococci} should be categorised into Lancefield groups instead of their own species, according to Rebecca C. Lancefield (4). These \emph{Streptococci} will be categorised in their first group, e.g. \emph{Streptococcus dysgalactiae} will be group C, although officially it was also categorised into groups G and L. +\item{Lancefield}{a \link{logical} to indicate whether a beta-haemolytic \emph{Streptococcus} should be categorised into Lancefield groups instead of their own species, according to Rebecca C. Lancefield (4). These streptococci will be categorised in their first group, e.g. \emph{Streptococcus dysgalactiae} will be group C, although officially it was also categorised into groups G and L. -This excludes \emph{Enterococci} at default (who are in group D), use \code{Lancefield = "all"} to also categorise all \emph{Enterococci} as group D.} +This excludes enterococci at default (who are in group D), use \code{Lancefield = "all"} to also categorise all enterococci as group D.} \item{allow_uncertain}{a number between \code{0} (or \code{"none"}) and \code{3} (or \code{"all"}), or \code{TRUE} (= \code{2}) or \code{FALSE} (= \code{0}) to indicate whether the input should be checked for less probable results, see \emph{Details}} @@ -138,7 +138,7 @@ The intelligent rules consider the prevalence of microorganisms in humans groupe \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. @@ -148,7 +148,7 @@ If the unlying code needs breaking changes, they will occur gradually. For examp With ambiguous user input in \code{\link[=as.mo]{as.mo()}} and all the \code{\link[=mo_property]{mo_*}} functions, the returned results are chosen based on their matching score using \code{\link[=mo_matching_score]{mo_matching_score()}}. This matching score \eqn{m}, is calculated as: -\ifelse{latex}{\deqn{m_{(x, n)} = \frac{l_{n} - 0.5 \cdot \min \begin{cases}l_{n} \\ \textrm{lev}(x, n)\end{cases}}{l_{n} \cdot p_{n} \cdot k_{n}}}}{\ifelse{html}{\figure{mo_matching_score.png}{options: width="300px" alt="mo matching score"}}{m(x, n) = ( l_n * min(l_n, lev(x, n) ) ) / ( l_n * p_n * k_n )}} +\ifelse{latex}{\deqn{m_{(x, n)} = \frac{l_{n} - 0.5 \cdot \min \begin{cases}l_{n} \\ \textrm{lev}(x, n)\end{cases}}{l_{n} \cdot p_{n} \cdot k_{n}}}}{\ifelse{html}{\figure{mo_matching_score.png}{options: width="300" alt="mo matching score"}}{m(x, n) = ( l_n * min(l_n, lev(x, n) ) ) / ( l_n * p_n * k_n )}} where: \itemize{ @@ -165,11 +165,13 @@ The grouping into human pathogenic prevalence (\eqn{p}) is based on experience f All characters in \eqn{x} and \eqn{n} are ignored that are other than A-Z, a-z, 0-9, spaces and parentheses. All matches are sorted descending on their matching score and for all user input values, the top match will be returned. This will lead to the effect that e.g., \code{"E. coli"} will return the microbial ID of \emph{Escherichia coli} (\eqn{m = 0.688}, a highly prevalent microorganism found in humans) and not \emph{Entamoeba coli} (\eqn{m = 0.079}, a less prevalent microorganism in humans), although the latter would alphabetically come first. + +Since \code{AMR} version 1.8.1, common microorganism abbreviations are ignored in determining the matching score. These abbreviations are currently: AIEC, ATEC, BORSA, CRSM, DAEC, EAEC, EHEC, EIEC, EPEC, ETEC, GISA, MRPA, MRSA, MRSE, MSSA, MSSE, NMEC, PISP, PRSP, STEC, UPEC, VISA, VISP, VRE, VRSA and VRSP. } \section{Catalogue of Life}{ -\if{html}{\figure{logo_col.png}{options: height=40px style=margin-bottom:5px} \cr} +\if{html}{\figure{logo_col.png}{options: height="40" style=margin-bottom:"5"} \cr} This package contains the complete taxonomic tree of almost all microorganisms (~71,000 species) from the authoritative and comprehensive Catalogue of Life (CoL, \url{http://www.catalogueoflife.org}). The CoL is the most comprehensive and authoritative global index of species currently available. Nonetheless, we supplemented the CoL data with data from the List of Prokaryotic names with Standing in Nomenclature (LPSN, \href{https://lpsn.dsmz.de}{lpsn.dsmz.de}). This supplementation is needed until the \href{https://github.com/CatalogueOfLife/general}{CoL+ project} is finished, which we await. \link[=catalogue_of_life]{Click here} for more information about the included taxa. Check which versions of the CoL and LPSN were included in this package with \code{\link[=catalogue_of_life_version]{catalogue_of_life_version()}}. diff --git a/man/as.rsi.Rd b/man/as.rsi.Rd index 41125844..c240afd1 100755 --- a/man/as.rsi.Rd +++ b/man/as.rsi.Rd @@ -152,7 +152,7 @@ This AMR package honours this (new) insight. Use \code{\link[=susceptibility]{su \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/atc_online.Rd b/man/atc_online.Rd index a44912c5..0059da63 100644 --- a/man/atc_online.Rd +++ b/man/atc_online.Rd @@ -71,7 +71,7 @@ Abbreviations of return values when using \code{property = "U"} (unit): } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/availability.Rd b/man/availability.Rd index 596f797b..54c81b22 100644 --- a/man/availability.Rd +++ b/man/availability.Rd @@ -22,7 +22,7 @@ The function returns a \link{data.frame} with columns \code{"resistant"} and \co } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/bug_drug_combinations.Rd b/man/bug_drug_combinations.Rd index 028dad4b..a54d87fa 100644 --- a/man/bug_drug_combinations.Rd +++ b/man/bug_drug_combinations.Rd @@ -65,7 +65,7 @@ The function \code{\link[=format]{format()}} calculates the resistance per bug-d } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/catalogue_of_life.Rd b/man/catalogue_of_life.Rd index 7a861688..a6f1d49e 100644 --- a/man/catalogue_of_life.Rd +++ b/man/catalogue_of_life.Rd @@ -8,7 +8,7 @@ This package contains the complete taxonomic tree (last updated: 5 October 2021) } \section{Catalogue of Life}{ -\if{html}{\figure{logo_col.png}{options: height=40px style=margin-bottom:5px} \cr} +\if{html}{\figure{logo_col.png}{options: height="40" style=margin-bottom:"5"} \cr} This package contains the complete taxonomic tree of almost all microorganisms (~71,000 species) from the authoritative and comprehensive Catalogue of Life (CoL, \url{http://www.catalogueoflife.org}). The CoL is the most comprehensive and authoritative global index of species currently available. Nonetheless, we supplemented the CoL data with data from the List of Prokaryotic names with Standing in Nomenclature (LPSN, \href{https://lpsn.dsmz.de}{lpsn.dsmz.de}). This supplementation is needed until the \href{https://github.com/CatalogueOfLife/general}{CoL+ project} is finished, which we await. \link[=catalogue_of_life]{Click here} for more information about the included taxa. Check which versions of the CoL and LPSN were included in this package with \code{\link[=catalogue_of_life_version]{catalogue_of_life_version()}}. diff --git a/man/catalogue_of_life_version.Rd b/man/catalogue_of_life_version.Rd index 33b2c655..d56589f5 100644 --- a/man/catalogue_of_life_version.Rd +++ b/man/catalogue_of_life_version.Rd @@ -17,7 +17,7 @@ For LPSN, see \link{microorganisms}. } \section{Catalogue of Life}{ -\if{html}{\figure{logo_col.png}{options: height=40px style=margin-bottom:5px} \cr} +\if{html}{\figure{logo_col.png}{options: height="40" style=margin-bottom:"5"} \cr} This package contains the complete taxonomic tree of almost all microorganisms (~71,000 species) from the authoritative and comprehensive Catalogue of Life (CoL, \url{http://www.catalogueoflife.org}). The CoL is the most comprehensive and authoritative global index of species currently available. Nonetheless, we supplemented the CoL data with data from the List of Prokaryotic names with Standing in Nomenclature (LPSN, \href{https://lpsn.dsmz.de}{lpsn.dsmz.de}). This supplementation is needed until the \href{https://github.com/CatalogueOfLife/general}{CoL+ project} is finished, which we await. \link[=catalogue_of_life]{Click here} for more information about the included taxa. Check which versions of the CoL and LPSN were included in this package with \code{\link[=catalogue_of_life_version]{catalogue_of_life_version()}}. diff --git a/man/count.Rd b/man/count.Rd index c3939464..f78f243e 100644 --- a/man/count.Rd +++ b/man/count.Rd @@ -74,7 +74,7 @@ The function \code{\link[=count_df]{count_df()}} takes any variable from \code{d } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/custom_eucast_rules.Rd b/man/custom_eucast_rules.Rd index 27d779e4..1f7deb3d 100644 --- a/man/custom_eucast_rules.Rd +++ b/man/custom_eucast_rules.Rd @@ -102,7 +102,7 @@ It is possible to define antibiotic groups instead of single antibiotics for the \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/eucast_rules.Rd b/man/eucast_rules.Rd index 722781f9..466a0cf0 100644 --- a/man/eucast_rules.Rd +++ b/man/eucast_rules.Rd @@ -107,7 +107,7 @@ Amikacin (\code{AMK}, \href{https://www.whocc.no/atc_ddd_index/?code=J01GB06&sho \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/first_isolate.Rd b/man/first_isolate.Rd index 44e6828d..81359ebc 100755 --- a/man/first_isolate.Rd +++ b/man/first_isolate.Rd @@ -166,7 +166,7 @@ The default method is phenotype-based (using \code{type = "points"}) and episode } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/g.test.Rd b/man/g.test.Rd index bfac5c1d..78c9d003 100644 --- a/man/g.test.Rd +++ b/man/g.test.Rd @@ -99,7 +99,7 @@ If there are more than two categories and you want to find out which ones are si } \section{Questioning Lifecycle}{ -\if{html}{\figure{lifecycle_questioning.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_questioning.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{questioning}. This function might be no longer be optimal approach, or is it questionable whether this function should be in this \code{AMR} package at all. } diff --git a/man/get_episode.Rd b/man/get_episode.Rd index d3413d97..1f94f257 100644 --- a/man/get_episode.Rd +++ b/man/get_episode.Rd @@ -34,7 +34,7 @@ The \code{dplyr} package is not required for these functions to work, but these } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/ggplot_pca.Rd b/man/ggplot_pca.Rd index b9cce412..a8d6d80e 100644 --- a/man/ggplot_pca.Rd +++ b/man/ggplot_pca.Rd @@ -110,7 +110,7 @@ The colours for labels and points can be changed by adding another scale layer f } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/ggplot_rsi.Rd b/man/ggplot_rsi.Rd index 940ddb8b..06662676 100644 --- a/man/ggplot_rsi.Rd +++ b/man/ggplot_rsi.Rd @@ -142,7 +142,7 @@ At default, the names of antibiotics will be shown on the plots using \code{\lin } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/guess_ab_col.Rd b/man/guess_ab_col.Rd index 328465eb..6909a383 100644 --- a/man/guess_ab_col.Rd +++ b/man/guess_ab_col.Rd @@ -31,7 +31,7 @@ You can look for an antibiotic (trade) name or abbreviation and it will search \ } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/italicise_taxonomy.Rd b/man/italicise_taxonomy.Rd index 5658f009..37559098 100644 --- a/man/italicise_taxonomy.Rd +++ b/man/italicise_taxonomy.Rd @@ -26,7 +26,7 @@ This function also supports abbreviation of the genus if it is followed by a spe } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/join.Rd b/man/join.Rd index 99b447ed..df196f2e 100755 --- a/man/join.Rd +++ b/man/join.Rd @@ -45,7 +45,7 @@ If the \code{dplyr} package is installed, their join functions will be used. Oth } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/key_antimicrobials.Rd b/man/key_antimicrobials.Rd index bd8683b1..46730d9f 100644 --- a/man/key_antimicrobials.Rd +++ b/man/key_antimicrobials.Rd @@ -109,7 +109,7 @@ The default antimicrobial agents used for \strong{fungi} (set in \code{antifunga } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/kurtosis.Rd b/man/kurtosis.Rd index 1e48c076..43ecfb8f 100644 --- a/man/kurtosis.Rd +++ b/man/kurtosis.Rd @@ -27,7 +27,7 @@ Kurtosis is a measure of the "tailedness" of the probability distribution of a r } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/lifecycle.Rd b/man/lifecycle.Rd index c15ee0b9..826c235c 100644 --- a/man/lifecycle.Rd +++ b/man/lifecycle.Rd @@ -6,24 +6,24 @@ \description{ Functions in this \code{AMR} package are categorised using \href{https://lifecycle.r-lib.org/articles/stages.html}{the lifecycle circle of the Tidyverse as found on www.tidyverse.org/lifecycle}. -\if{html}{\figure{lifecycle_tidyverse.svg}{options: height=200px style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_tidyverse.svg}{options: height="200" style=margin-bottom:"5"} \cr} This page contains a section for every lifecycle (with text borrowed from the aforementioned Tidyverse website), so they can be used in the manual pages of the functions. } \section{Experimental Lifecycle}{ -\if{html}{\figure{lifecycle_experimental.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_experimental.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{experimental}. An experimental function is in early stages of development. The unlying code might be changing frequently. Experimental functions might be removed without deprecation, so you are generally best off waiting until a function is more mature before you use it in production code. Experimental functions are only available in development versions of this \code{AMR} package and will thus not be included in releases that are submitted to CRAN, since such functions have not yet matured enough. } \section{Maturing Lifecycle}{ -\if{html}{\figure{lifecycle_maturing.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_maturing.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{maturing}. The unlying code of a maturing function has been roughed out, but finer details might still change. Since this function needs wider usage and more extensive testing, you are very welcome \href{https://github.com/msberends/AMR/issues}{to suggest changes at our repository} or \link[=AMR]{write us an email (see section 'Contact Us')}. } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. @@ -31,13 +31,13 @@ If the unlying code needs breaking changes, they will occur gradually. For examp \section{Retired Lifecycle}{ -\if{html}{\figure{lifecycle_retired.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_retired.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{retired}. A retired function is no longer under active development, and (if appropiate) a better alternative is available. No new arguments will be added, and only the most critical bugs will be fixed. In a future version, this function will be removed. } \section{Questioning Lifecycle}{ -\if{html}{\figure{lifecycle_questioning.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_questioning.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{questioning}. This function might be no longer be optimal approach, or is it questionable whether this function should be in this \code{AMR} package at all. } diff --git a/man/like.Rd b/man/like.Rd index 407a647e..61899aa0 100755 --- a/man/like.Rd +++ b/man/like.Rd @@ -47,7 +47,7 @@ Using RStudio? The \verb{\%like\%}/\verb{\%unlike\%} functions can also be direc } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/mdro.Rd b/man/mdro.Rd index 540b9d3c..fb022d33 100644 --- a/man/mdro.Rd +++ b/man/mdro.Rd @@ -157,7 +157,7 @@ The rules set (the \code{custom} object in this case) could be exported to a sha \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/microorganisms.Rd b/man/microorganisms.Rd index e3b82800..552da5ee 100755 --- a/man/microorganisms.Rd +++ b/man/microorganisms.Rd @@ -84,7 +84,7 @@ As of February 2020, the regularly augmented LPSN database at DSMZ is the basis \section{Catalogue of Life}{ -\if{html}{\figure{logo_col.png}{options: height=40px style=margin-bottom:5px} \cr} +\if{html}{\figure{logo_col.png}{options: height="40" style=margin-bottom:"5"} \cr} This package contains the complete taxonomic tree of almost all microorganisms (~71,000 species) from the authoritative and comprehensive Catalogue of Life (CoL, \url{http://www.catalogueoflife.org}). The CoL is the most comprehensive and authoritative global index of species currently available. Nonetheless, we supplemented the CoL data with data from the List of Prokaryotic names with Standing in Nomenclature (LPSN, \href{https://lpsn.dsmz.de}{lpsn.dsmz.de}). This supplementation is needed until the \href{https://github.com/CatalogueOfLife/general}{CoL+ project} is finished, which we await. \link[=catalogue_of_life]{Click here} for more information about the included taxa. Check which versions of the CoL and LPSN were included in this package with \code{\link[=catalogue_of_life_version]{catalogue_of_life_version()}}. diff --git a/man/microorganisms.codes.Rd b/man/microorganisms.codes.Rd index 54169675..85341cf3 100644 --- a/man/microorganisms.codes.Rd +++ b/man/microorganisms.codes.Rd @@ -24,7 +24,7 @@ All reference data sets (about microorganisms, antibiotics, R/SI interpretation, \section{Catalogue of Life}{ -\if{html}{\figure{logo_col.png}{options: height=40px style=margin-bottom:5px} \cr} +\if{html}{\figure{logo_col.png}{options: height="40" style=margin-bottom:"5"} \cr} This package contains the complete taxonomic tree of almost all microorganisms (~71,000 species) from the authoritative and comprehensive Catalogue of Life (CoL, \url{http://www.catalogueoflife.org}). The CoL is the most comprehensive and authoritative global index of species currently available. Nonetheless, we supplemented the CoL data with data from the List of Prokaryotic names with Standing in Nomenclature (LPSN, \href{https://lpsn.dsmz.de}{lpsn.dsmz.de}). This supplementation is needed until the \href{https://github.com/CatalogueOfLife/general}{CoL+ project} is finished, which we await. \link[=catalogue_of_life]{Click here} for more information about the included taxa. Check which versions of the CoL and LPSN were included in this package with \code{\link[=catalogue_of_life_version]{catalogue_of_life_version()}}. diff --git a/man/microorganisms.old.Rd b/man/microorganisms.old.Rd index 58ed4ca4..f5e99168 100644 --- a/man/microorganisms.old.Rd +++ b/man/microorganisms.old.Rd @@ -26,7 +26,7 @@ A data set containing old (previously valid or accepted) taxonomic names accordi } \section{Catalogue of Life}{ -\if{html}{\figure{logo_col.png}{options: height=40px style=margin-bottom:5px} \cr} +\if{html}{\figure{logo_col.png}{options: height="40" style=margin-bottom:"5"} \cr} This package contains the complete taxonomic tree of almost all microorganisms (~71,000 species) from the authoritative and comprehensive Catalogue of Life (CoL, \url{http://www.catalogueoflife.org}). The CoL is the most comprehensive and authoritative global index of species currently available. Nonetheless, we supplemented the CoL data with data from the List of Prokaryotic names with Standing in Nomenclature (LPSN, \href{https://lpsn.dsmz.de}{lpsn.dsmz.de}). This supplementation is needed until the \href{https://github.com/CatalogueOfLife/general}{CoL+ project} is finished, which we await. \link[=catalogue_of_life]{Click here} for more information about the included taxa. Check which versions of the CoL and LPSN were included in this package with \code{\link[=catalogue_of_life_version]{catalogue_of_life_version()}}. diff --git a/man/mo_matching_score.Rd b/man/mo_matching_score.Rd index 3cc51140..e9ea3616 100644 --- a/man/mo_matching_score.Rd +++ b/man/mo_matching_score.Rd @@ -18,7 +18,7 @@ This algorithm is used by \code{\link[=as.mo]{as.mo()}} and all the \code{\link[ With ambiguous user input in \code{\link[=as.mo]{as.mo()}} and all the \code{\link[=mo_property]{mo_*}} functions, the returned results are chosen based on their matching score using \code{\link[=mo_matching_score]{mo_matching_score()}}. This matching score \eqn{m}, is calculated as: -\ifelse{latex}{\deqn{m_{(x, n)} = \frac{l_{n} - 0.5 \cdot \min \begin{cases}l_{n} \\ \textrm{lev}(x, n)\end{cases}}{l_{n} \cdot p_{n} \cdot k_{n}}}}{\ifelse{html}{\figure{mo_matching_score.png}{options: width="300px" alt="mo matching score"}}{m(x, n) = ( l_n * min(l_n, lev(x, n) ) ) / ( l_n * p_n * k_n )}} +\ifelse{latex}{\deqn{m_{(x, n)} = \frac{l_{n} - 0.5 \cdot \min \begin{cases}l_{n} \\ \textrm{lev}(x, n)\end{cases}}{l_{n} \cdot p_{n} \cdot k_{n}}}}{\ifelse{html}{\figure{mo_matching_score.png}{options: width="300" alt="mo matching score"}}{m(x, n) = ( l_n * min(l_n, lev(x, n) ) ) / ( l_n * p_n * k_n )}} where: \itemize{ @@ -35,11 +35,13 @@ The grouping into human pathogenic prevalence (\eqn{p}) is based on experience f All characters in \eqn{x} and \eqn{n} are ignored that are other than A-Z, a-z, 0-9, spaces and parentheses. All matches are sorted descending on their matching score and for all user input values, the top match will be returned. This will lead to the effect that e.g., \code{"E. coli"} will return the microbial ID of \emph{Escherichia coli} (\eqn{m = 0.688}, a highly prevalent microorganism found in humans) and not \emph{Entamoeba coli} (\eqn{m = 0.079}, a less prevalent microorganism in humans), although the latter would alphabetically come first. + +Since \code{AMR} version 1.8.1, common microorganism abbreviations are ignored in determining the matching score. These abbreviations are currently: AIEC, ATEC, BORSA, CRSM, DAEC, EAEC, EHEC, EIEC, EPEC, ETEC, GISA, MRPA, MRSA, MRSE, MSSA, MSSE, NMEC, PISP, PRSP, STEC, UPEC, VISA, VISP, VRE, VRSA and VRSP. } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. @@ -63,5 +65,5 @@ mo_matching_score(x = "E. coli", n = c("Escherichia coli", "Entamoeba coli")) } \author{ -Dr. Matthijs Berends +Dr Matthijs Berends } diff --git a/man/mo_property.Rd b/man/mo_property.Rd index 188e14f0..95a214ef 100644 --- a/man/mo_property.Rd +++ b/man/mo_property.Rd @@ -141,7 +141,7 @@ SNOMED codes - \code{\link[=mo_snomed]{mo_snomed()}} - are from the US Edition o } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. @@ -151,7 +151,7 @@ If the unlying code needs breaking changes, they will occur gradually. For examp With ambiguous user input in \code{\link[=as.mo]{as.mo()}} and all the \code{\link[=mo_property]{mo_*}} functions, the returned results are chosen based on their matching score using \code{\link[=mo_matching_score]{mo_matching_score()}}. This matching score \eqn{m}, is calculated as: -\ifelse{latex}{\deqn{m_{(x, n)} = \frac{l_{n} - 0.5 \cdot \min \begin{cases}l_{n} \\ \textrm{lev}(x, n)\end{cases}}{l_{n} \cdot p_{n} \cdot k_{n}}}}{\ifelse{html}{\figure{mo_matching_score.png}{options: width="300px" alt="mo matching score"}}{m(x, n) = ( l_n * min(l_n, lev(x, n) ) ) / ( l_n * p_n * k_n )}} +\ifelse{latex}{\deqn{m_{(x, n)} = \frac{l_{n} - 0.5 \cdot \min \begin{cases}l_{n} \\ \textrm{lev}(x, n)\end{cases}}{l_{n} \cdot p_{n} \cdot k_{n}}}}{\ifelse{html}{\figure{mo_matching_score.png}{options: width="300" alt="mo matching score"}}{m(x, n) = ( l_n * min(l_n, lev(x, n) ) ) / ( l_n * p_n * k_n )}} where: \itemize{ @@ -168,11 +168,13 @@ The grouping into human pathogenic prevalence (\eqn{p}) is based on experience f All characters in \eqn{x} and \eqn{n} are ignored that are other than A-Z, a-z, 0-9, spaces and parentheses. All matches are sorted descending on their matching score and for all user input values, the top match will be returned. This will lead to the effect that e.g., \code{"E. coli"} will return the microbial ID of \emph{Escherichia coli} (\eqn{m = 0.688}, a highly prevalent microorganism found in humans) and not \emph{Entamoeba coli} (\eqn{m = 0.079}, a less prevalent microorganism in humans), although the latter would alphabetically come first. + +Since \code{AMR} version 1.8.1, common microorganism abbreviations are ignored in determining the matching score. These abbreviations are currently: AIEC, ATEC, BORSA, CRSM, DAEC, EAEC, EHEC, EIEC, EPEC, ETEC, GISA, MRPA, MRSA, MRSE, MSSA, MSSE, NMEC, PISP, PRSP, STEC, UPEC, VISA, VISP, VRE, VRSA and VRSP. } \section{Catalogue of Life}{ -\if{html}{\figure{logo_col.png}{options: height=40px style=margin-bottom:5px} \cr} +\if{html}{\figure{logo_col.png}{options: height="40" style=margin-bottom:"5"} \cr} This package contains the complete taxonomic tree of almost all microorganisms (~71,000 species) from the authoritative and comprehensive Catalogue of Life (CoL, \url{http://www.catalogueoflife.org}). The CoL is the most comprehensive and authoritative global index of species currently available. Nonetheless, we supplemented the CoL data with data from the List of Prokaryotic names with Standing in Nomenclature (LPSN, \href{https://lpsn.dsmz.de}{lpsn.dsmz.de}). This supplementation is needed until the \href{https://github.com/CatalogueOfLife/general}{CoL+ project} is finished, which we await. \link[=catalogue_of_life]{Click here} for more information about the included taxa. Check which versions of the CoL and LPSN were included in this package with \code{\link[=catalogue_of_life_version]{catalogue_of_life_version()}}. diff --git a/man/mo_source.Rd b/man/mo_source.Rd index 86ff68e5..902f2acc 100644 --- a/man/mo_source.Rd +++ b/man/mo_source.Rd @@ -97,7 +97,7 @@ If the original file (in the previous case an Excel file) is moved or deleted, t \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/pca.Rd b/man/pca.Rd index cad23bd0..7f67dced 100644 --- a/man/pca.Rd +++ b/man/pca.Rd @@ -61,7 +61,7 @@ The result of the \code{\link[=pca]{pca()}} function is a \link{prcomp} object, } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/plot.Rd b/man/plot.Rd index 1ad1bcc0..b2605ac6 100644 --- a/man/plot.Rd +++ b/man/plot.Rd @@ -131,7 +131,7 @@ Simply using \code{"CLSI"} or \code{"EUCAST"} as input will automatically select } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/proportion.Rd b/man/proportion.Rd index 62b3ce1c..711beef3 100644 --- a/man/proportion.Rd +++ b/man/proportion.Rd @@ -120,7 +120,7 @@ Using \code{only_all_tested} has no impact when only using one antibiotic as inp \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/random.Rd b/man/random.Rd index 6b58495e..ad7d9d33 100644 --- a/man/random.Rd +++ b/man/random.Rd @@ -37,7 +37,7 @@ Generated values are based on the latest EUCAST guideline implemented in the \li } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/resistance_predict.Rd b/man/resistance_predict.Rd index 36993801..5b724b3a 100644 --- a/man/resistance_predict.Rd +++ b/man/resistance_predict.Rd @@ -112,7 +112,7 @@ Valid options for the statistical model (argument \code{model}) are: } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/skewness.Rd b/man/skewness.Rd index d8c441b8..1664460d 100644 --- a/man/skewness.Rd +++ b/man/skewness.Rd @@ -27,7 +27,7 @@ When negative ('left-skewed'): the left tail is longer; the mass of the distribu } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error. diff --git a/man/translate.Rd b/man/translate.Rd index 4048cd1b..4702ba28 100644 --- a/man/translate.Rd +++ b/man/translate.Rd @@ -29,7 +29,7 @@ Thus, if the R option \code{AMR_locale} is set, the system variables \code{LANGU } \section{Stable Lifecycle}{ -\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:5px} \cr} +\if{html}{\figure{lifecycle_stable.svg}{options: style=margin-bottom:"5"} \cr} The \link[=lifecycle]{lifecycle} of this function is \strong{stable}. In a stable function, major changes are unlikely. This means that the unlying code will generally evolve by adding new arguments; removing arguments or changing the meaning of existing arguments will be avoided. If the unlying code needs breaking changes, they will occur gradually. For example, an argument will be deprecated and first continue to work, but will emit an message informing you of the change. Next, typically after at least one newly released version on CRAN, the message will be transformed to an error.