multiform: Multiply a chemical formula

View source: R/multiform.R

multiformR 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)

enviPat documentation built on Oct. 21, 2022, 5:06 p.m.