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,
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
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
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
4 matches
Mail list logo