I am trying to run multiple t-tests between column data read from two separate files. The two data frames look like:
df1 = A C D
1 2 3
4 5 6
7 8 9
df2 = A B E
10 11 12
13 14 15
16 17 18
I would like to run t-tests between columns with the same headers. For the data frames above, I should only get one t-test result for A. What is the best approach for this?