remove duplicate in one column r keep first code example Example: remove duplicate values in data frame r df <- df %>% distinct()