I have a crosstab:
1 Erratic Intermittent Lumpy Smooth
2
Intermittent 20 77 9 450
Lumpy 10 6 1 13
Unknown 0 13 1 1
Result:
1 2 Value
Intermittent Erratic 20
Lumpy Erratic 10
Unknown Erratic 0
Intermittent Intermittent 77
Lumpy Intermittent 6
Unknown Intermittent 13
Intermittent Lumpy 9
Lumpy Lumpy 1
Unknown Lumpy 1
Intermittent Smooth 450
Lumpy Smooth 13
Unknown Smooth 1
Basically I need to convert that matrix to simple dataframe