DescTools (version 0.99.14)

FctArgs: Retrieve a Functions' Arguments

Description

Retrieve a functions' arguments and default values in a list.

Usage

FctArgs(name, sort = FALSE)

Arguments

name
name of the function.
sort
logical. Should the function arguments be sorted? Defaults to FALSE.

Value

  • a data.frame with the default in the first columns and with row.names as argument names.

See Also

formalArgs just returns the name of the arguments, but not their defaults.

Examples

Run this code
formalArgs(PlotFdist)

# compare:
FctArgs(PlotFdist)

Run the code above in your browser using DataCamp Workspace