smootherSpline {tofsims} | R Documentation

## generic smootherSpline

### Description

generic smootherSpline

method smootherSpline for TIC

### Usage

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

    ## S4 method for signature '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

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

[Package tofsims version 1.16.0 Index]