Description Usage Arguments Value Examples
This function takes a tidy format. Coerces vectors to correct type. Only include covariates that have 2 or more levels.
1 | clean_covariates(md, factors, continuous)
|
md |
A data frame with sample identifiers in a column and relevant experimental covariates. |
factors |
A vector of factor variables. |
continuous |
A vector of continuous variables. |
A data frame with coerced variables.
1 2 3 4 5 6 | data <- tibble::tribble(
~individualID, ~diagnosis, ~RIN,
"ind5436", "control", 7.7,
"ind234", "disease", 7.1
)
clean_covariates(data, factors = c("individualID", "diagnosis"), continuous = c("RIN"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.