Re: [R] How to extract p-value into a table from a groups of t test

2009-04-15 Thread Bert Gunter
To: r-help@r-project.org Subject: [R] How to extract p-value into a table from a groups of t test Hi, I have run a groups of t test and obtained a list of the t-test results (about 30). How do I extract p-values from the 30 t-test results and make a table output? Thanks Jun Example t-test out

[R] How to extract p-value into a table from a groups of t test

2009-04-15 Thread Jorge Ivan Velez
Dear Jun, Try this: do.call(c,lapply(your_list_with_the_t_tests,function(x) x$p.value)) HTH, Jorge On Wed, Apr 15, 2009 at 4:29 PM, Jun Shen wrote: > Hi, > > I have run a groups of t test and obtained a list of the t-test results > (about 30). How do I extract p-values from the 30 t-test r

[R] How to extract p-value into a table from a groups of t test

2009-04-15 Thread Jun Shen
Hi, I have run a groups of t test and obtained a list of the t-test results (about 30). How do I extract p-values from the 30 t-test results and make a table output? Thanks Jun Example t-test output: $Lambda_z Welch Two Sample t-test data: x[PA1.BS.DN$Onec