calculateMass | R Documentation |
calculateMass
calculates the exact mass from a formula. Isotopes are also
supported. For isotopes, the isotope type needs to be specified as an
element's prefix, e.g. "[13C]"
for carbon 13 or "[2H]"
for deuterium.
A formula with 2 carbon 13 isotopes and 3 carbons would thus contain e.g.
"[13C2]C3"
.
calculateMass(x)
x |
|
numeric
Resulting exact mass.
Michael Witting
calculateMass("C6H12O6")
calculateMass("NH3")
calculateMass(c("C6H12O6", "NH3"))
## Calculate masses for formulas containing isotope information.
calculateMass(c("C6H12O6", "[13C3]C3H12O6"))
## Calculate mass for a chemical with 5 deuterium.
calculateMass("C11[2H5]H7N2O2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.