Learn R Programming

rcdk (version 3.8.1)

get.point3d: get.point3d

Description

Get the 3D coordinates of the atom.

Usage

get.point3d(atom)

Value

A 3-element numeric vector representing the X, Y and Z coordinates.

Arguments

atom

The atom to query

Author

Rajarshi Guha (rajarshi.guha@gmail.com)

Details

In case, coordinates are unavailable (e.g., molecule was read in from a SMILES file) or have not been generated yet, `NA`'s are returned for the X, Y and Z coordinates.

See Also

get.point2d

Examples

Run this code
if (FALSE) {
atoms <- get.atoms(mol)
coords <- do.call('rbind', lapply(apply, get.point3d))
}

Run the code above in your browser using DataLab