Hi there,
I am looking for a code to reshape my data from this:
To this:
I would greatly appreciate your help.
Thanks!
I am looking for a code to reshape my data from this:
id | Option |
A | 1 |
A | 2 |
B | 1 |
C | 2 |
C | 3 |
id | Option_1 | Option_2 | Option_3 |
A | 1 | 1 | 0 |
B | 1 | 0 | 0 |
C | 0 | 1 | 1 |
Thanks!
Comment