addElements {MetaboCoreUtils}R Documentation

Combine chemical formulae

Description

addElements Add one chemical formula to another.

Usage

addElements(x, y = NA_character_)

Arguments

x

character Vector with 1 or more chemical formulae to be added

y

character Vector with 1 or more chemical formulae to be added

Value

character Resulting formula

Author(s)

Michael Witting

Examples


addElements("C6H12O6", "Na")

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

[Package MetaboCoreUtils version 1.2.0 Index]