# NOT RUN {
## Extract arrays from dataframe (much like xtabs() but with more flexibility)
data(cad1)
df2xtabs(cad1, ~Sex:AngPec:AMI)
df2xtabs(cad1, c("Sex", "AngPec", "AMI"))
df2xtabs(cad1, c(1, 2, 3))
# }
Run the code above in your browser using DataLab