Combine chemical formulas

Description

Combine chemical formulas

Usage

1
mergeform(formula1,formula2)

Arguments

formula1

Vector of first chemical formula(s), character string(s)

formula2

Second chemical formula, single character string

Details

Useful for adduct calculations, check adducts. Chemical formulas must conform to what is described in check_chemform.

Value

Merged chemical formula(s), character string

Author(s)

Martin Loos

See Also

adducts

Examples

1
2
3
formula1<-c("C10[13]C2H10Cl10")
formula2<-c("C2H5Na1")
mergeform(formula1,formula2)