title: Subtracting mean of every two columns from two dataframes R
body: <p>Suppose I have two data frames as follows: </p>
  
  <pre><code>df1 &lt;- data.frame(ceiling(runif(10,1,10)), ceiling(runif(10,1,10)), ceiling(runif(10,1,10)))
  colnames(df1) &lt;- c("V1","V2","V3")
  df2 &lt;- data.frame(ceiling(runif(10,1,10)), ceiling(runif(10,1,10)), ceiling(runif(10,1,10)))
  colnames(df2) &lt;- c("V1","V2","V3")
  </code></pre>
  
  <p>Using this dummy data, I want to create a new dataframe with 1 column and 3 rows:</p>
  
  <pre><code>         V1    
  
  1  mean(df1$V1) - mean(df2$V1)
  2  mean(df1$V2) - mean(df2$V2)
  3  mean(df1$V3) - mean(df2$V3)
  </code></pre>
  
  <p>I also want to create another dataframe as follows: </p>
  
  <pre><code>         V1    
  
  1  wilcox.test(df1$V1,df2$V1)$p.value
  2  wilcox.test(df1$V2,df2$V2)$p.value
  3  wilcox.test(df1$V3,df2$V3)$p.value
  </code></pre>
  
  <p>My real data has 54 columns, so for my data each dataframe would be of 54 rows. </p>