is.object
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.)
is.object(x)
x | object to be tested. |
This is a primitive function.
isS4
.
is.object(1) # FALSE is.object(as.factor(1:3)) # TRUE
Copyright (©) 1999–2012 R Foundation for Statistical Computing.
Licensed under the GNU General Public License.