calibPoints {tofsims} | R Documentation

## `calibPoints`, slot of `MassSpectra` class objects

### Description

`calibPoints`, slot of `MassSpectra` class objects

### Usage

    calibPoints(object)

    calibPoints(object) <- value

    ## S4 method for signature 'MassSpectra'
    calibPoints(object)

    ## S4 replacement method for signature 'MassSpectra'
    calibPoints(object) <- value

### Arguments

`object` | object of class MassSpectra
`value` | data.frame replacement values for calibPoints slot

### Value

contents of slot calibPoints

### See Also

object `MassSpectra` other slots `mz` `analysis` `analysisName` `instrument` `nz` `calibration`

### Examples

    library(tofsimsData)
    data(tofsimsData)
    testSpectra<-calibPointNew(testSpectra, mz = 15, value = 15.0232)
    testSpectra<-calibPointNew(testSpectra, mz = 181, value = 181.0569)
    ## access 'calibPoint' slot of 'MassSpectra' object
    calibPoints(testSpectra)
    ## replacing values in the 'calibPoint' slot
    calibPoints(testSpectra)[2,2]<-297000
    calibPoints(testSpectra)

[Package tofsims version 1.10.1 Index]