Description Usage Arguments Details Value Author(s) Examples
View source: R/getObjectFunctionNames.R
Use method getObjectFunctionNames to get the function names of an object (
see is.object).
)
1 2 3 | getObjectFunctionNames(object_o_1, allNames_b_1 = FALSE)
getClassTypicalFunctionNames(object_o_1)
|
object_o_1 |
the object to analyze. |
allNames_b_1 |
A boolean value. When |
Function getClassTypicalFunctionNames gives back function names that are related to
R class style, and automatically added by R to your class object.
A vector of function names (character).
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 | # 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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.