Learn R Programming

bio3d (version 2.3-4)

is.pdb: Is an Object of Class ‘pdb(s)’?

Description

Checks whether its argument is an object of class ‘pdb’ or ‘pdbs’.

Usage

is.pdb(x)
  is.pdbs(x)

Arguments

x

an R object.

Value

TRUE if x is an object of class ‘pdb(s)’ and FALSE otherwise

Details

Tests if the object ‘x’ is of class ‘pdb’ (is.pdb) or ‘pdbs’ (is.pdbs), i.e. if ‘x’ has a “class” attribute equal to pdb or pdbs.

See Also

read.pdb, read.fasta.pdb, pdbaln

Examples

Run this code
# NOT RUN {
# Read a PDB file
pdb <- read.pdb( system.file("examples/1hel.pdb", package="bio3d") )
is.pdb(pdb)
# }

Run the code above in your browser using DataLab