Learn R Programming

bio3d (version 2.1-1)

is.select: Is an Object of Class select?

Description

Checks whether its argument is an object of class select.

Usage

is.select(x)

Arguments

x
an R object to be tested.

Value

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

Details

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

See Also

atom.select

Examples

Run this code
# Read a PDB file
pdb <- read.pdb( "http://www.rcsb.org/pdb/files/1BG2.pdb" )

# Print structure summary
atom.select(pdb)

# Select all C-alpha atoms with residues numbers between 65 and 143
ca.inds <- atom.select(pdb, resno=65:143, elety="CA")
is.select(ca.inds)

Run the code above in your browser using DataLab