Re: [R] Using perm.t.test() upon Matrix/Dataframe columns parted by factor instead of t.test()

2011-07-30 Thread Gunnar Oehmichen
Just checked. To get lapply to work for the both functions, I have to convert the matrix M into a dataframe. Trying it with apply for the matrix works perfectly fine. The missing x was the problem So here my improved code. require(Deducer)#Package for perm.t.test c(rep(A, 5), rep(B,

[R] Using perm.t.test() upon Matrix/Dataframe columns parted by factor instead of t.test()

2011-07-29 Thread Gunnar Oehmichen
Hello dear subscribed Users, this is my first post, so please forgive me for any inconveniences. The following problem: I have a dataframe containing a factor column. For each column i would like to compare means as parted by the factor. Using the normal t.test function I have already achieved

Re: [R] Using perm.t.test() upon Matrix/Dataframe columns parted by factor instead of t.test()

2011-07-29 Thread R. Michael Weylandt michael.weyla...@gmail.com
Just a hunch I can't test from my phone, but in your final lapply you are passing a function of x that has no x in it, so I wouldn't be surprised if R was unhappy about that. Change the latter M's to x and see if that helps. Cheers Michael Weylandt On Jul 29, 2011, at 6:30 AM, Gunnar

Re: [R] Using perm.t.test() upon Matrix/Dataframe columns parted by factor instead of t.test()

2011-07-29 Thread David Winsemius
On Jul 29, 2011, at 9:11 AM, R. Michael Weylandt michael.weyla...@gmail.com wrote: Just a hunch I can't test from my phone, but in your final lapply you are passing a function of x that has no x in it, so I wouldn't be surprised if R was unhappy about that. Change the latter M's to x