Calculates the Ring and Double Bond Equivalents for a chemical formula. The
highest valence state of each atom is used, such that the returned DBE
should never be below 0.
Usage
dbe(formula)
Arguments
formula
A molecular formula in text or list representation (e.g.
"C6H12O6" or list(C=6, H=12, O=6) ).