suggest_rules {validatesuggest} | R Documentation |
Suggest rules
Description
Suggests rules using the various suggestion checks.
Use the more specific suggest
functions for more control.
Usage
suggest_rules(
d,
vars = names(d),
domain_check = TRUE,
range_check = TRUE,
pos_check = TRUE,
type_check = TRUE,
na_check = TRUE,
unique_check = TRUE,
ratio_check = TRUE,
conditional_rule = TRUE
)
suggest_all(
d,
vars = names(d),
domain_check = TRUE,
range_check = TRUE,
pos_check = TRUE,
type_check = TRUE,
na_check = TRUE,
unique_check = TRUE,
ratio_check = TRUE,
conditional_rule = TRUE
)
write_all_suggestions(
d,
vars = names(d),
file = stdout(),
domain_check = TRUE,
range_check = TRUE,
type_check = TRUE,
pos_check = TRUE,
na_check = TRUE,
unique_check = TRUE,
ratio_check = TRUE,
conditional_rule = TRUE
)
Arguments
d |
|
vars |
|
domain_check |
if |
range_check |
if |
pos_check |
if |
type_check |
if |
na_check |
if |
unique_check |
if |
ratio_check |
if |
conditional_rule |
if |
file |
file to which the checks will be written to. |
Value
returns validate::validator()
object with the suggested rules.
write_all_suggestions
write the rules to file and returns invisibly a named list of ranges for each variable.
[Package validatesuggest version 0.3.2 Index]