aw {georefdatar}R Documentation

Get the atomic weight of an element

Description

Get the atomic weight of an element

Usage

aw(sym, dataSource = "IUPAC")

Arguments

sym

symbol of the element as a string

dataSource

the data source for the atomic weight, either IUPAC (default) or PubChem. This is case insensitive ("IUPAC" is the same as e.g. "IuPaC")

Value

Atomic weight of element with the given symbol

See Also

IUPAC_StdAW for the table of standard atomic weights by IUPAC and pte for a full periodic table of elements

Examples

aw('H')
aw('H')*2+aw('O')

aw('Li', dataSource= "pubchem")


[Package georefdatar version 0.6.5 Index]