Re: [R] newbie question: ROW average

From: Rolf Turner <rolf_at_math.unb.ca>
Date: Mon 29 May 2006 - 21:59:07 EST


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

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon May 29 22:04:24 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 30 May 2006 - 00:10:23 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.