join_pData: Join new columns to pheno data

join_pDataR Documentation

Join new columns to pheno data

Description

Join a new data frame of information to pheno data of a MetaboSet object.

Usage

join_pData(object, dframe)

Arguments

object

a MetaboSet object

dframe

a data frame with the new information

Value

a MetaboSet object with the new information added to pData(object)

Examples

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))


antonvsdata/notame documentation built on Sept. 14, 2024, 11:09 p.m.