title: loop to create several matrix in R (maybe using paste)
body: <p>I want to create 27 matrix with 2 columns and a variable number of rows.
  I could just write 27 lines of code, like this:</p>
  
  <pre><code> x1 = cbind(rep(1,34), rnorm(34))
  
   x2 = cbind(rep(1,36), rnorm(36))
  </code></pre>
  
  <p>....</p>
  
  <pre><code>x27 = cbind(rep(1,k), rnorm(k))
  </code></pre>
  
  <p>But it must have a better way to do that. I thought of a loop, something like this:</p>
  
  <pre><code>aux = c(34, 36, ..., k) # auxiliar variable with number of rows for each matrix
  
  for (i in 1:27) paste("x",i, sep="") =  cbind(rep(1,aux[i]), rnorm(aux[i]))
  </code></pre>
  
  <p>However, it doesn't work. I feel like this is a simple task, but I am out of ideas.</p>
  
  <p>Any help?</p>
  
  <p>ps.: I thought of an array, but I wasn't able to use it. Maybe a list can do the job, I don't know.</p>