Add new column to data.frame through loop in R
<p>I have n number of data.frame i would like to add column to all data.frame </p>

<pre><code>a &lt;- data.frame(1:4,5:8) 
b &lt;- data.frame(1:4, 5:8)
test=ls()

for (j in test){
  j = cbind(get(j),IssueType=j)
}
</code></pre>

<p>Problem that i'm running into is </p>

<pre><code>j = cbind(get(j),IssueType=j)
</code></pre>

<p>because it assigns all the data to <code>j</code> instead of <code>a</code>, <code>b</code>. </p>