join_fData: Join new columns to feature data

Description Usage Arguments Value Examples

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

1
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

1
2
3
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/amp documentation built on Jan. 8, 2020, 3:15 a.m.