I have this dataset and for the life of me, I couldn't figure out how to get it in the format I want. I know that I needed to use melt from reshape package and possibly do a bit of transpose...
Would appreciate any help! Thank you!
Reproducible Data
df <- data.frame("Date" = c("jun", "aug", "dec"), 
                 "A1" = c("1", "3", "5"),
                 "A2" = c(10,11,12))
  Date A1 A2
1  jun  1 10
2  aug  3 11
3  dec  5 12
Intended Output
  Date Category Amt
1  jun       A1   1
2  aug       A1   3
3  dec       A1   5
4  jun       A2  10
5  aug       A2  11
6  dec       A2  12
 
    