
calibration
, slot of MassSpectra
class objectscalibration(object)calibration(object) <- value
## S3 method for class 'MassSpectra':
calibration(object)
## S3 method for class 'MassSpectra':
calibration(object) <- value
MassSpectra
other slots mz
analysis
analysisName
instrument
calibPoints
nz
library(tofsimsData)
data(tofsimsData)
## access calibration slot
calibration(testSpectra)
## replacing the values of the 'calibration' slot is
## possible but it makes at the moment no sense as it
## doesn't change the actual mass calibration. The
## 'calibration' slot is just used to store the values
## while 'recalibration' uses the values from
## 'calibPoints' slot.
calibration(testSpectra) <- data.frame(intercept = 21420, slope = 20480)
calibration(testSpectra)
Run the code above in your browser using DataLab