I currently have data that looks like this:
a X 0
a Y 0
a Y 1
b X 0
b Y 0
b Z 1
c X 1
c Y 1
c Z 0
Where abc is the individual, XYZ is the method, and 01 is whether that individual uses that method.
How do I reshape my data so that I have dummy variables for each method that take the value 1 if that individual uses that method?
Thank You
0 Response to Reshape Long to Wide to create dummy variables
Post a Comment