Learn R Programming

rcdk (version 3.4.7.2)

get.total.charge: Get the Total Charges for the Molecule

Description

get.total.charge returns the summed partial charges for a molecule and get.total.formal.charge returns the summed formal charges. Currently, if one or more partial charges are unset, the function simply returns the sum of formal charges (via get.total.formal.charge). This is slightly different from how the CDK evaluates the total charge of a molecule (via AtomContainerManipulator.getTotalCharge()), but is in line with how OEChem determines net charge on a molecule.

In general, you will want to use the get.total.charge function.

Usage

get.total.charge(molecule)
get.total.formal.charge(molecule)

Arguments

molecule

A Java object of class IAtomContainer

Value

A double value indicating the total partial charge or total formal charge