| availability | R Documentation |
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 - the default is 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
availability(example_isolates)
if (require("dplyr")) {
example_isolates %>%
filter(mo == as.mo("Escherichia coli")) %>%
select_if(is.sir) %>%
availability()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.