CountChemicalElements will split a character (chemical formula) into its elements and count their occurence.
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.