Description Usage Arguments Value Author(s) Examples
View source: R/getObjectClassNames.R
Use method getObjectClassNames
to get the class names of an object (
see is.object
).
)
1 2 | getObjectClassNames(object_o_1)
hasMainClass(object_o_1, classname_s_1)
|
object_o_1 |
the object to analyze. |
classname_s_1 |
the class to match the |
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>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # 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.