drop all duplicate columns except one in R code example Example: remove duplicate values in data frame r df <- df %>% distinct()