title: Convert output from multiple t.tests to data frame
body: <p>I have performed a t-test on all my rows in my data frame which outputs alot of p-values. How could I get out the p-values in data.frame format together with the row.name that was the basis for the test?</p>
  
  <pre><code>out2 &lt;- apply(BindTissueSerumSort, 1, t.test, alternative = "greater")
  </code></pre>
  
  <p>All my p-values are stored in <code>out2</code> in the following formatting:</p>
  
  <pre><code>$`hsa-let-7a-5p.dataSerum`
  
      One Sample t-test
  
  data:  newX[, i]
  t = 10.747, df = 72, p-value &lt; 2.2e-16
  alternative hypothesis: true mean is greater than 0
  95 percent confidence interval:
   1.081222      Inf
  sample estimates:
  mean of x 
   1.279618 
  </code></pre>
  
  <p>I would like to have something like:</p>
  
  <pre><code>rowname                      pvalue
  $`hsa-let-7a-5p.dataSerum`   p-value &lt; 2.2e-16
  </code></pre>