Re: [R] Append the sum of each row and column to a table matrix

2007-09-30 Thread Marc Schwartz
On Sun, 2007-09-30 at 20:56 +0200, Tom Cohen wrote: > Dear list, > I have following table > > ee<-table(ID,Day) > ee > Day > ID2 3 4 5 6 7 9 10 14 16 > 35 5 0 0 3 1 0 0 5 0 0 > 36 0 0 0 0 0 0 0 1 0 0 > 43 13 15 15 0 0 13 13 15 13 15 > 46 0

[R] Append the sum of each row and column to a table matrix

2007-09-30 Thread Tom Cohen
Dear list, I have following table ee<-table(ID,Day) ee Day ID2 3 4 5 6 7 9 10 14 16 35 5 0 0 3 1 0 0 5 0 0 36 0 0 0 0 0 0 0 1 0 0 43 13 15 15 0 0 13 13 15 13 15 46 0 1 0 0 0 0 0 0 0 0 58 0 0 0 0 0 0 4 4 0 0 and want to