update_tidy_omic | R Documentation |
Update a Tidy 'Omics data and schema to reflect newly added fields.
update_tidy_omic(tidy_omic, updated_tidy_data, new_variable_tables = c())
tidy_omic |
an object of class tidy_omic produced by
|
updated_tidy_data |
a tibble of data to use to update |
new_variable_tables |
a named character vector of newly added variables
in |
a tidy_omic
object with an updated schema and/or data.
library(dplyr)
tidy_omic <- brauer_2008_tidy
updated_tidy_data <- tidy_omic$data %>%
mutate(new_sample_var = "foo") %>%
select(-DR)
new_variable_tables <- c("new_sample_var" = "samples")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.