is_complete | R Documentation |
Utility function to make common tests easier.
is_complete(...)
all_complete(...)
... |
When used in a validation rule: a bare (unquoted) list of variable names. When used directly, a comma-separated list of vectors of equal length. |
For is_complete
A logical vector that is FALSE
for each record
that has at least one missing value.
For all_unique
a single TRUE
or FALSE
.
Other cross-record-helpers:
contains_exactly()
,
do_by()
,
exists_any()
,
hb()
,
hierarchy()
,
is_linear_sequence()
,
is_unique()
d <- data.frame(X = c('a','b',NA,'b'), Y = c(NA,'apple','banana','apple'), Z=1:4)
v <- validator(is_complete(X, Y))
values(confront(d, v))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.