formula2mass | R Documentation |
Compute the molar mass associated to a chemical formula.
formula2mass(form, sum.mass = TRUE)
form |
a character string containing a chemical formula on the form: 'C3 H5 N O1'. |
sum.mass |
logical, should the mass of each element be summed. |
Compute the molar mass (in g.mol-1) associated to a chemical formula.
Return a single element numeric vector containing the mass corresponding to a given chemical formula.
Lars Skjaerven
atom2ele
, atom2mass
#formula2mass("C5 H6 N O3")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.