Is an Object of Class ‘xyz’?
Checks whether its argument is an object of class ‘xyz’.
is.xyz(x) as.xyz(x)
x |
an R object to be tested |
Tests if x is an object of class ‘xyz’, i.e. if x has a
“class” attribute equal to xyz
.
TRUE if x is an object of class ‘xyz’ and FALSE otherwise
# Read a PDB file pdb <- read.pdb( system.file("examples/1hel.pdb", package="bio3d") ) is.xyz(pdb$xyz)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.