write_unique_check {validatesuggest}R Documentation

Suggest range checks

Description

Suggest range checks

Usage

write_unique_check(d, vars = names(d), file = stdout(), fraction = 0.95)

suggest_unique_check(d, vars = names(d), fraction = 0.95)

Arguments

d

data.frame, used to generate the checks

vars

character optionally the subset of variables to be used.

file

file to which the checks will be written to.

fraction

if values in a column > fraction unique, the check will be generated.

Value

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.


[Package validatesuggest version 0.3.2 Index]