The vecvec_apply() function applies a function .f to each vector in the vecvec vectors.

vecvec_apply(x, .f, ...)

Arguments

x

A vecvec object

.f

A function to apply to each vector

...

Additional arguments passed to .f

Value

A vecvec data type with the same structure as x but with each vector transformed by .f.