Learn R Programming

Rpdb (version 2.2)

range.coords: Range of Atomic Coordinates

Description

Determines the range of atomic coordinates.

Usage

"range"(x, na.rm = FALSE, finite = FALSE, ...)
"range"(x, na.rm = FALSE, finite = FALSE, ...)
"range"(x, na.rm = FALSE, finite = FALSE, ...)

Arguments

x
an R object containing atomic coordinates.
na.rm
logical, indicating if NA's should be omitted.
finite
logical, indicating if all non-finite elements should be omitted.
...
further arguments passed to or from other methods.

Value

Return a data.frame whose columns contain the range of the first, second and third coordinates of x.

See Also

range, coords, atoms, pdb

Examples

Run this code
x <- read.pdb(system.file("examples/PCBM_ODCB.pdb",package="Rpdb"))
range(x)
range(range(x))

Run the code above in your browser using DataLab