Skip to contents

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.