title: Correlation matrix with p-values for xtable
body: <p>I want to have correlation matrix with p-values for <code>xtable</code> to be use in <code>Sweave</code>. I tried this</p>
  
  <pre><code>library(ltm)
  library(xtable)
  mat &lt;- matrix(rnorm(1000), 100, 10, dimnames = list(NULL, LETTERS[1:10]))
  rcor.test(mat)
  xtable(rcor.test(mat))
  </code></pre>
  
  <p>and it throws this error:</p>
  
  <pre><code>Error in UseMethod("xtable") : 
    no applicable method for 'xtable' applied to an object of class "rcor.test"
  </code></pre>
  
  <p>I wonder how to get the correlation matrix with p-values for <code>xtable</code> to be use in <code>Sweave</code>. Thanks in advance for your help.</p>