I have a data frame having the following structure
Value1 Value2 Value3
A,B,C L,K T
L B,P A
D,F,J A,B,C P
I want to reshape this data to the following format
Value1 Value2 Value3
A L T
B L T
C L T
A K T
B K T
C K T
L B A
L P A
D A P
F A P
J A P
D B P
F B P
J B P
D C P
F C P
J C P
Any help will be much appreciated.