title: push to list in R
body: <p>OK, this really basic. How do I add an element to a (named) list in R?</p>
  
  <p><strong>EDIT</strong>
  when the key name is a varibale</p>
  
  <pre><code>for (name in names(list$filenames)) {
    filename &lt;- list$filenames[[name]]
    x &lt;- read.table(filename)
    ret$name &lt;- x # I want name to be interpreted here, not use "name"
  }
  </code></pre>