join_fData: Join new columns to feature data

join_fDataR Documentation

Join new columns to feature data

Description

Join a new data frame of information to feature data of a MetaboSet object. The data frame needs to have a column "Feature_ID". This function is usually used internally by some of the functions in the package, but can be useful.

Usage

join_fData(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 fData(object)

Examples

new_info <- data.frame(
  Feature_ID = featureNames(example_set),
  Feature_number = seq_len(nrow(example_set))
)
with_new_info <- join_fData(example_set, new_info)
colnames(fData(with_new_info))


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