molec_wt: Identify Molecular Weight for a Given Element

View source: R/molec_wt.R

molec_wtR Documentation

Identify Molecular Weight for a Given Element

Description

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.

Usage

molec_wt(element = NULL)

Arguments

element

(character/numeric) element name, symbol, or atomic number for which to retrieve molecular weight

Value

(numeric) molecular weight value for the relevant element

Examples

# Identify molecular weight for carbon by name
molec_wt(element = "Carbon")

# Identify molecular weight for hydrogen by atomic number
molec_wt(element = 1)


scicomptools documentation built on Nov. 1, 2024, 1:06 a.m.