"Petr Pikal" <[EMAIL PROTECTED]> writes: > On 20 Jan 2003 at 17:46, Hedderik van Rijn wrote: > > > x <- matrix(rnorm(60),20) > > x[sample(1:60,10)] <- NA > > apply(x,1,mean,na.rm=T) > or simply > > colMeans(x,na.rm=T)
rowMeans, you mean. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 ______________________________________________ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help