Skip to content
Prev 138314 / 398506 Next

Calculating the t-test for each row

You can try this:

cbind(data.sub, p.value=apply(data.sub, 1, function(x)t.test(x)$p.value))
On 03/03/2008, Keizer_71 <christophe.lo at gmail.com> wrote: