I have a dataframe "a" which looks like this
a1  a2  a3
a   1   45
b   2   55
c   4   34
d   3   87
and I need to convert this dataframe into a list, which looks like this
a   a2  1
a   a2  2
a   a2  4
a   a2  3
b   a3  45
b   a3  55
b   a3  34
b   a3  87
How can I do this in R?
 
     
    