mz,MassSpectra-method {tofsims} | R Documentation

## mz getter method

### Description

mz getter method

mz setter method

### Usage

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

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

### Arguments

`object` | of type MassSpectra
`value` | double mass to charge ratio

### Value

MassSpectra object with updated mz slot

### Examples

    library(tofsimsData)
    data(tofsimsData)
    ## access the mz values fo each spectra point
    mz(testSpectra)[1:100]
    ## replace a mz value
    mz(testSpectra)[1] <- 0.000025
    mz(testSpectra)[1:100]

[Package tofsims version 1.8.0 Index]