View source: R/getObjectFunctionArgumentNames.R
getObjectFunctionArgumentNames | R Documentation |
Retrieve function argument names from an object.
getObjectFunctionArgumentNames(object_o_1, allNames_b_1 = TRUE)
object_o_1 |
the object to analyze. |
allNames_b_1 |
A boolean value. Passed to function
|
A list
. Entries are named with function names. Each entry is of type character,
and holds function argument names. Could be empty if function takes no argument.
Fabien Gelineau <neonira@gmail.com>
Maintainer: Fabien Gelineau <neonira@gmail.com>
See is.object
.
# typical test
MyEnv <- function() {
self <- environment()
class(self) <- append('MyEnv', class(self))
f <- function(x_3, y_3n) x_3 + y_3n
self
}
getObjectFunctionArgumentNames(MyEnv())
#$f
#[1] "x_3" "y_3n"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.