Suggest range checks
write_unique_check(d, vars = names(d), file = stdout(), fraction = 0.95)suggest_unique_check(d, vars = names(d), fraction = 0.95)
suggest_unique_check returns validate::validator() object with the suggested rules.
write_unique_check write the rules to file and returns invisibly a named list of checks for each variable.
data.frame, used to generate the checks
character optionally the subset of variables to be used.
file to which the checks will be written to.
if values in a column > fraction unique,
the check will be generated.