Rev 41079 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{is.object}\alias{is.object}\title{Is an Object ``internally classed''?}\usage{is.object(x)}\description{A function rather for internal use. It returns \code{TRUE} if theobject \code{x} has the \R internal \code{OBJECT} bit set, and\code{FALSE} otherwise. The \code{OBJECT} bit is set when a\code{"class"} attribute is added and removed when that attribute isremoved, so this is a very efficient way to check if an object has aclass attribute. (S4 objects always should.)}\arguments{\item{x}{object to be tested.}}\seealso{\code{\link[base]{class}}, and \code{\link{methods}}.\code{\link{isS4}}.}\examples{is.object(1) # FALSEis.object(as.factor(1:3)) # TRUE}\keyword{methods}\keyword{classes}