View source: R/CountChemicalElements.R
CountChemicalElements | R Documentation |
CountChemicalElements
will split a character (chemical formula)
into its elements and count their occurrence.
CountChemicalElements(x = NULL, ele = NULL)
x |
Chemical formula. |
ele |
Character vector of elements to count particularly or counting all contained if NULL. |
No testing for any chemical alphabet is performed. Elements may occur several times and will be summed up in this case without a warning.
A named numeric with counts for all contained or specified elements.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.