Description Usage Arguments Details Value See Also Examples
Determine atomic symbols from atom names or atomic numbers.
1 2 3 4 5 |
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
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.