Drop rows which are duplicates regarding certain columns
I want to identify and remove observations which are duplicates in certain aspects. In my example, I want to get rid of rows 1 and 6, as they are the same in both V1 and V2. That they differ in V3 shouldn’t matter. df <- data.frame(V1 = c("a","b","c","a","c","a"), V2 = c(1,2,1,2,3,1), V3 = c(1,2,3,4,5,6)) Applying… Read More Drop rows which are duplicates regarding certain columns