pmppm: Plus/minus parts per million

View source: R/grabMSdataCode.R

pmppmR Documentation

Plus/minus parts per million

Description

It shouldn't be hard to translate a point mass into a mass window bounded by spectrometer accuracy.

Usage

pmppm(mass, ppm = 4)

Arguments

mass

A length-1 numeric representing the mass of interest for which a mass range is desired.

ppm

The parts-per-million accuracy of the mass spectrometer on which the data was collected.

Value

A length-2 numeric representing the mass range requested

Examples

pmppm(100, 5)
pmppm(1000000, 5)
pmppm(118.0865, 2.5)
pmppm(892.535313, 10)

RaMS documentation built on Dec. 28, 2022, 2:26 a.m.