recalibrate {tofsims} | R Documentation

## Generic method recalibrate

### Description

Generic method recalibrate

method recalibrate

### Usage

    recalibrate(object)

    ## S4 method for signature 'MassSpectra'
    recalibrate(object)

### Arguments

`object` | object of class MassSpctra

### Value

object of class MassSpectra, recalibrated using the data from slots calibPoints

object of class MassSpectra, recalibrated mass values

### Examples

    library(tofsimsData)
    data(tofsimsData)
    testSpectra <- calibPointNew(testSpectra, mz = 15, value = 15.01551)
    testSpectra <- calibPointNew(testSpectra, mz = 181, value = 181.0228)
    calibPoints(testSpectra)
    par(mfcol=c(1,2))
    plot(testSpectra,mzRange=c(38.5,40.5),type='l')
    testSpectra <- recalibrate(testSpectra)
    plot(testSpectra, mzRange=c(38.5,40.5), type='l')

[Package tofsims version 1.18.0 Index]