fill_dilution_levels: Fill MIC dilution levels

View source: R/meta_data.R

fill_dilution_levelsR Documentation

Fill MIC dilution levels

Description

Fill MIC dilution levels

Usage

fill_dilution_levels(x, cap_upper = TRUE, cap_lower = TRUE, as.mic = TRUE)

Arguments

x

MIC vector

cap_upper

If True, will the top level will be the highest MIC dilution in x

cap_lower

If True, will the bottom level will be the lowest MIC dilution in x

as.mic

By default, returns an ordered factor. Set as.mic = TRUE to return as AMR::mic

Value

ordered factor (or AMR::mic if as.mic = TRUE)

Examples

# 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)

MIC documentation built on April 12, 2025, 2:26 a.m.