atom: Build an atom From the number of protons and neutrons, report...

View source: R/rice.R

atomR Documentation

Build an atom From the number of protons and neutrons, report the corresponding element/isotope, its abundance, half-life, decay mode and daughter product.

Description

Build an atom From the number of protons and neutrons, report the corresponding element/isotope, its abundance, half-life, decay mode and daughter product.

Usage

atom(protons = c(), neutrons = c(), roundby = 1, talk = TRUE)

Arguments

protons

The number of protons in the atom's nucleus. Alternatively, the name or symbol of an element can provided.

neutrons

The number of neutrons in the atom's nucleus. If left empty, the function will report the amounts of neutrons of the isotopes of the element in question.

roundby

Rounding of the halflife (if the isotope is unstable). Defaults to 1 decimal.

talk

Report the results. Defaults to TRUE.

Details

The number of protons determines the element, and the number of neutrons the isotope. Some combinations of protons and neutrons are impossible (NA), others exist for only a very short time before decaying, and others are stable.

If only the number of protons is provided, a range of possible amounts of neutrons is returned, et vice versa.

Data downloaded from https://www-nds.iaea.org/relnsd/v1/data?fields=ground_states&nuclides=all

Value

Invisibly returns a list with the atom's name, symbol, abundance, half-life and decay mode. A message describing the isotope is printed.

Author(s)

Maarten Blaauw

Examples

  atom(1,0)
  atom("carbon")
  atom("C")
  atom(6,7)
  atom(6,8)
  atom("lead")
  atom(82, 128)

rice documentation built on Oct. 30, 2026, 1:06 a.m.