subtractElements {MetaboCoreUtils}R Documentation

subtract two chemical formula

Description

subtractElements subtracts one chemical formula from another.

Usage

subtractElements(x, y)

Arguments

x

character Single string with chemical formula

y

character Single or multiple strings with chemical formula that should be subtracted from x

Value

character Resulting formula

Author(s)

Michael Witting

Examples


subtractElements("C6H12O6", "H2O")

subtractElements("C6H12O6", "NH3")

[Package MetaboCoreUtils version 1.1.1 Index]