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


Search within the tofsims package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.