Dear R list,

I think my question maybe easy for you but I really spent entire day to
resolve it.
Say I have a matrix, rows are 6000 genes, columns(1-6) are 3 genotypes
(a,b,c) with 2 repeat.
I have to use two groups each time for t-test, a vs. c or b vs. c, but I
dont know how to write correct codes.
Below is my codes, the last two lines are needed to be corrected....

library("genefilter")
ef <- exprs(esetsub)
kk <- factor(esetsub$genotype == c("a", "c"))
tt <- rowttests(ef[,c(1,2,5,6)], kk)

ps.  column 1-6 is a,a,b,b,c,c
      depending on the document, the kk should be a factor..

Any suggestions are really appreciated!!

Best regards,
Hui-Yi

	[[alternative HTML version deleted]]

