data-cleaning/dcmodifydb

%in% statement is not working

edwindj opened this issue · 1 comments

%in% statement generates an error (is a validate "feature")

library(dcmodify)
library(dcmodifydb)
m <- modifier(if (nace %in% c("A")) turnover <- 0)
d <- dbplyr::memdb_frame(nace ="A", turnover = 10)
modify(d, m)
Error: near "vin": syntax error
In addition: Warning message:
 Error: near "vin": syntax error Warning message:
Errors, so rolling back / undoing the modifications. 

Thanks to Marlou van de Sande for reporting

Fixed