crosstabToCases function

Convert a crosstabulation into a data frame of cases.