powered by
Compute the molar mass associated to a chemical formula.
formula2mass(form, sum.mass = TRUE)
a character string containing a chemical formula on the form: 'C3 H5 N O1'.
logical, should the mass of each element be summed.
Return a single element numeric vector containing the mass corresponding to a given chemical formula.
Compute the molar mass (in g.mol-1) associated to a chemical formula.
atom2ele, atom2mass
atom2ele
atom2mass
# NOT RUN { #formula2mass("C5 H6 N O3") # }
Run the code above in your browser using DataLab