title: R error with using cbind() on a data.frame() in a for loop
body: <pre><code>d &lt;- data.frame(stringsAsFactors=F)
  
  for (i in 1:ncol(data)) { d &lt;- cbind(d,data[,i])}
  
  Error in data.frame(..., check.names = FALSE) : 
    arguments imply differing number of rows: 0, 132680
  </code></pre>
  
  <p>Why I am getting the error above? </p>