data-cleaning / errorlocate

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

out domain error for categorical variable not working #14

Closed edwindj closed 6 years ago

edwindj commented 6 years ago

For errorlocate (<=0.1.3) the following code returned FALSE (it should be TRUE)

library(errorlocate)
rules <- validator( x %in% c("A","B"))
data <- data.frame(x = "C")
locate_errors(data, rules)$errors
edwindj commented 6 years ago

Issue is fixed in version 0.1.3 (putting it on CRAN asap)