powered by
This function applies a given function to each case of a multiple case scdf, returning a list of the output of each function call.
batch_apply(scdf, fn, simplify = FALSE)
A list of the output of each function call.
A list of inputs to apply the function to.
The function to apply to each element. Use a . as a placeholder for the scdf (e.g. describe(.)).
.
describe(.)
If simplify is TRUE and fn returns a vector of values, batch_apply will return a data frame case names.
fn
batch_apply
batch_apply(exampleAB, coef(plm(.)))
Run the code above in your browser using DataLab