Learn R Programming

rcdk (version 3.8.1)

get.atom.index: get.atom.index

Description

Get the index of an atom in a molecule.

Usage

get.atom.index(atom, mol)

Value

An integer representing the atom index.

Arguments

atom

The atom object

mol

The `IAtomContainer` object containing the atom

Author

Rajarshi Guha (rajarshi.guha@gmail.com)

Details

Acces the index of an atom in the context of an IAtomContainer. Indexing starts from 0. If the index is not known, -1 is returned.

See Also

get.connected.atom