llply: plyr function in purrr style

View source: R/main_plyr.R

llplyR Documentation

plyr function in purrr style

Description

plyr function in purrr style

Usage

llply(.data, .f = NULL, .progress = "none", .parallel = FALSE, ...)

ldply(.data, .f = NULL, ...)

laply(.data, .f = NULL, ...)

map_simplify(.data, .f = NULL, ...)

Arguments

.data

list to be processed

.progress

name of the progress bar to use, see create_progress_bar

.parallel

if TRUE, apply function in parallel, using parallel backend provided by foreach

...

other arguments passed on to .f

References

  1. https://github.com/TylerGrantSmith/purrrgress

Examples

x <- list(a = 1:10, beta = exp(-3:3), logic = c(TRUE,FALSE,FALSE,TRUE))
llply(x, mean, .progress = "text")
llply(x, ~mean(.x), .progress = TRUE)
llply(x, quantile, probs = 1:3 / 4)


kongdd/Ipaper documentation built on March 27, 2024, 5:34 a.m.