Learn R Programming

bio3d (version 2.1-2)

is.xyz: Is an Object of Class xyz?

Description

Checks whether its argument is an object of class xyz.

Usage

is.xyz(x)
  as.xyz(x)

Arguments

x
an R object to be tested

Value

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

Details

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

See Also

read.pdb, read.ncdf, read.dcd, fit.xyz

Examples

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

Run the code above in your browser using DataLab