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
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
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
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
4 matches
Mail list logo