Re: [R] Write vector/matrix in a loop

2011-08-16 Thread Ista Zahn
Hi, On Tue, Aug 16, 2011 at 1:31 PM, kokavolchkov wrote: > Hello! > > I'm trying to *save values* (*row and col*) in two matrices(1,m) or vectors. > I have a loop, where a get these values: > > for(i in 144){ >        for(j in 73){ >                if(B4[i,j]==1){ # B4 is a matrix(73, 144) >    

[R] Write vector/matrix in a loop

2011-08-16 Thread kokavolchkov
Hello! I'm trying to *save values* (*row and col*) in two matrices(1,m) or vectors. I have a loop, where a get these values: for(i in 144){ for(j in 73){ if(B4[i,j]==1){ # B4 is a matrix(73, 144) row <- B4[i-(i-1),j] col <-