addElements: Combine chemical formulae

View source: R/chemFormula.R

addElementsR Documentation

Combine chemical formulae

Description

addElements Add one chemical formula to another.

Usage

addElements(x, y)

Arguments

x

character strings with chemical formula

y

character strings with chemical formula that should be added from x

Value

character Resulting formula

Author(s)

Michael Witting and Sebastian Gibb

Examples


addElements("C6H12O6", "Na")

addElements("C6H12O6", c("Na", "H2O"))

rformassspectrometry/MetaboCoreUtils documentation built on April 15, 2024, 10:27 p.m.