Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

ODBC Microsoft Access Error: missing operator

$
0
0

Running a query using dplyr on a microsoft access database from R 3.6.2 using DBI and odbc results in a syntax error "missing operator".

The query:

db %>% 
  filter(year(Date) == 2017)

The field Date is stored as This query has worked for me in the past. From the error message I can see that it is translated as (EXTRACT(year FROM `Date`) = 2017.0), which to my knowledge should be valid SQL.

Have I stumbled on a bug or am I doing something wrong? If so, what is the correct way of doing this?


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>