Prepare an API query with SQL.
prep_sql_query(resource, fields, limit, offset, where)
A character string containing the prepared query.
a character string specifying resource id of the data set to be returned.
a character vector specifying the names of fields to be included in the returned data.
A numeric value specifying the maximum number of rows to be returned.
A numeric value specifying the number of rows to skip.
A character string containing the 'WHERE' element of a simple
SQL SELECT style query. Field names must be double quoted ("}), non
numeric values must be single quoted (\code{"
), and both single and double
quotes must be delimited. Example; where = "\"AgeGroup\" =
\'45-49 years\'"
.