Learn R Programming

RMassBank (version 2.0.0)

dbe: Calculate Double Bond Equivalents

Description

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) ).

Value

Returns the DBE for the given formula.

Examples

Run this code

#
	dbe("C6H12O6")

Run the code above in your browser using DataLab