Finally a way in R to create a simple table of means

with(datasetname, tapply(analysisvariable , list(rowvariable , columnvariable ), mean))

and also after installing reshape and plyr packages:
library(reshape)
cast(bill1, female ~ competitive , value = ‘score2’, fun = mean)

Unknown's avatar

About mkevane

Economist at Santa Clara University and Director of Friends of African Village Libraries.
This entry was posted in Burkina Faso. Bookmark the permalink.