function.args: Get the Names of the Arguments of a Function

Description Usage Arguments Value Examples

View source: R/functionArgs.R

Description

Get the names of the arguments of a function as a vector of strings.

Usage

1

Arguments

f

the function

Value

the vector of function arguments, or NULL if the function has no arguments

Examples

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

thomasWeise/utilizeR documentation built on May 30, 2019, 11:48 a.m.