DataAggregator: Aggregate Traffic Count Data over Time

Description Usage Arguments Value Author(s) Examples

Description

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.

Usage

1

Arguments

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.

Value

A compressed version of the format of data, where the data has been summarised into n minute intervals.

Author(s)

RAC Foundation, Luke Hudlass-Galley

Examples

1
2
fifteenMinuteDataSummary <- DataAggregator(trafficData, 15)
hourlyData_M4 <- DataAggregator(M4_Road_Data, 60)

RACFoundation/oneminutetrafficdata documentation built on May 28, 2019, 2:26 p.m.