Molecular weights {GCDkit}R Documentation

Calculating molecularWeights of oxides

Description

These functions plot multiple binary plots with a common x axis, such as Harker plots.

Usage

    molecularWeight(formula) 

Arguments

formula

a character vector of length 1, a formula of the oxide.

Details

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.

Value

A list with items:

MW molecularWeight
x.atoms number of atoms in the formula
x.oxygen number of oxygens

Author(s)

Vojtech Janousek, vojtech.janousek@geology.cz Vojtech Erban, vojtech.erban@geology.cz

References

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

Examples

    molecularWeight("SiO2")

    molecularWeight("SiO2")[[1]]

    oxides<-c("SiO2","TiO2","Al2O3","Fe2O3","FeO")
    sapply(oxides,molecularWeight)

[Package GCDkit version 4.1 Index]