Learn R Programming

DescTools (version 0.99.19)

FctArgs: Retrieve a Function's Arguments

Description

Retrieve a function's 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

argument names.

See Also

formalArgs, formals, args, alist, body

Examples

Run this code
formalArgs(PlotFdist)
formals(PlotFdist)

# compare:
FctArgs(PlotFdist)

Run the code above in your browser using DataLab