update_sample_factors | R Documentation |
Update sample metadata to order categorical variables based on a specified factor order.
update_sample_factors(tomic, factor_levels)
tomic |
Either a |
factor_levels |
a character vector specifying the ordering of factor levels. |
a tomic object with updated sample metadata
update_sample_factors(
brauer_2008_tidy, list(nutrient = c("G", "N", "P", "S", "L", "U"))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.