View source: R/fast_aggregate.R
fast_aggregate | R Documentation |
This is a convenience wrapper for aggregating your data using dplyr functions that tend to be much faster than the
usual stats::aggregate()
command. It is also easy to call from within a function. This function is not exported.
fast_aggregate(data, factors, dv, fun, na.rm = TRUE)
data |
A |
factors |
Character. A vector of factor names to aggregate data by. |
dv |
Character. The dependent variable to aggregate. All variables in |
fun |
Closure. The function used for aggregation. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.