Hi,
I have a large dataset that is kind of poorly set up. It looks kind of like this:
Pain_location
Start_date
Patient
Head
2022-03-05
Maddie
Abdomen
2022-04-20
Jeff, Chris, Ali, Zara
Head
2022-04-22
John, Peter
Back
2022-06-01
Elizabeth
Back
2022-06-15
Frank, Jane, Alice
Hip
2022-06-15
Betty
I want to change it to a more vertical form based on the last column to look like below. I have looked around but cannot figure it out. Can you please help me out?Thanks,
Pain_location
Start_date
Patient
Head
2022-03-05
Maddie
Abdomen
2022-04-20
Jeff
Abdomen
2022-04-20
Chris
Abdomen
2022-04-20
Ali
Abdomen
2022-04-20
Zara
Head
2022-04-22
John
Head
2022-04-22
Peter
Back
2022-06-01
Elizabeth
Back
2022-06-15
Frank
Back
2022-06-15
Jane
Back
2022-06-15
Alice
Hip
2022-06-15
Betty
... View more