title: How to add elements to a list in R (loop)
body: <p>I would like to add elements to a list in a loop (I don't know exactly how many)</p>
  
  <p>Like this:</p>
  
  <pre><code>l &lt;- list();
  while(...)
     l &lt;- new_element(...);
  </code></pre>
  
  <p>At the end, <code>l[1]</code> would be my first element, <code>l[2]</code> my second and so on.</p>
  
  <p>Do you know how to proceed?</p>