Title: | Periodic Table of the Elements |
---|---|
Description: | Provides a dataset containing properties for chemical elements. Helper functions are also provided to access some atomic properties. |
Authors: | Julien Idé |
Maintainer: | Julien Idé <[email protected]> |
License: | GPL |
Version: | 0.1.2 |
Built: | 2025-01-26 04:09:46 UTC |
Source: | https://github.com/cran/PeriodicTable |
This data set provides various atom names/types and there associated atomic symbols which are used for atom recognition.
atomNames
atomNames
A data frame with the following columns.
atmname
a character vector. Atom names/types.
symb
a character vector. Atomic symbols.
data(atomNames) atomNames
data(atomNames) atomNames
Determine atomic properties from atomic symbols, atomic numbers or atom names.
mass(x) rcov(x) rvdw(x) atomColor(x)
mass(x) rcov(x) rvdw(x) atomColor(x)
x |
an R object for which to get atomic properties. |
The functions documented here allow to get atomic properties, such as atomic
masses (mass
), covalent radii (rcov
), Van der Waals radii
(rvdw
) and atom colors (atomColor
), from atomic symbols, atomic
numbers or atom names.
The methods for atomic number (integer or numeric values) and atom names
(character strings) first convert the values into atomic symbols (see
symb
) and then match them with the periodicTable
dataset to determine the properties.
Return a vector containing atomic properties.
periodicTable
, atomRecognition
,
match
# Display all chemical element properties data(periodicTable) periodicTable # From atomic symbols mass(c("C","O","H")) rcov(c("C","O","H")) rvdw(c("C","O","H")) atomColor(c("C","O","H")) # From atomic numbers mass(c(6, 8, 1)) rcov(c(6, 8, 1)) rvdw(c(6, 8, 1)) atomColor(c(6, 8, 1)) # From atom names mass(c("CA","OD","H")) rcov(c("CA","OD","H")) rvdw(c("CA","OD","H")) atomColor(c("CA","OD","H"))
# Display all chemical element properties data(periodicTable) periodicTable # From atomic symbols mass(c("C","O","H")) rcov(c("C","O","H")) rvdw(c("C","O","H")) atomColor(c("C","O","H")) # From atomic numbers mass(c(6, 8, 1)) rcov(c(6, 8, 1)) rvdw(c(6, 8, 1)) atomColor(c(6, 8, 1)) # From atom names mass(c("CA","OD","H")) rcov(c("CA","OD","H")) rvdw(c("CA","OD","H")) atomColor(c("CA","OD","H"))
Determine atomic symbols from atom names or atomic numbers.
symb(x, na.as.dummy = FALSE) areSymb(x, na.action = FALSE) isSymb(x, na.action = FALSE)
symb(x, na.as.dummy = FALSE) areSymb(x, na.action = FALSE) isSymb(x, na.action = FALSE)
x |
an R object for which to determine atomic symbols or to be tested. |
na.as.dummy |
a logical value. Whether to consider |
na.action |
a logical value or |
In some files, atom names/types are specified instead of atomic symbols. It
is then useful to convert atom names/types into atomic symbols. The
symb
function allow to perform this convertion by using the
atomNames
and periodicTable
data sets.
Atom recognition from character vector is performed as follow:
Remove numbers from character strings.
Search for matching atom
types in atomNames
dataset.
Truncate to first character and translate to upper case.
Search for matching atomic symbols in
periodicTable
dataset.
Unrecognized atoms are considered as
dummy atoms ("Xx"
).
Function symb
can also convert atomic numbers into atomic symbols.
Atomic numbers are first checked to be whole numbers and then searched into
the periodicTable
dataset to determine atomic symbols.
Function areSymb
can be used to check if the values in a vector are
atomic symbols.
Function isSymb
can be used to check if all the
values in a vector are atomic symbols.
symb
returns a character vector containing atomic symbols.
areSymb
returns a logical vector. isSymb
returns TRUE if
x
contains only atomic symbols or FALSE
otherwise.
atomNames
, periodicTable
,
atomProperties
, match
# Display atomNames data(atomNames) atomNames # Get atomic symbols from atom names symb(c("CA", "CB", "N", "NZ", "OXT")) # Get atomic symbols from atomic numbers symb(1:4)
# Display atomNames data(atomNames) atomNames # Get atomic symbols from atom names symb(c("CA", "CB", "N", "NZ", "OXT")) # Get atomic symbols from atomic numbers symb(1:4)
A dataset containing chemical element properties.
periodicTable
periodicTable
A data.frame with the following columns:
an integer vector. Atomic numbers.
a character vector. Atomic symbols.
a character vector. Name of chemical elements.
a numeric vector. Atomic masses.
a numeric vector. Covalent radii.
a numeric vector. Van der Waals radii.
a numeric vector. Ionic radii.
numeric vectors. rgb colors.
an integer vector. Element periods.
an integer vector. Element groups
a character vector. Element types.
a character vector. Most stable crystal.
a character vector. Type of crystalline phases.
a numerci vector. Electronegativity.
a numeric vector. First ionization potential.
a numeric vector. Densities.
a numeric vector. Melting points.
a numeric vector. Boiling points.
an integer vector. Number of isotopes.
a character vector. Discoverer names.
an integer vector. Discovery dates.
a numeric vector. Heat capacities.
a character vector. Electronic configurations
an integer vector. Display rows.
an integer vector. Display columns.
http://www.data-explorer.com/content/data/periodic-table-of-elements-csv.zip