[R] Using apply for two datasets

Gang Chen gangchen6 at gmail.com
Tue Jan 6 18:24:36 CET 2009


I can run one-sample t-test on an array, for example a matrix myData1,
with the following

apply(myData1, 2, t.test)

Is there a similar fashion using apply() or something else to run
2-sample t-test with datasets from two groups, myData1 and myData2,
without looping?

TIA,
Gang




More information about the R-help mailing list