condense | R Documentation |
Condense a data frame.
condense(data, variables, fun, ...)
data |
data frame |
variables |
variables to condense over |
fun |
aggregating function, may multiple values |
... |
further arguments passed on to aggregating function |
Works very much like by, but keeps data in original data frame format. Results column is a list, so that each cell may contain an object or a vector etc. Assumes data is in molten format. Aggregating function must return the same number of arguments for all input.
Hadley Wickham <h.wickham@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.