View source: R/filter_duplicates.R
filter_duplicates | R Documentation |
Filter duplicated row by the columns indicated in by
filter_duplicates(data, by)
data |
a data.frame-like |
by |
a character vector indicating the columns to consider to identify duplicated rows |
a data.table, subset of the original data, containing only
duplicated rows by the columns indicated in by
, and including an
additional column .ndups with the number of duplicated rows for each group.
The returned data are sorted by the columns, to be able to inspect
the duplicated together
filter_duplicates(ggplot2::diamonds, by = c("carat", "cut", "price"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.