Get breakdown by date and a single property
pa_get_breakdown_by_date.Rd
This facilitates caching daily stats.
Arguments
- start_date
Earliest day to include in the output. Defaults to 8 days ago in order to include the last full week of data. Date is expected in the format "YYYY-MM-DD", either as character or Date.
- end_date
Most recent day to include in the output. Defaults to yesterday in order to include the last full week of data. Date is expected in the format "YYYY-MM-DD", either as character or Date.
- limit
Defaults to 1000, to reduce the need for pagination, which is currently not supported.
- cache
Defaults to TRUE. If TRUE, caches data in a local sqlite database, stored under a folder named as the website in the current working directory. The sqlite database is named after the chosen properties, hence there shouldn't be problems in caching data for different websites or different combinations of properties.
- wait
Numeric, defaults to 0.1. As this function is likely to make a high number of requests to the API, a small pause is added between each request to reduce load on the servers. description
Details
However, the same data can mostly be retrieved more efficiently using the
timeseries
endpoint, setting the optional interval
parameter to date (not
yet integrated in the pa_get_timeseries()
function).