write_range_check | R Documentation |
Suggest a range check
write_range_check(d, vars = names(d), min = TRUE, max = FALSE, file = stdout())
suggest_range_check(d, vars = names(d), min = TRUE, max = FALSE)
d |
|
vars |
|
min |
|
max |
|
file |
file to which the checks will be written to. |
suggest_range_check
returns validate::validator()
object with the suggested rules.
write_range_check
write the rules to file and returns invisibly a named list of ranges for each variable.
data(SBS2000, package="validate")
suggest_range_check(SBS2000)
# checks the ranges of each variable
suggest_range_check(SBS2000[-1], min=TRUE, max=TRUE)
# checks the ranges of each variable
suggest_range_check(SBS2000, vars=c("turnover", "other.rev"), min=FALSE, max=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.