This function returns a formulaeFilt object for use with applyFilt

formula_filter(ftmsObj)

Arguments

ftmsObj

an object of the class 'peakData' or 'compoundData'

Value

Object of class 'formulaFilt' that contains the molecule identifier and whether a formula could be assigned or not. This can be used in conjunction with applyFilt to filter peaks without a formula assigned.

Author

Lisa Bramer

Examples

data("examplePeakData")
filter_obj <- formula_filter(examplePeakData)
peakDataFiltered <- applyFilt(filter_obj, examplePeakData, remove="NoFormula")