It's usually standard to provide an example of what code you've tried and also to put your data in a form that can be more easily cut-and-pasted into R.
That said, would something like this work if you know you only have two sorts of cross in each level? lapply(spl, function(x) {x <- split(x[,1],x[,2]); t.test(x[[1]], x[[2]])}) Michael On Fri, Oct 14, 2011 at 10:38 AM, Imri <bisr...@agri.huji.ac.il> wrote: > hi all > > I have R object look like this: >> spl > $SB012XSB044 > DPW Cross > 1 66.6 SB012XSB044 > 2 96.5 SB012XSB044 > 3 78.8 SB012XSB044 > 4 68.6 SB012XSB044 > 5 62.0 SB012XSB044 > 6 72.1 SB044XSB012 > 7 72.2 SB044XSB012 > 8 69.6 SB044XSB012 > 9 87.9 SB044XSB012 > 10 84.4 SB044XSB012 > 11 51.9 SB044XSB012 > 12 65.5 SB044XSB012 > > $SB012XSB099 > DPW Cross > 13 100.9 SB012XSB099 > 14 44.4 SB012XSB099 > 15 83.5 SB012XSB099 > 16 89.9 SB012XSB099 > 17 78.0 SB012XSB099 > 18 83.0 SB012XSB099 > 19 114.3 SB099XSB012 > 20 173.1 SB099XSB012 > 21 114.3 SB099XSB012 > 22 58.8 SB099XSB012 > 23 98.1 SB099XSB012 > 24 12.8 SB099XSB012 > > I want to do a t test for DPW values by the 2 different Cross types for each > of spl components. > Any suggestions? I just got errors till now > > Thanks, > Imri. > > -- > View this message in context: > http://r.789695.n4.nabble.com/Multi-t-tests-tp3905075p3905075.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. > ______________________________________________ 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.