Learn R Programming

enviPat (version 2.2)

check_ded: Check if a chemical formula is subset in another one

Description

Check if a chemical formula is contained in another chemical formula

Usage

check_ded(formulas, deduct)

Arguments

formulas
Vector with the containing chemical formula(s)
deduct
Chemical formula to be contained ("deduct")

Value

Returns a vector with length of input formulas, with TRUE if deduct is not contained and FALSE otherwise.

See Also

adducts

Examples

Run this code
formulas<-c("C8H4Cl2","C10H16O2","C3H10")
deduct<-c("C4H10")
check_ded(formulas, deduct)

Run the code above in your browser using DataLab