Suggest a check for completeness.
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.
suggest_na_check
returns validate::validator()
object with the suggested rules.
write_na_check
write the rules to file and returns invisibly a named list of ranges for each variable.
data(retailers, package="validate")
# will generate check for all columns in retailers that are
# complete.
suggest_na_check(retailers)
#> Object of class 'validator' with 2 elements:
#> NA1: is.complete(size)
#> NA2: is.complete(incl.prob)