Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

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.

Value

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

See Also

Examples

# Read a PDB file
pdb <- read.pdb( system.file("examples/1hel.pdb", package="bio3d") )
is.pdb(pdb)

bio3d

Biological Structure Analysis

v2.4-2
GPL (>= 2)
Authors
Barry Grant [aut, cre], Xin-Qiu Yao [aut], Lars Skjaerven [aut], Julien Ide [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.