Skip to contents

Get Argument Names of a Function

Usage

arg_names(x)

Arguments

x

function name or function

Value

vector of character

Examples

arg_names("sum")
#> [1] "..."   "na.rm"
arg_names(mean)
#> [1] "x"   "..."