df
[,1] [,2]
[1,] "a" "b"
[2,] "a" "c"
[3,] "a" "d"
[4,] "b" "a"
[5,] "b" "c"
[6,] "b" "d"
[7,] "c" "a"
[8,] "c" "b"
[9,] "c" "d"
Let's assume have a data.frame like this and I want to remove duplicates in sense of across the column
df1
[,1] [,2]
[1,] "a" "b"
[2,] "a" "c"
[3,] "a" "d"
[5,] "b" "c"
[6,] "b" "d"
[9,] "c" "d"
I want to end up like this.