Re: [Rd] [R] combining tables

2006-06-20 Thread Gabor Grothendieck
On 6/20/06, Robin Hankin <[EMAIL PROTECTED]> wrote: > On 19 Jun 2006, at 12:45, Gabor Grothendieck wrote: > > Try this: > > > > both <- c(x,y) > > as.table(tapply(both, names(both), sum)) > > > thanks for this, Gabor. > > The class of the objects I am manipulating in my > package is c("count", "tab

Re: [Rd] [R] combining tables

2006-06-20 Thread Robin Hankin
On 19 Jun 2006, at 12:45, Gabor Grothendieck wrote: > Try this: > > both <- c(x,y) > as.table(tapply(both, names(both), sum)) thanks for this, Gabor. The class of the objects I am manipulating in my package is c("count", "table"). It'd be nice to overload the "+" symbol so that I can add two co