Re: [R] Data aggregation question

2011-07-29 Thread David Warren
Hi all, table() did the trick, and very efficiently, too! Thanks for the advice, Dave On Thu, Jul 28, 2011 at 5:39 PM, David Winsemius wrote: > > On Jul 28, 2011, at 4:24 PM, David Warren wrote: > > Hi all, >> >>I'm working with a sizable dataset that I'd like to summarize, but I >>

Re: [R] Data aggregation question

2011-07-28 Thread David Winsemius
On Jul 28, 2011, at 4:24 PM, David Warren wrote: Hi all, I'm working with a sizable dataset that I'd like to summarize, but I can't find a tool or function that will do quite what I'd like. Basically, I'd like to summarize the data by fully crossing three variables and getting a co

Re: [R] Data aggregation question

2011-07-28 Thread William Dunlap
$ y : Factor w/ 2 levels "i","ii": 1 1 1 2 2 2 $ Freq: int 0 1 0 2 0 1 Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of David Warren > Se

Re: [R] Data aggregation question

2011-07-28 Thread Sarah Goslee
You don't offer a reproducible example, but what do you need that table() doesn't provide? testdata <- data.frame(A=factor(sample(1:3, 20)), B=factor(sample(1:3, 20)), C=factor(sample(1:3, 20))) table(testdata) Sarah On Thu, Jul 28, 2011 at 4:24 PM, David Warren wrote: > Hi all, > >     I'm wor

[R] Data aggregation question

2011-07-28 Thread David Warren
Hi all, I'm working with a sizable dataset that I'd like to summarize, but I can't find a tool or function that will do quite what I'd like. Basically, I'd like to summarize the data by fully crossing three variables and getting a count of the number of observations for every level of that 3