Description Usage Arguments Value Author(s) Examples
Use method retrieveFunctionArgumentNames
to get names of function or
primitive arguments.
1 | retrieveFunctionArgumentNames(fun_f_1)
|
fun_f_1 |
a function or primitive. Not a string! |
A vector. See formalArgs
.
Fabien Gelineau <neonira@gmail.com>
Maintainer: Fabien Gelineau <neonira@gmail.com>
1 2 3 4 5 6 7 | # typical test on a primitive
retrieveFunctionArgumentNames(sin)
#[1] "x"
# typical test on a function
retrieveFunctionArguments(ls)
#[1] "name" "pos" "envir" "all.names" "pattern" "sorted"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.