getObjectFunctionNames: Retrieve Function Names From Object

Description Usage Arguments Details Value Author(s) Examples

View source: R/getObjectFunctionNames.R

Description

Use method getObjectFunctionNames to get the function names of an object ( see is.object). )

Usage

1
2
3
getObjectFunctionNames(object_o_1, allNames_b_1 = FALSE)

getClassTypicalFunctionNames(object_o_1)

Arguments

object_o_1

the object to analyze.

allNames_b_1

A boolean value. When TRUE, uses getClassTypicalFunctionNames to restrict the set of function names returned.

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

 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

neonira/wyz.code.offensiveProgramming documentation built on Feb. 20, 2020, 2:01 p.m.