title: Adding Factor Scores to the Data Set in R using cbind
body: <p>I am having difficulties adding factor scores to the original data set. It is not a difficult procedure at all, as is described <a href="https://stackoverflow.com/questions/6842216/adding-factor-scores-to-the-original-dataset">here</a>. However, in my case, I receive the following error to the below code:</p>
  
  <pre><code>fa &lt;- factanal(data, factors=2, rotation="promax", scores="regression")
  
  data &lt;- cbind(data, fa$scores)
  Error in data.frame(..., check.names = FALSE) :
  arguments imply differing number of rows: 889, 851
  </code></pre>
  
  <p>It would be no surprise to receive this error, if the row numbers really differed, but when I type "fa$scores" and hit enter, R displays all of the 889 rows. The dim function still returns 851 though:</p>
  
  <pre><code>dim(fa$scores)
  [1] 851   2
  </code></pre>
  
  <p>Can you please clarify for me why I am receiving this error, and if possible, what I can do to add the factor scores to the data successfully?</p>
  
  <p>Thanks!</p>