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().

availability(tbl, width = NULL)



a data.frame or list


number of characters to present the visual availability, defaults to filling the width of the console


data.frame with column names of tbl as row names


The function returns a data.frame with columns "resistant" and "visual_resistance". The values in that columns are calculated with resistance().

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, a 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.

Read more on Our Website!

On our website https://msberends.github.io/AMR/ you can find a comprehensive tutorial about how to conduct AMR data analysis, the complete documentation of all functions and an example analysis using WHONET data.


# \donttest{
if (require("dplyr")) {
  example_isolates %>%
    filter(mo == as.mo("E. coli")) %>%
    select_if(is.rsi) %>%
# }