Dear list,
   
  I'm trying to make a loop of a (5x10) matrix and below are my codes. Could anybody help me figure out why my loop is not working. Thanks in advance!!
   
   
  m<-1:5
n<-1:10
for(i in 1:length(m))
{ for(j in 1:length(n))
 { 
  y[i,j]=sum(i,j)
  y<-as.matrix(y[i,j]) 
 }
  }
  cheers,
  Anisah

       
---------------------------------

	[[alternative HTML version deleted]]

