Determine the class of an arbitrary R object.
an R object.
character string giving the class of
The class is the (first element) of the
attribute if this is non-
NULL, or inferred from the object's
dim attribute if this is non-
data.class(x) returns what is typically useful
for method dispatching. (Or, what the basic creator functions already
and maybe eventually all will attach as a class attribute.)
For compatibility reasons, there is one exception to the rule above:
integer, the result of
"numeric" even when
x is classed.
1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.