Re: [R] error in test

2008-07-25 Thread jim holtman
Why do you declare a function 'wilcox.test' and then inside the function, call 'wilcox.test' again? The second 'recursive' call now has parameters that your function knows nothing about. I would advise you changing your function's name to something else. On Sat, Jul 26, 2008 at 12:52 AM, Paul Ad

[R] error in test

2008-07-25 Thread Paul Adams
Hello everyone, I am trying to use the following code: dat<-read.table(file="C:\\Documents.txt") class2<-read.table(file="C:\\Documents.txt") class1<-read.table(file="C:\\Documents .txt") dat<-as.data.frame(dat) dimnames(dat)[[1]]<-paste("g",c(1:nrow(dat)),sep="") l<-c(0,0,0