Generic method recalibrate

Share:

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')

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.