powered by
This function returns the default function arguments (if any).
function_defaults(f, exclude = NULL)
A named list.
list
A function.
function
A character of argument names to exclude. Can be NULL (default) to not exclude any argument names.
character
NULL
f <- function(a, b = 1, c = "", ...) { } function_defaults(f) function_defaults(f, exclude = "b")
Run the code above in your browser using DataLab