summarise_by_x {ggplot2} | R Documentation |
Summarise a data frame by unique value of x
summarise_by_x(data, summary, ...)
data |
|
summary |
|
... |
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>