Skip to content
Prev 248995 / 398506 Next

Storing loop output in matrix

Hello
I am trying to store output from a loop into an empty matrix. The
current code I am using is:
+ {M[,(j-2)]<-pic(datain[,j], mytree)}

datain is a matrix (11,91). I only want to use the pic() function on
the columns 3:91.
When I use this code output is stored into the 1st column of M and the
89th column of M but no other columns.

Any help would be greatly appreciated

Dean