how can I use a vector to select multiple unique kentekens in RSocrata?
The following function works fine, where the where
argument allows me to filter on a single kenteken value.
kentekens <- RSocrata::read.socrata(
"https://opendata.rdw.nl/resource/m9d7-ebf2.json?$where=kenteken = '0001ES'")
However, I have a vector of (nearly 2000) kentekens of which I want to obtain information from this database. Is it possible to query for this vector, and if so, how?
Unfortunately, RSocrata does not offer a way to support R objects in the query. Howevery, it is rather simple to build a
for
loop and query each kenteken individually.