[R] newbie question: ROW average

Rolf Turner rolf at math.unb.ca
Mon May 29 13:59:07 CEST 2006


Peter Dalgaard wrote:

> How about 
> 
> dim(M) <- c(4,248,74)
> mn <- apply(M, c(2,3), mean)

	Hey!  That's sexy!  Much better than my kludgy
	suggestion!

			cheers,

				Rolf



More information about the R-help mailing list