multiform {enviPat}R Documentation

Multiply a chemical formula

Description

Multiply all atom numbers in a chemical formula by a factor

Usage

multiform(formula_in,fact)

Arguments

formula_in

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

formula_in <- "C10[13]C2H10Cl10"
multiform(formula_in, 3)

[Package enviPat version 2.6 Index]