View source: R/getObjectClassNames.R
| getObjectClassNames | R Documentation |
Retrieve the class names of an object (
see is.object).
)
getObjectClassNames(object_o_1)
hasMainClass(object_o_1, classname_s_1)
object_o_1 |
the |
classname_s_1 |
a |
A list with two character entries. First one is named
classname,
provides the main classname (the one found in first position). Second one is named
classnames, provides all the class names born by the
object.
Fabien Gelineau <neonira@gmail.com>
Maintainer: Fabien Gelineau <neonira@gmail.com>
# typical test
getObjectClassNames(getObjectClassNames(factor(letters[1:3])))
#$classname
#[1] "factor"
#$classnames
#[1] "factor"
# another test
getObjectClassNames(new.env())
#$classname
#[1] NA
#$classnames
#[1] "environment"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.