ppm is a small helper function to determine the parts-per-million for a user-provided value and ppm.
ppm
ppm(x, ppm)
x
numeric, value(s) used for ppm calculation, e.g. mz value(s).
numeric
numeric, parts-per-million (ppm) value(s).
numeric: parts-per-million of x
Sebastian Gibb
ppm(c(1000, 2000), 5)