CountChemicalElements: CountChemicalElements.

Description Usage Arguments Details Value

Description

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

Usage

1

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 May 2, 2019, 11:05 a.m.