I have a data frame like this that was produced using the 'reshape' function. I was wondering whether there was an 'opposite' to the reshape function that allows me to turn a data frame from wide to long based on multiple columns?
I have this:
ID Date.1 Site.1 Brand.1 Date.2 Site.2 Brand.2
A-001 2021-05-21 Place A Brand A 2021-06-01 Place B Brand C
A-002 2021-05-19 Place D Brand A 2021-05-19 Place D Brand D
But would like this:
ID Seq Date Site Brand
A-001 1 2021-05-21 Place A Brand A
A-001 2 2021-06-01 Place B Brand C
A-002 1 2021-05-19 Place D Brand A
A-002 2 2021-05-19 Place D Brand D
Thanks!