mass_filter: Filter Data Based on Mass Range

View source: R/mass_filter.R

mass_filterR Documentation

Filter Data Based on Mass Range

Description

Subset data based on specified range of mass values

Usage

mass_filter(ftmsObj)

Arguments

ftmsObj

an object of class 'peakData' or 'compoundData', typically a result of as.peakData or mapPeaksToCompounds.

Details

Use this in conjunction with applyFilt to retain peaks which have a mass between min_mass and max_mass (inclusive) and filter all other peaks from the data.

Value

an object of class 'massFilt'

Author(s)

Lisa Bramer

Examples

data("examplePeakData")
filter_obj <- mass_filter(examplePeakData)
peakDataFiltered <- applyFilt(filter_obj, examplePeakData, min_mass=200, max_mass=900)

EMSL-Computing/fticRanalysis documentation built on March 23, 2024, 8:36 p.m.