Takes the results from table() and returns them as a data frame.
After the table() results are made into a data frame, all the variables
are made into character columns, and the function also restores the
column types to their original classes. For strata columns,
only observed combinations are returned.