title: Create data frame from EFA output in R
body: <p>I am working on EFA and would like to customize my tables. There is a function, <code>psych.print</code> to suppress factor loadings of a certain value to make the table easier to read. When I run this function, it produces this data and the summary stats in the console (in an .RMD document, it produces console text and a separate data frame of the factor loadings with loadings suppressed). However, if I attempt to save this as an object, it does not keep this data.</p>
  <p>Here is an example:</p>
  <pre><code>library(psych)
  bfi_data=bfi
  
  bfi_data=bfi_data[complete.cases(bfi_data),]
  
  bfi_cor &lt;- cor(bfi_data)
  
  
  factors_data &lt;- fa(r = bfi_cor, nfactors = 6)
  print.psych(fa_ml_oblimin_2, cut=.32, sort=&quot;TRUE&quot;)
  </code></pre>
  <p>In an R script, it produces this:</p>
  <pre><code>          item   MR2   MR3   MR1   MR5   MR4   MR6    h2   u2 com
  N2          17  0.83                               0.654 0.35 1.0
  N1          16  0.82                               0.666 0.33 1.1
  N3          18  0.69                               0.549 0.45 1.1
  N5          20  0.47                               0.376 0.62 2.2
  N4          19  0.44        0.43                   0.506 0.49 2.4
  C4           9       -0.67                         0.555 0.45 1.3
  C2           7        0.66                         0.475 0.53 1.4
  C5          10       -0.56                         0.433 0.57 1.4
  C3           8        0.56                         0.317 0.68 1.1
  C1           6        0.54                         0.344 0.66 1.3
  </code></pre>
  <p>In R Markdown, it produces this:
  <a href="https://i.stack.imgur.com/UPT75.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UPT75.png" alt="enter image description here" /></a></p>
  <p>How can I save that data.frame as an object?</p>