问题 I am trying to run a two-way ANOVA on multiple subsets of a data frame without having to actually subset the data as this is in-efficient Example data: DF<-structure(list(Sample = c(666L, 676L, 686L, 667L, 677L, 687L, 822L, 832L, 842L, 824L, 834L, 844L), Time = c(300L, 300L, 300L, 300L, 300L, 300L, 400L, 400L, 400L, 400L, 400L, 400L), Ploidy = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L), .Label = c("2n", "3n"), class = "factor"), Tissue = c("muscle", "muscle", "muscle", "liver