addFixedWidth: Generic method to add/update peak width

Description Usage Arguments Value Examples

Description

This method will update current upper/lower width for all peaks

Usage

1
2
3
4
addFixedWidth(object, lowerWidth, upperWidth)

## S4 method for signature 'PeakList,numeric,numeric'
addFixedWidth(object, lowerWidth, upperWidth)

Arguments

object

PeakList object

lowerWidth

numeric

upperWidth

numeric

Value

object PeakList with updated/new peak widths

Examples

1
2
3
4
5
6
7
8
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')

tofsims documentation built on Nov. 8, 2020, 5:10 p.m.