[R] (kein Betreff)

Mag. Ferri Leberl ferri.leberl at gmx.at
Wed Mar 31 20:01:52 CEST 2004


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,])}




More information about the R-help mailing list