replicate(10, rnorm(20))-> ExampleData
x<-2
ExampleData[x,7:9]->Example1
ExampleData[x,3:5]->Example2
t.test(Example1, Example2)
I would like to know how to feed a list of variables into "x". Like:
c(2, 3, 4, 5, 6)
and then get the results from the t.test back.