R: Combine chemical formulas

mergeform {enviPat} | R Documentation

## Combine chemical formulas

### Description

Combine chemical formulas

### Usage

    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

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

[Package enviPat version 2.4 Index]