Skip to content
Prev 275262 / 398503 Next

Summary stats in table

I had to set it up as a data frame and then it workd beautifully with the reshape package.  
 
DF<-data.frame(A,B,x)
library(reshape)

cast(DF, A ~ B, fun.aggregate=mean, 
     margins=c("grand_row", "grand_col"))
 
Cheers
Tyler
----------------------------------------