subform: Subtract one chemical formula from another

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/subform.R

Description

Subtract one chemical formula from another

Usage

1
subform(formula1,formula2)

Arguments

formula1

Chemical formula to subtract from

formula2

Chemical formula to subtract

Details

Useful for adduct calculations, check adducts. Chemical formulas must conform to what is described in check_chemform. Prior check if formula2 is contained in formula2 at all? See check_ded.

Value

A unified and filtered peaklist

Author(s)

Martin Loos

See Also

adducts,check_ded

Examples

1
2
3
formula1<-c("C10[13]C2H10Cl10")
formula2<-c("C2H5[13]C1")
subform(formula1,formula2)

enviPat documentation built on May 30, 2017, 12:40 a.m.