data.frame
with identical values for the specified variables.get_dupes(dat, ...)
tbl_df
) with the full records where the specified variables have duplicated values, as well as a variable dupe_count
showing the number of rows sharing that combination of duplicated values.
get_dupes(mtcars, mpg, hp)
# or called with magrittr pipe %>% :
library(dplyr)
mtcars %>% get_dupes(wt)
Run the code above in your browser using DataLab