SelectRushHour: Isolate or Remove Rush Hour Times with Traffic Count Data

Description Usage Arguments Value Author(s) Examples

View source: R/secondaryscripts.R


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 (login required) in the form of .tcd.bz2 files.

The function RushHourFunction allows the user to either remove or isolate the rush hour periods, defined from 07:30 - 09:30 and 16:00 - 18:00 each day.


SelectRushHour(data, isolate)



The data that the user wishes to isolate or remove the rush hour data from.


A paramater, which if equal to TRUE, will return just the rush hour data. If set to FALSE, it will return the data that is not during rush hour.


A version of the format of data, either with just the rush hour data or just the data that is not during rush hour, depending on if the isolate parameter is set to TRUE or FALSE respectively.


RAC Foundation, Luke Hudlass-Galley


M25DataRushHour <- SelectRushHour(M25Data, isolate = TRUE)

RACFoundation/oneminutetrafficdata documentation built on Dec. 2, 2018, 1:14 p.m.