batch_apply {scan}R 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(.)))


[Package scan version 0.60.0 Index]