I have a following problem:
My dataframe has a lot of columns. I would like to remove rows that have same values in column X, Y and Z.
See my dataframe:
A B C X Y Z
1 2 3 4 5 6
2 5 4 4 5 6
In the dataframe above I would like to delete the first row, because X, Y and Z are the same in both rows.
I tried this, but it returned me something different:
newtable <- df[!duplicated(df$X, df$Z, df$Z), ]
Thanks a lot!