availability.Rd
Easy check for availability of columns in a data set. This makes it easy to get an idea of which antibiotic combination can be used for calculation with e.g. portion_IR
.
availability(tbl)
tbl | a |
---|
data.frame
with column names of tbl
as row names and columns: percent_IR
, count
, percent
, visual_availability
.
# NOT RUN { availability(septic_patients) library(dplyr) septic_patients %>% availability() septic_patients %>% select_if(is.rsi) %>% availability() septic_patients %>% filter(mo == as.mo("E. coli")) %>% select_if(is.rsi) %>% availability() # }