Displaying 1 result from an estimated 1 matches for "tmpgeno".
Did you mean:
tmpgenc
2011 Dec 04
1
Complex multiple t tests in a data frame with several id factors
...ric,6 Numeric,6
cu Numeric,6 Numeric,6
zn Numeric,6 Numeric,6
# check whether the order of data has been preserved after aggregation
> x['fe', 'brain']
[[1]]
[1] 8.497498 9.280944 9.726271 11.556397 10.992550 9.711200
# create an external factor for strain grouping
> tmpgeno = rep(c('exp', 'wt'), each=3)
> tmpgeno
[1] "exp" "exp" "exp" "wt" "wt" "wt"
# do the t test using the grouping factor
> x = tapply(elemconc$conc, elemconc[c('elem', 'region')], function(x) t.test(x...