llply {plyr} | R Documentation |
For each element of a list, apply function, keeping
results as a list. llply
is equivalent to
lapply
except that it will preserve labels
and can display a progress bar.
llply(.data, .fun = NULL, ..., .progress = "none", .inform = FALSE, .parallel = FALSE)
.fun |
function to apply to each piece |
... |
other arguments passed on to |
.progress |
name of the progress bar to use, see
|
.data |
list to be processed |
.parallel |
if |
.inform |
produce informative error messages? This is turned off by by default because it substantially slows processing speed, but is very useful for debugging |
list of results
This function splits lists by elements and combines the result into a data frame.
If there are no results, then this function will return a
list of length 0 (list()
).
Hadley Wickham (2011). The Split-Apply-Combine Strategy for Data Analysis. Journal of Statistical Software, 40(1), 1-29. http://www.jstatsoft.org/v40/i01/.
Other list input: laply
,
ldply
Other list output: alply
,
dlply
llply(llply(mtcars, round), table) llply(baseball, summary) # Examples from ?lapply x <- list(a = 1:10, beta = exp(-3:3), logic = c(TRUE,FALSE,FALSE,TRUE)) llply(x, mean) llply(x, quantile, probs = 1:3/4)