formals_to {igcop}R Documentation

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)

Arguments

.fn

The function you want to send the recycled arguments to.

Value

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


[Package igcop version 1.0.2 Index]