z.from.ion: Z from ion

View source: R/particles.R

z.from.ionR Documentation

Z from ion

Description

Returns the charge of the atomic nucleus from the name of the ion. The ion can be specified from its element symbol, optionally including its atomic mass number (e.g.: "C" or "12C" for carbon ion.) Note: the available range is from 1H to 20 Ne.

Usage

z.from.ion(ions, with.atomic.mass = FALSE)

Arguments

ions

A character vector containing the ion names.

with.atomic.mass

Uses ion names including the atomic mass number (default FALSE.)

Value

A numeric vector containing the charges of the ions.

See Also

Other Particles: Zeff, a.from.ion, beta.c, ion.from.z, remove.atomic.mass, rest.energy


planit-group/Rplanit documentation built on Dec. 5, 2022, 11:10 p.m.