title: Change object name in a loop and give it a position
body: <p>I wonder if there is a way to create a1, a2, a3...a15 but giving it a position of [i,j] in a matrix (In R)</p>
  
  <pre><code>for(i in 1:15)
  {
  for(j in 1:10)
  {
   assign(paste("a",i,sep="")),i)
  }
  }
  </code></pre>
  
  <p>For example:</p>
  
  <pre><code>   With i=1: `a1[1,1]=1, a1[1,2]=1`
  </code></pre>
  
  <p>In the next i=2: <code>a2[2,1]=2, a2=[2,2]=2</code></p>
  
  <pre><code>        i=10: `a10[10,1]=10,a2[10,2]=10`
  </code></pre>