Learn R Programming

Rpdb (version 2.0)

is.atoms: Is an Object of Class atoms?

Description

Checks whether its argument is an object of class atoms.

Usage

is.atoms(x)

Arguments

x
an R object to be tested

Value

  • TRUE if x is an object of class atoms and FALSE otherwise

Details

Tests if x is an object of class atoms, i.e. if x has a class attribute equal to atoms.

See Also

atoms, pdb

Examples

Run this code
x <- atoms(recname = c("ATOM","ATOM"), eleid = 1:2, elename = c("H","H"), alt = "",
            resname = c("H2","H2"), chainid = "", resid = c(1,1), insert = "",
            x1 = c(0,0), x2 = c(0,0), x3 = c(0,1), occ = c(0.0,0.0), temp = c(1.0,1.0),
            segid = c("H2","H2"))
is.atoms(x)
is.atoms(1)

# Notice that the 'atoms' class extends the 'coords' class.
is.coords(x)

Run the code above in your browser using DataLab