Re: [R] extracting pvalues from ttest

2009-09-08 Thread 1Rnwb
Hello, I am using "B" as a vector to store all the t.tests. since i am a newbie to both R and statistics I am not sure if "B" is the list. Also I see "c" used in the do.call formula and do not know what it is being used for. I used aggregate but getting this error" Error in aggregate.data.frame(eo

Re: [R] extracting pvalues from ttest

2009-09-08 Thread 1Rnwb
okay fixed it by putting "c" in quote marks. 1Rnwb wrote: > > Hello, I am using "B" as a vector to store all the t.tests. since i am a > newbie to both R and statistics I am not sure if "B" is the list. Also I > see "c" used in the do.call formula and do not know what it is being used > for. I

Re: [R] extracting pvalues from ttest

2009-08-28 Thread Jun Shen
I never used "by". Is "B" a list? If not, I am not sure if lapply can take it. Try aggregate(). On Fri, Aug 28, 2009 at 10:53 AM, 1Rnwb wrote: > > Hello list, > > I have a similar issue as this post > http://tolstoy.newcastle.edu.au/R/e6/help/09/04/11438.html#options2 and I > used the suggestion

[R] extracting pvalues from ttest

2009-08-28 Thread 1Rnwb
Hello list, I have a similar issue as this post http://tolstoy.newcastle.edu.au/R/e6/help/09/04/11438.html#options2 and I used the suggestion provided by Jorge with modifications to my data do.call(c,lapply(your_list_with_the_t_tests,function(x) x$p.value)) but I am getting the following error