title: p.value extraction from an apply-function
body: <p>I would like to extract only the p-values from an apply-function. I did the several statistical tests (shapiro-test, kruskal-Vallis and ANOVA) over several columns (A-D). It works aut, but I always get a the whole list as results.</p>
  
  <p>My data.frame is calles data1.</p>
  
  <p>b&lt;-apply(data1 [,c("A", "B","C","D")],2,shapiro.test);b</p>
  
  <p>If I add $p.value or $p.val to the function the outcome shows "NULL" ("Zero").</p>
  
  <p>b&lt;-apply(data1 [,c("A", "B","C","D")],2,shapiro.test)$p.val</p>
  
  <blockquote>
    <p>b$p.val
    NULL</p>
  </blockquote>
  
  <p>Can anybody help me in this matter?</p>