mz,MassSpectra-method {tofsims} | R Documentation |
mz getter method
mz setter method
## S4 method for signature 'MassSpectra' mz(object) ## S4 replacement method for signature 'MassSpectra' mz(object) <- value
object |
of type MassSpectra |
value |
double mass to charge ratio |
MassSpectra object with updated mz slot
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]