I\'d like to subset a dataframe to include only rows that have unique combinations of three columns. My situation is similar to the one presented in this question, but I\'d
I know it's an very old question, but anyway thought that the obvious solution using the unique() function should also be presented here:
unique(df[1:3])
or specifiying columns by names:
unique(df[c("v1","v2","v3)]
...and specifying rows:
unique(df[,c("v1","v2","v3)]