Add sample metadata
addSamples(study, samples, reset = FALSE)
Returns the original onStudy
object passed to the argument
study
, but modified to include the newly added data
An OmicNavigator study created with createStudy
The metadata variables that describe the samples in the study. The input object is a named list of data frames (one per model). The first column of each data frame is used as the sampleID, so it must contain unique values. To share a data frame across multiple models, use the modelID "default".
Reset the data prior to adding the new data (default:
FALSE
). The default is to add to or modify any previously added data
(if it exists). Setting reset = TRUE
enables you to remove existing
data you no longer want to include in the study.