Check Availability of Columns
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)
tbl |
a data.frame or list |
width |
number of characters to present the visual availability, defaults to filling the width of the console |
The function returns a data.frame with columns "resistant"
and "visual_resistance"
. The values in that columns are calculated with resistance()
.
data.frame with column names of tbl
as row names
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.
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. As we would like to better understand the backgrounds and needs of our users, please participate in our survey!
availability(example_isolates) if (require("dplyr")) { example_isolates %>% filter(mo == as.mo("E. coli")) %>% select_if(is.rsi) %>% availability() }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.