title: Creating different dataframes in for loop
body: <p>I have a series of lists <strong>(list1,list2,list3,...,listn)</strong> having similar structure and different info.</p>
  <p>What I want to do is <strong>taking these lists in a dataframe</strong> form and dropping variables I don't need, in a for loop.</p>
  <p>At the end of this, I'd like to have (df1,...,dfn), derived from the lists.</p>
  <p>I tried with:</p>
  <pre><code>for (list in c(&quot;list1&quot;,&quot;list2&quot;...,&quot;listn&quot;)){
    for (i in (1:n)){
      assign(paste0(&quot;DF&quot;, i)) &lt;- plyr::ldply(list)
      DFi = DFi[,c(&quot;tokeep1&quot;,...&quot;tokeepn&quot;)]
    }
  }
  </code></pre>
  <p>I guess this code is not quite right, and in fact it s not working.</p>
  <p>I always get stuck on similar issues (creating a sequence of different df in a for loop) and didn't find a solution yet, so though might be helpful to ask.</p>
  <p>Thanks,
  Ciao</p>