DownloadCSV: Download Traffic Count Data to .CSV File

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 DownloadCSV is designed to download data found using the RoadData into an appropriate .CSV format.

Usage

1

Arguments

data

The data that the user wishes to aggregate.

Value

A CSV file for each site is downloaded, with the naming convention of "X_DDMMMYYYY-DDMMMYYYY.csv", where "X" denotes the alphanumeric characters of the site's geographic address, "DD" denotes the start and end date days respectively, "MMM" denotes the month as three letters for the start and end date months respectively, and "YYYY" denotes the year for the start and end date years respectively.

Author(s)

RAC Foundation, Luke Hudlass-Galley

Examples

1
DownloadCSV(trafficData)

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