Unfortunately, I was not able to find out how to drop a pair of duplicates. Let's say we have variables ID, X and Y and the data looks as follows:
I would like to identify ID1 and ID2 as a pair and drop ID2. However, this does not work with "duplicates". Do you have an efficient solution for this problem?
Thank you!
ID | X | Y |
1 | 1 | 2 |
2 | 2 | 1 |
3 | 3 | 5 |
4 | 4 | 6 |
Thank you!
Comment