Learn R Programming

igcop (version 1.0.2)

formals_to: Send arguments to a function after vectorizing

Description

When used within a (encapsulating) function, formals_to recycles the inputs of the encapsulating function so that they are vectors of the same length, and then sends these updated arguments to some specified function.

Usage

formals_to(.fn)

Value

The function .fn evaluated with the arguments given in the encapsulating function.

Arguments

.fn

The function you want to send the recycled arguments to.