| applyby | R Documentation |
Apply a function to each group
applyby(data, by, fun, ..., bind = FALSE, id = ".group")
data |
A data.frame. |
by |
Character vector of column names identifying groups or join keys. |
fun |
Function applied to each element, column, or group. |
... |
Additional arguments (unused, or passed through depending on the function). |
bind |
Combine the per-group results into a single table. |
id |
Optional name for a source identifier column. |
A list of per-group results, or a combined table when bind = TRUE.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.