r remove duplicate rows based on multiple columns code example Example: remove duplicate values in data frame r df <- df %>% distinct()