Learn R Programming

Rpdb (version 2.0)

natom: Number of Atoms in an Object Containing Atomic Coordinates

Description

Evaluates the number of atoms in an object containing atomic coordinates.

Usage

natom(x, ...)

Arguments

x
an R object used to select a method.
...
further arguments passed to or from other methods.

Value

  • Return an integer indicating the number of atom in x.

Details

Generic function to evalute the number of atom in an object containing atomic coordinates.

See Also

natom.coords, coords

Examples

Run this code
n <- 2
x <- coords(1:n, 1:n, 1:n)
natom(x)
n <- 3
x <- coords(1:n, 1:n, 1:n)
natom(x)

Run the code above in your browser using DataLab