getObjectClassNames {wyz.code.offensiveProgramming} | R Documentation |
Retrieve Function Arguments.
Description
Retrieve the class names of an object (
see is.object
).
)
Usage
getObjectClassNames(object_o_1)
hasMainClass(object_o_1, classname_s_1)
Arguments
object_o_1 |
the |
classname_s_1 |
a |
Value
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
.
Author(s)
Fabien Gelineau <neonira@gmail.com>
Maintainer: Fabien Gelineau <neonira@gmail.com>
Examples
# 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"
[Package wyz.code.offensiveProgramming version 1.1.24 Index]