I have a dataframe df1 like this:
A    B    C
d    1    4
d    3    5 
e    2    6
e    1    4
I like to move the column names + values of B and C into rows under new columns R1 & R2:
A    R1   R2
d    B    1
d    C    4
d    B    3 
d    C    5
e    B    2
e    C    6
e    B    1
e    C    4
Thanks in advance
 
    