how to eliminate duplicate records from a column in r code example Example: remove duplicate values in data frame r df <- df %>% distinct()