Re: [R] counting subgroup sums within a data frame

2009-08-26 Thread Shaun Grannis
Wow. That was fast -- and spot on! Thanks so much. Best Regards, Shaun On Aug 26, 2009, at 9:11 AM, Henrique Dallazuanna wrote: > Try this: > > with(d, tapply(count, list(Date, class), sum)) > > On Wed, Aug 26, 2009 at 10:07 AM, Shaun Grannis > wrote: > Hi, > > I'm sure there's an easy appr

Re: [R] counting subgroup sums within a data frame

2009-08-26 Thread ONKELINX, Thierry
oensdag 26 augustus 2009 15:07 Aan: r-help@r-project.org Onderwerp: [R] counting subgroup sums within a data frame Hi, I'm sure there's an easy approach to this issue, I'm just not seeing it. I have a data frame of the following form: Date classsubclass count 8/1/2

Re: [R] counting subgroup sums within a data frame

2009-08-26 Thread Henrique Dallazuanna
Try this: with(d, tapply(count, list(Date, class), sum)) On Wed, Aug 26, 2009 at 10:07 AM, Shaun Grannis wrote: > Hi, > > I'm sure there's an easy approach to this issue, I'm just not seeing it. > > I have a data frame of the following form: > > Date classsubclass count > 8/1/2009

[R] counting subgroup sums within a data frame

2009-08-26 Thread Shaun Grannis
Hi, I'm sure there's an easy approach to this issue, I'm just not seeing it. I have a data frame of the following form: Date classsubclass count 8/1/2009AX 1 8/1/2009BX 2 8/1/2009AY 9 8/1/2009BY 3 8/2