Learn R Programming

rcdk (version 3.4.7.2)

set.charge.formula: Set the charge to a cdkFormula object.

Description

This function set the charge to a cdkFormula object. It modifies as the IMolecularFormula Java object as the its mass.

Usage

set.charge.formula(formula, charge=-1)

Arguments

formula

A cdkFormula object.

charge

The value of the charge to set.

Value

Returns the formula object with the specified charge

References

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

See Also

get.formula, get.isotopes.pattern, isvalid.formula, generate.formula