Re: [R] creating a file of p.values

2008-11-12 Thread Peter Dalgaard
jim holtman wrote: > Try something like this (untested): > > Pvalues <- lapply(1:25, function(x)get(paste("A", i, sep=""))$p.value) He probably wants to start one level earlier, with the X1, etc. How about nm <- paste("X", 1:9, sep="") fml <- lapply(nm, function(nm)eval(bquote(.(as.name(nm))~t

Re: [R] creating a file of p.values

2008-11-12 Thread Erik Iverson
Hello - [EMAIL PROTECTED] wrote: Hi all, I am performing hundreds of kruskal wallis tests and trying to figure out how to create a file of the p.values I obtain. This is the code I use for the tests: A2<-kruskal.test(X2~treatment) A3<-kruskal.test(X3~treatment) A4<-kruskal.test(X4~treatment)

Re: [R] creating a file of p.values

2008-11-12 Thread jim holtman
Try something like this (untested): Pvalues <- lapply(1:25, function(x)get(paste("A", i, sep=""))$p.value) On Wed, Nov 12, 2008 at 11:15 AM, <[EMAIL PROTECTED]> wrote: > Hi all, > I am performing hundreds of kruskal wallis tests and trying to figure out > how to create a file of the p.values I o

[R] creating a file of p.values

2008-11-12 Thread lave0083
Hi all, I am performing hundreds of kruskal wallis tests and trying to figure out how to create a file of the p.values I obtain. This is the code I use for the tests: A2<-kruskal.test(X2~treatment) A3<-kruskal.test(X3~treatment) A4<-kruskal.test(X4~treatment) A5<-kruskal.test(X5~treatment) A6<