Description Usage Arguments Value Author(s) Examples
View source: R/retrieveFunctionArguments.R
Use method retrieveFunctionArguments
to get function or primitive arguments.
1 | retrieveFunctionArguments(fun_f_1)
|
fun_f_1 |
a function or primitive. Not a string! |
A pairlist. See formals
.
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 15 16 17 18 19 20 21 22 23 24 | # typical test on a primitive
retrieveFunctionArguments(sin)
#$x
#
# typical test on a function
retrieveFunctionArguments(ls)
#$name
#$pos
#-1L
#$envir
#as.environment(pos)
#$all.names
#[1] FALSE
#$pattern
#
#$sorted
#[1] TRUE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.