powered by
Apply validation rules or validation results to a data set and select only those that satisfy all or violate at least one rule.
satisfying(x, y, include_missing = FALSE, ...)violating(x, y, include_missing = FALSE, ...)# S3 method for default violating(x, y, include_missing = FALSE, ...)lacking(x, y, ...)
violating(x, y, include_missing = FALSE, ...)
# S3 method for default violating(x, y, include_missing = FALSE, ...)
lacking(x, y, ...)
For satisfying, the records in x satisfying all rules or validation outcomes in y. For violating the records in
satisfying
x
y
violating
x violating at least one of the rules or validation outcomes in y
A data.frame
data.frame
a validator object or a validation object.
validator
validation
Toggle: also select records that have NA output for a rule?
NA
options passed to confront
confront
rules <- validator(speed >= 12, dist < 100) satisfying(cars, rules) violating(cars, rules) out <- confront(cars, rules) summary(out) satisfying(cars, out) violating(cars, out)
Run the code above in your browser using DataLab