Description Usage Arguments Value See Also Examples
calibration
, slot of MassSpectra
class objects
Generic setter for slot calibration<-
1 2 3 4 5 6 7 8 9 | calibration(object)
calibration(object) <- value
## S4 method for signature 'MassSpectra'
calibration(object)
## S4 replacement method for signature 'MassSpectra'
calibration(object) <- value
|
object |
object of class MassSpectra |
value |
data.frame with replacement values for calibration slot |
content of calibration slot
object MassSpectra
other slots mz
analysis
analysisName
instrument
calibPoints
nz
1 2 3 4 5 6 7 8 9 10 11 12 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.