title: Outputting lists as variable name in for loop in R
body: <p>I have a loop over a function</p>
  
  <pre><code>months18 &lt;- list("MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC")
  for (i in months18)
  {
    i &lt;- make_list18(i)
  }
  </code></pre>
  
  <p>I would like it to output 8 separate lists, each named for the month. Right now it spits out only one list called i, which has the data from the last iteration ("DEC").
  I have tried
  <code>paste(i) &lt;- make_list18(i)</code> which names the i object "MAY",
  and <code>sprintf(%s, i) &lt;- make_list18(i)</code>, which does not run.
  How can I change the loop to work how I want it to?</p>