add_proton: add_proton

Description Usage Arguments Value Examples

View source: R/add_proton.R

Description

This function adds the mass of a proton to a monoisotopic mass (e.g., to a deprotonated m/z to obtain its neutral analogue).

Usage

1
add_proton(mass)

Arguments

mass

a numeric containing a monoisotopic mass

Value

a numeric containing the monoisotopic mass after proton addition

Examples

1
2
mz <- 412.9664                ## deprotonated PFOA with small error
add_proton(mz)

robertyoung3/PFCdetective documentation built on June 5, 2020, 2:37 p.m.