title: R loop naming different objects
body: <p>I am trying to create a loop for estimating the same regression in R for 20 times. I have tried to create a loop in which every regression is called in a different way, however I don't manage to have different objects (I get an error message). The code is the following.</p>
  
  <pre><code>for (i in 1:20){
  fit_[i] &lt;- lm(y ~ x1 + x2 + x3, data=mydata)
  } 
  </code></pre>
  
  <p>Basically I would like to create many different objects (from fit_1 to fit_20) where I have my results stored.</p>