Molecular weights {GCDkit} | R Documentation |
These functions plot multiple binary plots with a common x axis, such as Harker plots.
molecularWeight(formula)
formula |
a character vector of length 1, a formula of the oxide. |
So far only simple oxide formulae in form of AxOy (where x, y are optional indexes)
can be handled. The atomic weights are stored in a file MW.data
. The atomic weights come from
official CIAAW web site http://www.ciaaw.org.
A list with items:
MW | molecularWeight |
x.atoms | number of atoms in the formula |
x.oxygen | number of oxygens |
Vojtech Janousek, vojtech.janousek@geology.cz Vojtech Erban, vojtech.erban@geology.cz
Commission on Isotopic Abundances and Atomic Weights (CIAAW) of the International Union of Pure and Applied Chemistry. Accessed on January 8, 2016, at http://www.ciaaw.org
molecularWeight("SiO2") molecularWeight("SiO2")[[1]] oxides<-c("SiO2","TiO2","Al2O3","Fe2O3","FeO") sapply(oxides,molecularWeight)