powered by
Update sample metadata to order categorical variables based on a specified factor order.
update_sample_factors(tomic, factor_levels)
a tomic object with updated sample metadata
Either a tidy_omic or triple_omic object
tidy_omic
triple_omic
a character vector specifying the ordering of factor levels.
update_sample_factors( brauer_2008_tidy, list(nutrient = c("G", "N", "P", "S", "L", "U")) )
Run the code above in your browser using DataLab