Learn R Programming

rcdk (version 3.1.8.1)

isvalid.formula: Validate a cdkFormula object.

Description

This function validates a cdkFormula object. At the moment is using the nitrogen Rule and RDBE Rule.

Usage

isvalid.formula(formula, rule = c("nitrogen","RDBE"))

Arguments

formula
A cdkFormula object.
rule
The rules to be applied: nitrogen and RDBE.

Value

  • Objects of class MolecularFormulaChecker, from the IMolecularFormula package

References

A parallel effort to expand the Chemistry Development Kit: http://cdk.sourceforge.net

See Also

get.formula, set.charge.formula, get.isotopes.pattern, generate.formula

Examples

Run this code
formula <- get.formula('NH4', charge = 0)
isvalid.formula(formula, rule = c("nitrogen","RDBE"))

Run the code above in your browser using DataLab