title: how to calculate p-value for 48 columns and save the results
body: <p>I have two 18-by-48 datasets. One for died people and the other for survived. Both have the same column names(CNP1,CNP2,...,CNP48). I would like to calculate the P-value of each CNP. 
  The function that I am using is the following:</p>
  
  <blockquote>
    <p>t.test(died_CNP$CNP1,survived_CNP$CNP1)[3]
    - How can I use this function for the 48 columns at one go and save the results in variables ( p1,p2,...,p48)?</p>
  </blockquote>