I'm trying to validate a column in a dataset using validate package in R.
To validate the column, I'm using a list from a csv that contains different "size" values.
library(validate)
data(SBS2000)
rule <- validator(size %in% read.csv("validationlist.csv")$size)
out <- confront(SBS2000, rule)
summary(out)
The output is telling that there are no rows in my dataset to check ("passes = 0" but should be 60)
name items passes fails nNA error warning expression
1 V1 0 0 0 0 TRUE FALSE size %vin% read.csv[["size"]]
Why is the confront function not working?