Description Usage Arguments Value Examples
Whereas dplyr::distinct()
removes duplicates, this function
removes unique rows and only shows rows whose values in the specified
columns are duplicates.
1 | duplicates(.data, ...)
|
.data |
data frame |
... |
tidyselect specification of columns |
grouped tibble of duplicate rows
1 | duplicates(data.frame(x = 1:5, y = c(1, 2, 1, 4, 5)), dplyr::everything())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.