Learn R Programming

rcdk (version 3.5.0)

get.point2d: Get the 2D coordinates of the atom.

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 coordinates.

Description

Get the 2D coordinates of the atom.

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 coordinates.

Usage

get.point2d(atom)

Arguments

atom

The atom to query

Value

A 2-element numeric vector representing the X & Y coordinates.

See Also

get.point3d

Examples

Run this code
# NOT RUN {
atoms <- get.atoms(mol)
coords <- do.call('rbind', lapply(apply, get.point2d))
# }

Run the code above in your browser using DataLab