Is an Object of Class ‘xyz’?

Usage

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

Arguments

x
an R object to be tested

Description

Checks whether its argument is an object of class ‘xyz’.

Details

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

Value

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

Examples

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