I would like to remove cases where the combination of two columns also appears as a reverse combination in those two same columns
Below is the input and desired output.
It doesn't matter if the first or second occurrence is kept.
Data:
df <- data.frame(
"x1" = 1:6,
"x2" = c(2,1,4,3,6,5),
"x3" = c("a","b", "c","d","e","f"))