alply(.data, .margins, .fun = NULL, ..., .expand = TRUE,
.progress = "none", .inform = FALSE, .parallel = FALSE,
.paropts = NULL, .dims = FALSE)data by.
1 splits up by rows, 2 by columns and c(1,2) by rows and columns, and so
on for higher dimensions.fun.data is a data frame, should output be 1d (expand
= FALSE), with an element for each row; or nd (expand = TRUE), with a
dimension for each variable.create_progress_barTRUE, apply function in parallel, using parallel
backend provided by foreachforeach function when parallel computation
is enabled. This is important if (for example) your code relies on
external data or packages: use the .eTRUE, copy over dimensions and names from input.list()).alply(x, c(3,2), ...) where
x has dims c(4,3,2) will give a result with dims
c(2,3).alply is somewhat similar to apply for cases
where the results are not atomic.
a_ply;
aaply; adplyalply(ozone, 3, quantile)
alply(ozone, 3, function(x) table(round(x)))Run the code above in your browser using DataLab