mz: mz getter method

Description Usage Arguments Value Examples

Description

mz getter method

mz setter method

Usage

1
2
3
4
5
## 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

1
2
3
4
5
6
7
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]

tofsims documentation built on April 29, 2020, 5:20 a.m.