Skip to contents

Wrapper for lapply that returns a data frame

Usage

lapply_df(X, FUN, ..., bind_fx = rbind)

Arguments

X

a vector (atomic or list) or an expression object. Other objects (including classed objects) will be coerced by base::as.list.

FUN

the function to be applied to each element of X: see ‘Details’. In the case of functions like +, %*%, the function name must be backquoted or quoted.

...

Arguments passed on to base::lapply

bind_fx

Binding function for the output (e.g., rbind or cbind).

Value

Data frame with the output of lapply