powered by
tab2df(x)
tab2df(table(c(1,2,1,1,1,2,2,2,2),c('a','b','b','a','b','b','a','b','b')))
Run the code above in your browser using DataLab