Check for duplicates in a table
check_dups(x)
| x | data frame: Table holding records |
|---|
Other functions for validating license data: count_lines_textfile,
summary_churn,
summary_initial, summary_sale
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%