smootherGolay: generic method smootherGolay

Description Usage Arguments Value Examples

Description

generic method smootherGolay

Method smootherGolay for MassSpectra class

Usage

1
2
3
4
smootherGolay(object, p = 3, n = 5, ...)

## S4 method for signature 'MassSpectra'
smootherGolay(object, p = 3, n = 5, ...)

Arguments

object

object of class MassSpectra

p

numeric parameter for savitzky-golay filter

n

numeric parameter for savitzky-golay filter

...

additional args

Value

object of class MassSpectra with updated mass spectra

object of class MassSpectra with smoothed TIC

Examples

1
2
3
4
library(tofsimsData)
data(tofsimsData)
testSpectraSmooth <- smootherGolay(testSpectra, p = 3, n = 9)
overlayPlot(list(testSpectra, testSpectraSmooth), mzRange = c(38.5, 40.5), type = 'l')


Search within the tofsims package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.