Re: [R] generalization of tabulate()

2009-10-17 Thread Ted Harding
On 16-Oct-09 11:27:06, Gabor Grothendieck wrote: Using the generalized inner product defined in this post: https://www.stat.math.ethz.ch/pipermail/r-help/2006-July/109311.html try this: cbind(S, d = rowSums(inner(S, obs, identical))) The function inner() is defined at the above

Re: [R] generalization of tabulate()

2009-10-16 Thread Gabor Grothendieck
Using the generalized inner product defined in this post: https://www.stat.math.ethz.ch/pipermail/r-help/2006-July/109311.html try this: cbind(S, d = rowSums(inner(S, obs, identical))) On Fri, Oct 16, 2009 at 4:29 AM, Robin Hankin rk...@cam.ac.uk wrote: Hi I want a generalization of

Re: [R] generalization of tabulate()

2009-10-16 Thread Bert Gunter
: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Gabor Grothendieck Sent: Friday, October 16, 2009 4:27 AM To: Robin Hankin Cc: r-help@r-project.org Subject: Re: [R] generalization of tabulate() Using the generalized inner product defined in this post: https