expandDataFrame function

Expand summary table of patterns and frequencies