Skip to content
Prev 106028 / 398506 Next

How to sum one column in a data frame keyed on other columns

On Tue, 2006-12-12 at 15:34 -0800, George Nachman wrote:
See ?aggregate

If your dataframe is called 'DF':
Group.1 Group.2   x
1 www.bar.com    1:00 400
2 www.foo.com    1:00 150
3 www.foo.com    2:00 525


HTH,

Marc Schwartz