recalibrate: Generic method recalibrate

Description Usage Arguments Value Examples

Description

Generic method recalibrate

method recalibrate

Usage

1
2
3
4
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

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

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