addFixedWidth {tofsims} | R Documentation |
This method will update current upper/lower width for all peaks
addFixedWidth(object, lowerWidth, upperWidth) ## S4 method for signature 'PeakList,numeric,numeric' addFixedWidth(object, lowerWidth, upperWidth)
object |
PeakList object |
lowerWidth |
numeric |
upperWidth |
numeric |
object PeakList with updated/new peak widths
library(tofsimsData) data(tofsimsData) testSpectra<-reduceSpectrumResolution(object = testSpectra, everyN = 4, mode = 'keep') testSpectra<-smootherSpline(testSpectra, stepsize = 10, spar = 0.3) testSpectra<-smootherGolay(testSpectra, p = 3, n = 5) testSpectra<-peakPick(testSpectra, span = 100) testSpectra<-addFixedWidth(testSpectra, 0.2, 0.2) plot(testSpectra, , mzRange=c(38.5,40.5), type = 'l')