batch_apply: Apply a function to each element in an scdf.

View source: R/batch_apply.R

batch_applyR Documentation

Apply a function to each element in an scdf.

Description

This function applies a given function to each case of a multiple case scdf, returning a list of the output of each function call.

Usage

batch_apply(scdf, fn, simplify = FALSE)

Arguments

scdf

A list of inputs to apply the function to.

fn

The function to apply to each element. Use a . as a placeholder for the scdf (e.g. describe(.)).

simplify

If simplify is TRUE and fn returns a vector of values, batch_apply will return a data frame case names.

Value

A list of the output of each function call.

Examples

batch_apply(exampleAB, coef(plm(.)))


scan documentation built on July 1, 2024, 9:07 a.m.