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

Description Usage Arguments Value Author(s) Examples

View source: R/secondaryscripts.R

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 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.

Usage

1
SelectRushHour(data, isolate)

Arguments

data

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

isolate

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.

Value

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.

Author(s)

RAC Foundation, Luke Hudlass-Galley

Examples

1
M25DataRushHour <- SelectRushHour(M25Data, isolate = TRUE)

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