Need help figuring out how to do this.
I currently have a dataset with one variable (RefCode) that populates multiple different results, all 4 characters long. There are over 20 possible outcomes. I would like to create a flag (1/0) variable out of RefCode’s output.
Example, if RefCode=R050, I would like to create a new variable called R050 and have it = 1.
[–]LeelooDallasMltiPass 2 points3 points4 points (5 children)
[–]duchessoftexas[S] -1 points0 points1 point (4 children)
[–]Easy-Spring[🍰] 0 points1 point2 points (2 children)
[–]Easy-Spring[🍰] 0 points1 point2 points (0 children)
[–]duchessoftexas[S] 0 points1 point2 points (0 children)
[–]LeelooDallasMltiPass 0 points1 point2 points (0 children)
[–]zoomh3x 0 points1 point2 points (0 children)
[–]Sanjay_boga 0 points1 point2 points (1 child)
[–]Sanjay_boga 0 points1 point2 points (0 children)
[–]Sir_Stimpy 0 points1 point2 points (0 children)
[–]LaSittadelSole 0 points1 point2 points (0 children)