Check for duplicates in a table

check_dups(x)

Arguments

x

data frame: Table holding records

See also

Other functions for validating license data: count_lines_textfile, summary_churn, summary_initial, summary_sale

Examples

library(dplyr) cust <- data.frame(id = 1:3, nm = c("dan k","dan k","dan r")) x <- select(cust, id, nm) %>% distinct() select(x, nm) %>% check_dups()
#> all unique pct_dup #> 1 3 2 50.000%