I am using sqldf package and sql analyze one table generated by a classification model.
But when I use the code:
table<-sqldf("
SELECT a,
b,
c,
d,
e,
f,
CASE WHEN (REGEXP_LIKE(t, '\b(2nd time|3rd time|4th time)\b')) = TRUE
THEN 1 ELSE 0 END AS UPSET_NOT_LIKE,
regexp_extract(t, '\b(2nd time|3rd time|4th time)\b')) as Word
FROM cls
")
It looks like that the sqldf package don't have regexp_like and regexp_extract function.
Is there any sql-advanced packages that I can use to do the query?