Calculate the mass of a molecular formula.
get_mass(x, ...) # S3 method for mol_form get_mass(x, mass_set = "average", ...)
x | Vector of molecular formulas whose masses should be calculated. |
---|---|
... | Other arguments passed on to individual methods. |
mass_set | Atomic masses that should be used for mass calculation.
Either a string specifying a predefined mass set ( |
A double vector representing the molecular masses (in dalton).
new_mass_set()
for defining custom mass sets, atomic_masses
for predefined mass sets
#> [1] 162.141#> [1] 167.0528