Description Usage Arguments Value Examples
Get the names of the arguments of a function as a vector of strings.
1 |
f |
the function |
the vector of function arguments, or NULL
if the function has
no arguments
1 2 3 4 5 6 7 8 | function.args(sin)
# [1] "x"
f <- function(x) sin(x);
function.args(f)
# [1] "x"
f <- function() { }
function.args(f)
# NULL
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.