I'm working on some data and almost 4 variables has this characteristics:
DptResidence DeathIndex
-1-Not defined 0-No
54-North 1-Yes
81-South 0-No
I need to create or duplicate this variables erasing "-" from numbers, but maintaining relationship between numbers with names, i.e.
CodeResidence DptResidence DeathIndexCod DeathIndex
1 Not defined 0 No
54 North 1 Yes
81 South 0 No
I've tried to find some information online, however I can't find something useful to solve this problem.