subtractElements: subtract two chemical formula

View source: R/chemFormula.R

subtractElementsR Documentation

subtract two chemical formula

Description

subtractElements subtracts one chemical formula from another.

Usage

subtractElements(x, y)

Arguments

x

character strings with chemical formula

y

character strings with chemical formula that should be subtracted from x

Value

character Resulting formula

Author(s)

Michael Witting and Sebastian Gibb

Examples


subtractElements("C6H12O6", "H2O")

subtractElements("C6H12O6", "NH3")

rformassspectrometry/MetaboCoreUtils documentation built on Oct. 2, 2024, 5:13 a.m.