R: Multiply a chemical formula

multiform {enviPat} | R Documentation

## Multiply a chemical formula

### Description

Multiply all atom numbers in a chemical formula by a factor

### Usage

    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

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

[Package enviPat version 2.4 Index]