Retrieves data associated with a sensor from the Telraam API
Source:R/data_retrieve.R
retrieve_sensor.Rd
Retrieves data associated with a sensor from the Telraam API.
The data is retrieved for a specified time period between start_date
and end_date
(inclusive).
Usage
retrieve_sensor(segment_name, start_date, end_date, key = get_telraam_token())
Arguments
- segment_name
Character. Name of the segment, as specified in config.
- start_date
Date. Start date "aaaa-mm-jj", must be of the date type.
- end_date
Date. End date "aaaa-mm-jj", must be of the date type.
- key
the API key (set by the
set_telraam_token()
function)
Value
Dataframe from Telraam API, enriched with enrich_traffic()
function.