powered by
Method smootherGolay for MassSpectra class
smootherGolay(object, p = 3, n = 5, ...)## S3 method for class 'MassSpectra': smootherGolay(object, p = 3, n = 5, ...)
## S3 method for class 'MassSpectra': smootherGolay(object, p = 3, n = 5, ...)
object of class MassSpectra with smoothed TIC
library(tofsimsData) data(tofsimsData) testSpectraSmooth <- smootherGolay(testSpectra, p = 3, n = 9) overlayPlot(list(testSpectra, testSpectraSmooth), mzRange = c(38.5, 40.5), type = 'l')
Run the code above in your browser using DataLab