Re: [R] summarized data set - how to use an "occurs" field

2011-07-23 Thread mloxton
David, thanks, I think that should work perfectly Much obliged > >  > dfrm <- expand.grid(A=1:3, B=1:3) >  > dfrm$counts <- 1:9 >  > xtabs(counts~A, data=dfrm) > A >   1  2  3 > 12 15 18 > >  >barplot(xtabs(counts~A, data=dfrm), xlab="Counts by A level") > > -- > > David Winsemius, MD > West Har

[R] summarized data set - how to use an "occurs" field

2011-07-15 Thread mloxton
I have a data set with 22 fields and several thousand records in which one field (count) indicates the number of times that each specific combination of the other 21 fields occurred in a bigger and largely unavailable data set. So each record is unique in its combination of field values and has a f