| summarise_by_x {ggplot2} | R Documentation |
Summarise a data frame by unique value of x
summarise_by_x(data, summary, ...)
data |
|
summary |
vector to summarise by |
... |
summary function (must take and return a data.frame) |
|
other arguments passed on to summary function |
This function is used by stat_summary to break a
data.frame into pieces, summarise each piece, and join the pieces
back together, retaining original columns unaffected by the summary.
Hadley Wickham <h.wickham@gmail.com>