I'm trying to do a t.test for a lot of data sets and I want to them to be contained in a single ouput So far I'm doing a t.test similar to this
test1=t.test(dat$velocity,x[[1]][[2]])
test2=t.test(dat$velocity,x[[2]][[2]])
test3=t.test(dat$velocity,x[[3]][[2]])