Re: [R] Apply t-test on list in R

2015-02-25 Thread Zilefac Elvis via R-help
Many thanks, Petr.You solved my problem.AT. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-proje

Re: [R] Apply t-test on list in R

2015-02-25 Thread PIKAL Petr
Hi I did not seen any answer so I try one. If you have data frames organised in list I would use a for cycle. If your list is named mylist something like result <- list() k=0 for(i in n:m) { k=k+1 result[[k]] <- t.test(mylist[[x]], mylist[[i]]) } where x is a number for the one data frame you