I have the following data frame
| neto | damo |
|---|---|
| 356 | 008 |
| -356 | 008 |
| -175 | 009 |
| 700 | 009 |
| -700 | 009 |
| 250 | 009 |
| -36 | 018 |
| -36 | 018 |
| -36 | 018 |
I want to eliminate the data with its counterpart conditioned to the ID and that it looks like this:
| neto | damo |
|---|---|
| -175 | 009 |
| 250 | 009 |
| -108 | 018 |
I have tried to put it in absolute values and leave the value that is unique, but this can produce an error if both are negative and should not be eliminated.