remove duplicate entries in r dataframe code example
Example 1: remove duplicate row in df
df = df.drop_duplicates()
Example 2: remove duplicate values in data frame r
df <- df %>% distinct()
df = df.drop_duplicates()
df <- df %>% distinct()