We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If we supply a dataset missing a column/variable which is mentioned in the rules set. It just ignored the variable or gave strange errors.
library(errorlocate) rules <- validator(x > 0, y > 0) # loading data without y! data <- data.frame(x = 1) le <- locate_errors(data, rules) le$errors
## x ## [1,] FALSE
rules <- validator(x > y, y > 0, z > 0) data <- data.frame(x = 0, y = 1) le <- locate_errors(data, rules) le$errors
## x y ## [1,] TRUE NA
The text was updated successfully, but these errors were encountered:
Fixed in version 0.3.2, Automatically a column is added to the dataset with NA and a warning is generated.
library(errorlocate) rules <- validator(x > 0, y > 0) data <- data.frame(x = 1) le <- locate_errors(data, rules)
## Warning: Adding missing columns 'y'=NA to data.frame.
le$errors
## x y ## [1,] FALSE NA
rules <- validator(x > y, y > 0, z > 0) data <- data.frame(x = 0, y = 1) le <- locate_errors(data, rules)
## Warning: Adding missing columns 'z'=NA to data.frame.
## x y z ## [1,] TRUE FALSE NA
Sorry, something went wrong.
fixed issue #22
71a78f0
Choose a different solution: missing a data column now gives an error. (>=0.3.3)
fix issue #22
97dce48
No branches or pull requests
If we supply a dataset missing a column/variable which is mentioned in the rules set. It just ignored the variable or gave strange errors.
The text was updated successfully, but these errors were encountered: