formals_to: Send arguments to a function after vectorizing

View source: R/vectorize.R

formals_toR 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.


igcop documentation built on Nov. 14, 2023, 5:10 p.m.