This is a (high ungeneralized) helper function. Current function assumes that row_label1 groups row_label2, and turns row_label1 into a stub over its related groups of row_label2.

nest_rowlabels(.dat)

Arguments

.dat

Input data set - should come from a built Tplyr table.

Value

data.frame with row labels nested