Learn R Programming

tofsims (version 1.0.2)

smootherSpline: generic smootherSpline

Description

generic smootherSpline

method smootherSpline for TIC

Usage

smootherSpline(object, stepsize = 5, spar = 0.3, ...)

## S3 method for class 'MassSpectra': smootherSpline(object, stepsize = 5, spar = 0.3, ...)

Arguments

object
MassSpectra
stepsize
numeric arg for spline smoother
spar
numeric arg for spline smoother
...
additional args

Value

  • object of class MassSpectra with updated mass spectra

    object of class MassSpectra

Examples

Run this code
library(tofsimsData) 
data(tofsimsData)
testSpectraSmooth <- smootherSpline(testSpectra)
overlayPlot(list(testSpectra, testSpectraSmooth), mzRange = c(38.5, 40.5), type = 'l')

Run the code above in your browser using DataLab