getObjectFunctionNames {wyz.code.offensiveProgramming} | R Documentation |
Retrieve Function Names From Object
Description
Retrieve function names of an object (
see is.object
).
)
Usage
getObjectFunctionNames(object_o_1, allNames_b_1 = FALSE)
getClassTypicalFunctionNames(object_o_1)
Arguments
object_o_1 |
the |
allNames_b_1 |
A |
Details
Function getClassTypicalFunctionNames
gives back
function names that are related to
R class style, and automatically added by R to your class object.
Value
A vector
of function names (character
).
Author(s)
Fabien Gelineau <neonira@gmail.com>
Maintainer: Fabien Gelineau <neonira@gmail.com>
Examples
# typical test
MyEnv <- function() {
self <- environment()
class(self) <- append('MyEnv', class(self))
f <- function(x_3, y_3n) x_3 + y_3n
self
}
getObjectFunctionNames(MyEnv())
# [1] "f"
# another test
getObjectFunctionNames(new.env())
#[1] NA
[Package wyz.code.offensiveProgramming version 1.1.24 Index]