powered by
Fill MIC dilution levels
fill_dilution_levels(x, cap_upper = TRUE, cap_lower = TRUE, as.mic = TRUE)
ordered factor (or AMR::mic if as.mic = TRUE)
MIC vector
If True, will the top level will be the highest MIC dilution in x
If True, will the bottom level will be the lowest MIC dilution in x
By default, returns an ordered factor. Set as.mic = TRUE to return as AMR::mic
# use in combination with droplevels to clean up levels: x <- AMR::as.mic(c("<0.25", "8", "64", ">64")) x <- droplevels(x) fill_dilution_levels(x)
Run the code above in your browser using DataLab