Learn R Programming

romic (version 1.3.3)

update_sample_factors: Update Sample Factors

Description

Update sample metadata to order categorical variables based on a specified factor order.

Usage

update_sample_factors(tomic, factor_levels)

Value

a tomic object with updated sample metadata

Arguments

tomic

Either a tidy_omic or triple_omic object

factor_levels

a character vector specifying the ordering of factor levels.

Examples

Run this code
update_sample_factors(
  brauer_2008_tidy, list(nutrient = c("G", "N", "P", "S", "L", "U"))
)

Run the code above in your browser using DataLab