On Sat, Jul 12, 2008 at 7:44 AM, sj <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to do some fairly straightforward data summarization, i.e., the > kind you would do with a pivot table in excel or by using SQL queires. I > have a moderately sized data set of ~70,000 records and I am trying to > compute some group averages and sum values within groups. the code example > below shows how I am trying to go about doing this >
You might want to have a look at the reshape package - http://had.co.nz/reshape - it's design was much inspired by pivot tables and sql crosstab queries. Hadley -- http://had.co.nz/ ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.