flag_dupes | R Documentation |
This function uses dplyr::mutate()
to create a new dupe_flag
logical
variable with TRUE
values for any record duplicated more than once.
flag_dupes(data, ..., .check = TRUE, .both = TRUE)
data |
A data frame to flag. |
... |
Arguments passed to |
.check |
Whether the resulting column should be summed and removed if empty. |
.both |
Whether to flag both duplicates or just subsequent. |
A data frame with a new dupe_flag
logical variable.
flag_dupes(iris, dplyr::everything())
flag_dupes(iris, dplyr::everything(), .both = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.