Check if a chemical formula is contained in another chemical formula
1  check_ded(formulas, deduct)

formulas 
Vector with the containing chemical formula(s) 
deduct 
Chemical formula to be contained ("deduct") 
Returns a vector with length of input formulas
, with TRUE
if deduct is not contained and FALSE
otherwise.
Might be used used prior to subtracting a "deduct" chemical formula from that of a molecule when including adducts in the calculation of
isotopic patterns. Chemical formulas must conform to what is described in check_chemform
.
Martin Loos
adducts
1 2 3 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.