Get the mz value associated with a mzIdx
Arguments
- object
Object of class MALDIassay
- mzIdx
numeric, index of mass of interest (see
getPeakStatistics()
)
Examples
# see example for `fitCurve()` to see how this data was generated
data(Blank2022res)
getMzFromMzIdx(Blank2022res, mzIdx = 2)
#> [1] 428.004