I think that you can use mapply for this.

On Tue, Jan 6, 2009 at 3:24 PM, Gang Chen <gangch...@gmail.com> wrote:

> 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
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to