kg.to.mol {bigleaf} | R Documentation |
Converts mass units of a substance to the corresponding molar units and vice versa.
kg.to.mol(mass, molarMass = bigleaf.constants()$H2Omol)
mass |
Numeric vector of mass in kg |
molarMass |
Numeric vector of molar mass of the substance (kg mol-1)
e.g. as provided by |
Numeric vector of amount of substance in mol.