title: building nested lists in R
body: <p>I have written a function that it's output is a list. I want to put my function into a loop and I'd like to store output of each iteration (which is of course a list) into a bigger list. In other words, each element of this BIG list is also a list. c() does not do what I want. Is there any way to do that?</p>
  
  <p>To understand better what I'm asking, consider the example below:</p>
  
  <pre><code>iter1 &lt;- list(item1 = 1, item2 = "a")
  iter2 &lt;- list(item1 = 1, item2 = "b")
  All &lt;- list(iter1 = iter1, iter2 = iter2)
  </code></pre>
  
  <p>I want to be able to do something similar to the code above but in a loop. How can I do that?</p>
  
  <p>Thanks for your help,</p>