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