get_default_args: Get a Function's Default Arguments

get_default_argsR Documentation

Get a Function's Default Arguments

Description

Get a Function's Default Arguments

Usage

get_default_args(fun, invert = FALSE, ignore_dots = TRUE)

Arguments

fun

Function object, or the name of a function.

invert

Logical. Obtain only non-default arguments?

ignore_dots

Logical. Consider ... (if present) a non-default argument?

Details

This convenience function extracts the default arguments and values from a function, or the non-default arguments if invert = TRUE.

Value

Character vector of the names of the specified arguments, NULL if none meet the conditions.

Examples

get_default_args(lm)


ryan-heslin/RegLesson documentation built on Aug. 5, 2022, 9:03 p.m.