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 after excuting the code B<-by(eo,eo$PlateID, function(.sub) t.test(mcp1~Self_T1D,data=.sub, na.rm=T)) #ttest platewise do.call(c,lapply(B, function(x) x$p.value)) Error in do.call(c, lapply(B, function(x) x$p.value)) : 'what' must be a character string or a function here "B" is equal to "your_list_with_the_t_tests. is something i am doing wrong > -- View this message in context: http://www.nabble.com/extracting-pvalues-from-ttest-tp25192381p25192381.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.