join_pData | R Documentation |
Join a new data frame of information to pheno data of a MetaboSet object.
join_pData(object, dframe)
object |
a MetaboSet object |
dframe |
a data frame with the new information |
a MetaboSet object with the new information added to pData(object)
new_info <- data.frame(
Sample_ID = sampleNames(example_set),
BMI = runif(ncol(example_set), 22, 26)
)
with_new_info <- join_pData(example_set, new_info)
colnames(pData(with_new_info))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.