summaryby {ggplot2}R Documentation

Summarise a data.frame by parts

Description

Summarise a data frame by unique value of x

Usage

summaryby(data, split, summary, ...)

Arguments

data
split
summary
...

Details

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.

Author(s)

Hadley Wickham <h.wickham@gmail.com>


[Package ggplot2 version 0.7 Index]