powered by
Identifies rows with duplicate key values.
find_duplicates(.data, ...)
Data frame containing only the rows with duplicate keys, with a .n column showing the count.
.n
A data frame.
Column names to check. If empty, uses the key columns.
df <- data.frame(id = c(1, 1, 2, 3, 3, 3), x = letters[1:6]) find_duplicates(df, id)
Run the code above in your browser using DataLab