I have a large dataset which has the following format:
Unit ZoneCode
2119601 R1Z
2119601 R1Z
2119601 B1Z
2119602 PUZ2
2119602 R1Z
I would like to produce output that lists - for each unit - each unique ZoneCode that is associated with that Unit.
The output would look like this
Unit ZoneCode
2119601 R1Z
2119602 PUZ2
2119602 R1Z
I would appreciate assistance with R Code to do this