title: list of 524 matrices each one with 2 colons and variable row length
body: <p>I am trying to make a list of 524 matrices each one with 2 colons and variable row length</p>
  
  <p>I tried the code below:</p>
  
  <pre><code>&gt; twna=list()
  &gt; for(j in 1:Insh){
  +   t=matrix(ncol=2,nrow=Inevh-nan[j])
  +   for(i in 1:Inevh){
  +     if((is.na(rain[i,j])==F)){
  +       t[i,1]=i
  +       t[i,2]=rain[i,j]
  +      
  +     }   
  +   } 
  +   twna[j]=t
  + }
  </code></pre>
  
  <p>and R return this error code:</p>
  
  <p>Error in <code>[&lt;-</code>(<code>*tmp*</code>, i, 1, value = 7337L) : subscript out of bounds</p>