Possible Duplicate:
correlation matrix in r
I have an excel sheet which has 700 columns and 25 rows. The sample of my file is shown below. I would like to calculate the correlation coefficient between A1 and A700, A2 and A700, A3 and A700 ,A4 and A700 and so on. What is the easiest way to do this with R?
A1 A2 A3 A4 ---- --- A700
A 2.7 5 4 34 34
B 5.67 7.8 6 45 25.6
C 2.3 -9 12.5 13 2.8
D 5.6 6 -56 2.5 -66.7
E 7.8 5 20 6.7 -56.8
--
--
--
--