Convert table to data frame saving structure
Table2df(table)
table
Convert contingency table into data frame and keep structure.
Data frame
Alexey Shipunov
Table2df(table(iris[, 5]))
Useful links