Dear colleagues! How can I calculate the mean of every line of "feld" without using the command "for"?
Thank You in advance feld<-array(,c(100,10)) mittel<-array(,c(100,1)) feld[,]<-rnorm(1000) for(a in 1:100){mittel[a]<-mean(feld[a,])} ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html