Re: [R] means by group

2012-05-03 Thread Petr Savicky
On Thu, May 03, 2012 at 09:07:39PM -0400, li li wrote: > Hi all, >I have a 100 by 100 matrix and I divided this matrix into 100 groups, > each is a > 10 by 10 submatrix. I want find out the means of each group. >I know we can use apply function for mean by margins. Is there a > function i

[R] means by group

2012-05-03 Thread li li
Hi all, I have a 100 by 100 matrix and I divided this matrix into 100 groups, each is a 10 by 10 submatrix. I want find out the means of each group. I know we can use apply function for mean by margins. Is there a function in R for means by groups also? Thanks. Hannah [[alter