[R] question for loop on matrix row level.

Lily sumslily at yahoo.com
Wed Aug 20 03:40:01 CEST 2003


For the 1000 simulations, a matrix will be generated
each time. And, I need to choose the first row of the
generated matrix. The following loop doesn't work
though:

for (i in 1:1000) {

aval[i]<- matrixname[1,]

}

Any solution? thanks!




More information about the R-help mailing list