Summarize by group with less boilerplate
summarize_by(df, group_var, ...)
| df | data frame | 
|---|---|
| group_var | bare/unquoted column name to group by | 
| ... | expressions as you would normally use in summarize | 
ungrouped data frame containing results of grouped summary