RE: [R] Questions of t.test {stats}

2004-10-19 Thread Ted Harding
On 19-Oct-04 pcscan wrote: We are currently using the t-test in Package stats, [...] but have some troubles : 1. why does the t-test take so a long time to perform a single test on a row of a data.frame ? Is there any alternative function to perform t-test on all the rows of a

Re: [R] Questions of t.test {stats}

2004-10-19 Thread Marta Rufino
Dear colegue, I am not sure if it is this what you want, but to apply the t.test to all rows in a data frame, you can do like: apply(dataframe, 1, t.test) If you want to store the results in a nice data frame, to us after, then you should do a function, for example: