Re: [R] function to include factors in summary data frame

2011-09-14 Thread Wade Wall
That is exactly what I was looking for. Thanks, Wade On Wed, Sep 14, 2011 at 5:47 AM, Petr PIKAL wrote: > > > > Hi all, > > > > I have a dataframe that includes data on individuals that are > distributed > > across multiple rows. I have aggregated the data using ddply, but I > have > > columns

Re: [R] function to include factors in summary data frame

2011-09-14 Thread Petr PIKAL
> > Hi all, > > I have a dataframe that includes data on individuals that are distributed > across multiple rows. I have aggregated the data using ddply, but I have > columns in the original data frame that are factors ( such as sites "A", > "B", and "C") that I would like to include in the ne

Re: [R] function to include factors in summary data frame

2011-09-12 Thread Daniel Malter
I have read it three times and still no concrete idea what you are actually trying to do, mainly because there is no information as to which level/variable you are aggregating on. It'd help if you provided the aggregated data (or sample rows thereof) so that we know what you want the result to be.

[R] function to include factors in summary data frame

2011-09-12 Thread Wade Wall
Hi all, I have a dataframe that includes data on individuals that are distributed across multiple rows. I have aggregated the data using ddply, but I have columns in the original data frame that are factors ( such as sites "A", "B", and "C") that I would like to include in the new data frame. I