Hi
I need to clean data in doing so I need to create a dummy variable. I want to see if for common ids the first 4 letters of the zip are similar or not
here a small example what I want to let the dummy do:
I would be super nice if somebody could help me.
Best,
JB
I need to clean data in doing so I need to create a dummy variable. I want to see if for common ids the first 4 letters of the zip are similar or not
here a small example what I want to let the dummy do:
id | zip | dummy | .. | ||
1 | 12345 | 1 | |||
1 | 12344 | 1 | |||
2 | 12332 | 0 | |||
2 | 12342 | 0 |
Best,
JB
Comment