Learn R Programming

rcdk (version 2.9.21)

Atoms: Operations on atoms

Description

get.symbol returns the chemical symbol for an atom.

get.point3d returns the 3D coordinates of the atom

get.point2d returns the 2D coordinates of the atom

get.atomic.number returns the atomic number of the atom

get.hydrogen.count returns the number of implicit H's on the atom. Depending on where the molecule was read from this may be NULL or an integer greater than or equal to 0

is.aromatic returns TRUE if the atom is aromatic, FALSE otherwise

is.aliphatic returns TRUE if the atom is part of an aliphatic chain, FALSE otherwise

is.in.ring returns TRUE if the atom is in a ring, FALSE otherwise

Usage

get.symbol(atom)
get.point3d(atom)
get.point2d(atom)
get.atomic.number(atom)
get.hydrogen.count(atom)
is.aromatic(atom)
is.aliphatic(atom)
is.in.ring(atom)

Arguments

atom
A jObjRef representing an IAtom object

Value

  • In the case of get.point3d the return value is a 3-element vector containing the X, Y and Z coordinates of the atom. If the atom does not have 3D coordinates, it returns a vector of the form c(NA,NA,NA). Similarly for get.point2d, in which case the return vector is of length 2.

See Also

get.atoms