sorting data in R and how to extract values
===

Age	CapReg	TrSw	FeelChk	CanSw
20	1	0	0	0
36	1	0	0	0
35	1	3	2	2
21	0	0	2	2
43	0	0	2	2
34	1	0	0	0
37	0	0	2	2
62	0	0	2	2
54	1	0	2	2
47	0	1	3	1
48	1	0	0	0
45	1	0	0	0
2	1	1	1	1
2	1	0	0	0
2	0	1	1	0
54	0	1	0	0
52	1	1	0	0
40	1	0	2	2
58	0	1	0	2
29	0	1	1	0
27	0	0	0	0
28	1	1	1	0
46	0	0	2	2
35	1	0	2	2
50	1	1	1	0
31	0	1	1	0
48	0	1	0	2
2	1	0	2	2
29	1	0	2	2
54	1	1	1	3
52	0	0	2	2
28	0	0	2	2
28	1	1	0	0
26	1	1	1	0
38	1	0	2	2
59	1	1	0	0
51	1	1	1	0
58	1	0	2	2
39	1	0	2	2
44	0	1	3	1
53	1	1	0	1
2	1	0	2	2
39	1	1	1	0
55	0	1	0	0
48	0	1	0	2
2	1	0	2	2
23	0	1	1	3
51	0	0	2	2
50	1	0	2	2
26	1	1	1	1
28	1	1	1	1
40	1	1	0	2
38	1	1	1	1
61	1	0	2	2
52	0	1	0	0
33	1	1	1	1
2	1	1	0	0
59	1	1	0	2
27	0	1	1	1
45	1	1	1	3
45	1	1	0	1
57	0	1	3	0
66	1	1	1	0
52	1	2	2	2
58	0	1	1	0
34	1	1	1	0
28	1	1	0	0
39	1	1	0	2
48	1	1	1	0
53	1	1	1	1
39	0	1	1	1
46	1	1	0	1
57	1	0	2	2
36	1	1	3	0
25	1	1	1	1
22	0	0	2	2
29	1	0	2	2
46	0	1	1	1
25	0	1	1	1
25	1	1	0	0
35	0	0	2	2
44	1	1	1	0
24	0	0	0	0
26	1	0	1	1
33	1	1	1	0
27	1	0	0	0
41	0	0	2	2
28	1	1	1	1
26	1	1	1	0
32	1	0	0	0
36	1	1	0	0
35	0	1	0	0
32	0	0	2	2
33	0	1	1	1
29	0	0	2	2
29	1	1	1	0
52	1	0	0	2
55	1	0	0	2
23	1	0	0	0
29	1	1	0	1
45	1	0	2	2
26	1	1	0	0
48	1	1	1	1
54	1	1	0	0
50	1	0	2	2
35	0	3	2	2
27	1	0	2	2
39	0	0	0	0
41	0	1	0	0
30	1	0	2	2
30	0	1	3	3
31	0	0	2	2
27	1	1	0	0
28	1	1	1	0
27	0	0	2	2
25	1	0	2	2
34	0	0	2	2
23	0	0	2	2
30	0	0	2	2
34	1	0	2	2
52	1	0	0	0
20	1	0	0	0
31	1	1	1	0
2	1	0	2	2
45	1	0	2	2
34	1	1	1	1
21	1	1	1	1
60	1	0	2	2
34	0	1	0	1
40	1	1	3	0
47	1	1	1	0
30	0	0	0	2
54	1	1	1	0
36	0	1	1	1
32	0	0	2	2
31	0	0	2	2
55	1	1	3	1
57	0	1	3	1
23	1	1	1	0
31	0	0	0	0
26	1	1	0	2
26	1	0	2	2
27	0	1	0	0
19	1	0	2	2
26	1	0	2	2
25	1	1	3	3
37	1	1	0	1
47	1	1	1	1
38	1	1	1	0
38	1	0	2	2
26	1	1	0	0
25	1	1	0	2
41	1	1	0	0


This is my dataset and i am new to R and iam trying to write a script for this data set.

I want to compare TrSw with rest of the colmn variable i.e
TrSw Vs Age
TrSw Vs CapReg	
TrSw Vs FeelChk	
TrSw Vs CanSw

i use this one to run it on R and i use this command
cor.test(KenTau$Age, KenTau$TrSw, alternative="two.sided", method="kendall")
also i want to extract Age and pvalue so i can have a list as i have close to 50 variables

thanks in advance