Description Usage Arguments Value Author(s) Examples
Motorway Incident Detection and Automatic Signalling (MIDAS) is a sensor based network along UK motorways, and is designed to collect data regarding traffic flows, average speeds and road occupancy, amongst other features, on the road network. This data can be accessed via the MIDAS website https://www.midas-data.org.uk/ (login required) in the form of .tcd.bz2 files.
The function DataAggregator
is designed to collect and summarise data the dataframe
generated by the RoadData function over a given number of minutes.
1 | DataAggregator(data, n)
|
data |
The data that the user wishes to aggregate. |
n |
The number of minutes that the user wishes to aggregate over. Note that this number must be a factor of the number of minutes in a day (1440 minutes). For example, 15 is a valid number, whereas 23 is not. |
A compressed version of the format of data
, where the data has been summarised into
n
minute intervals.
RAC Foundation, Luke Hudlass-Galley
1 2 | fifteenMinuteDataSummary <- DataAggregator(trafficData, 15)
hourlyData_M4 <- DataAggregator(M4_Road_Data, 60)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.