title: Export summary.PCA (package FactoMineR) into a table, with R-cran
body: <p>I am currently doing a PCA of some data with 35rows and 21 columńs by using the package FactoMineR of R. I'm doing this for my bachelor thesis and I'm studying forestry, so "I have no clue what I'm doing" :).</p>
  
  <p>It works somehow and the interpretation is another chapter, but my Professors, unfortunately also have no clue what they are doing in this statistics kind of thing, so they expect the results in nice little word-sheets, with the data nicely arranged into tables.</p>
  
  <p>The text-output is printed by me with the following methods:</p>
  
  <pre><code>capture.output(mydata)
  summary.PCA(mydata)
  summary(mydata)
  </code></pre>
  
  <p>summary.PCA is a tool directly from the package FactoMineR and I use it because capture.output keeps giving me errors when I try and capture PCA("whatever") with it.</p>
  
  <p>But this output is impossible to import into a table unless I do i all by hand, which I cannot accept as a solution (I very much hope so).</p>
  
  <p>Output like the following.. I don't see a way to put this into a table:</p>
  
  <pre><code>Call:
  PCA(mydata) 
  
  
  Eigenvalues
                     Dim.1   Dim.2   Dim.3   Dim.4   Dim.5   Dim.6   Dim.7   Dim.8   Dim.9  Dim.10  Dim.11  Dim.12  Dim.13  Dim.14  Dim.15  Dim.16  Dim.17  Dim.18  Dim.19  Dim.20  Dim.21 
  Variance               8.539   2.937   1.896   1.644   1.576   1.071   0.738   0.695   0.652   0.463   0.261   0.184   0.136   0.108   0.049   0.021   0.019   0.010   0.000   0.000   0.000 
  % of var.             40.662  13.984   9.027   7.830   7.505   5.100   3.517   3.311   3.106   2.203   1.242   0.878   0.650   0.513   0.233   0.102   0.093   0.046   0.000   0.000   0.000 
  Cumulative % of var.  40.662  54.645  63.672  71.502  79.007  84.107  87.624  90.934  94.041  96.244  97.486  98.363  99.013  99.526  99.759  99.862  99.954 100.000 100.000 100.000 100.000
  </code></pre>
  
  <p>So is there a way to do this? Do I have to transform the data before I can print it into a table?</p>
  
  <p>I hope very much I have expressed myself clearly!</p>
  
  <p>All the best!</p>
  
  <p>Lukas</p>