R/get_biomarker_levels.R
get_levels.Rd
Extract levels from a set of variable names
get_levels(data, varnames = names(data), keep_labels = TRUE)
a data.frame
a character specifying which columns of data to analyze
data
logical whether to preserve variable labels from data in output
a list of character vectors containing the levels of the columns in data specified by varnames
varnames
get_levels(iris, "Species")