These functions provide common, simple data checks.
chk_dummy(x)
A vector to check.
A logical vector flagging records that have passed or failed the check.
Other vector checks:
chk-dates
,
chk-labels
,
chk-patterns
,
chk-text
,
chk-uniqueness
,
chk-values
chk_dummy(LETTERS)
#> [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
#> [16] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE