CountChemicalElements: CountChemicalElements.

View source: R/CountChemicalElements.R

CountChemicalElementsR Documentation

CountChemicalElements.

Description

CountChemicalElements will split a character (chemical formula) into its elements and count their occurrence.

Usage

CountChemicalElements(x = NULL, ele = NULL)

Arguments

x

Chemical formula.

ele

Character vector of elements to count particularly or counting all contained if NULL.

Details

No testing for any chemical alphabet is performed. Elements may occur several times and will be summed up in this case without a warning.

Value

A named numeric with counts for all contained or specified elements.


InterpretMSSpectrum documentation built on July 9, 2023, 5:58 p.m.