data-cleaning / errorlocate

Find and replace erroneous fields in data using validation rules
http://data-cleaning.github.io/errorlocate/
22 stars 3 forks source link

NA values for logical variables fail #29

Closed edwindj closed 3 years ago

edwindj commented 3 years ago

This statement failed, because NA values for logical where not handled correctly...

rules <- validator(if (age >=18) adult == TRUE)
data <- data.frame(age = 15, adult=NA)
el <- locate_errors(data, rules)$errors