tab2df {caroline} | R Documentation |
Convert a table to a dataframe while perserving the same number of columns and rows and names of each.
tab2df(x)
x |
a table class object (output from the table command). |
table
tab2df(table(c(1,2,1,1,1,2,2,2,2),c('a','b','b','a','b','b','a','b','b')))