molec_wt | R Documentation |
Identifies molecular weight for the specified element based on the element's name, its symbol, or its atomic number. Returns only the molecular weight as a numeric value.
molec_wt(element = NULL)
element |
(character/numeric) element name, symbol, or atomic number for which to retrieve molecular weight |
(numeric) molecular weight value for the relevant element
# Identify molecular weight for carbon by name
molec_wt(element = "Carbon")
# Identify molecular weight for hydrogen by atomic number
molec_wt(element = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.