Get arguments from a function
Extracts the names of the arguments from a function, and creates a list of those arguments where they exist in ... .
get_args(FUN, args_list = NULL, ...)
FUN
: function for which to find argumentsargs_list
: a list of arguments. Defaults to NULL....
: any arguments. Those necessary for FUN must be named as appropriate for FUNlist of arguments for FUN
myargs <- get_args(lm, formula = Sepal.Length ~ Sepal.Width, data = iris ) summary(do.call('lm', myargs))
Useful links