Re: [R] optimal way to compute matrix subtotals?

2006-05-14 Thread Werner Wernersen
, 2006 11:48 AM Subject: [R] optimal way to compute matrix subtotals? Hi! I have large matrices, one column per variable and I have a vector of factors / grouping symbols. Then I am computing subtotals for the groups but it takes pretty long and thus I wanted to ask if there is a better way

[R] optimal way to compute matrix subtotals?

2006-05-12 Thread Werner Wernersen
Hi! I have large matrices, one column per variable and I have a vector of factors / grouping symbols. Then I am computing subtotals for the groups but it takes pretty long and thus I wanted to ask if there is a better way to do it or if this is already the best way: subTotals - function(x,

Re: [R] optimal way to compute matrix subtotals?

2006-05-12 Thread Prof Brian Ripley
On Fri, 12 May 2006, Werner Wernersen wrote: Hi! I have large matrices, one column per variable and I have a vector of factors / grouping symbols. Then I am computing subtotals for the groups but it takes pretty long and thus I wanted to ask if there is a better way to do it or if this

Re: [R] optimal way to compute matrix subtotals?

2006-05-12 Thread Petr Pikal
] To: r-help@stat.math.ethz.ch Subject:[R] optimal way to compute matrix subtotals? Hi! I have large matrices, one column per variable and I have a vector of factors / grouping symbols. Then I am computing subtotals for the groups but it takes pretty long and thus I

Re: [R] optimal way to compute matrix subtotals?

2006-05-12 Thread Dimitris Rizopoulos
/biostat/ http://www.student.kuleuven.be/~m0390867/dimitris.htm - Original Message - From: Werner Wernersen [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Sent: Friday, May 12, 2006 11:48 AM Subject: [R] optimal way to compute matrix subtotals? Hi! I have large matrices, one