is.object

0th

Percentile

Is an Object ‘internally classed’?

A function rather for internal use. It returns TRUE if the object x has the R internal OBJECT bit set, and FALSE otherwise. The OBJECT bit is set when a "class" attribute is added and removed when that attribute is removed, so this is a very efficient way to check if an object has a class attribute. (S4 objects always should.)

Keywords
classes, methods
Usage
is.object(x)
Arguments
x
object to be tested.
Note

This is a primitive function.

See Also

class, and methods.

isS4.

Aliases
  • is.object
Examples
library(base) is.object(1) # FALSE is.object(as.factor(1:3)) # TRUE
Documentation reproduced from package base, version 3.0.3, License: Part of R 3.0.3

Community examples

Looks like there are no examples yet.