multi_lapply: Run multiple functions on a list

Description Usage Arguments Details Value Examples

View source: R/multi_lapply.R

Description

Run multiple functions on a list

Usage

1

Arguments

...

Arguments containing the list to be transformed, and functions to apply. The first argument should be the list, and following arguments should be the functions.

Details

This function is used as an alternative to piping consecutive lapplys

Value

A list

Examples

1
2
3
split_cars <- split(mtcars, rep(1:3, length.out=nrow(mtcars),
each=ceiling(nrow(mtcars)/3)))
res <- multi_lapply(split_cars, t, as.data.frame)

pedrostrusso/prlib documentation built on May 5, 2019, 11:01 p.m.