I want to reshape my dataset that has missing data from long to wide using two columns' values as the new dataset's columns. Here is an example:
ID Survey Question Response
1 1 1 1
1 1 2 2
1 2 1 3
1 2 2
1 2 3 4
1 3 1 3
1 3 2 4
2 1 1 2
2 1 2
2 2 1 6
2 2 2 2
2 2 3 3
2 3 1
2 3 2 5
I want it to look like this
ID Survey1.Q1 Survey1.Q2 Survey2.Q1 Survey2.Q2 Survey2.Q3 Survey3.Q1 Survey3.Q1
1 1 2 3 4 3 4
2 2 6 2 3 5