Multiply a chemical formula

Description

Multiply all atom numbers in a chemical formula by a factor

Usage

1
multiform(formula1,fact)

Arguments

formula1

Chemical formula to be multiplied, vector of character strings

fact

Factor to multiply with

Details

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

Value

Multiplied chemical formula, character string

Author(s)

Martin Loos

See Also

adducts

Examples

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