get_jts_data: Get accessibility data for particular year and table number

Description Usage Arguments Details Examples

View source: R/accessibility.R

Description

The DfT's Journey Time Statistics are outlined here on the [gov.uk website](https://www.gov.uk/government/statistical-data-sets/journey-time-statistics-data-tables-jts).

Usage

1
get_jts_data(table, year = NULL, u_csv = NULL, skip = 6)

Arguments

table

The title of the table, e.g. "jts0501"

year

The year, e.g. 2017

u_csv

The csv url (not usually needed)

skip

How many lines to skip before the data starts (6 by default)

Details

The function uses a data frame of existing tables, created by the script 'accessibility_tables.R' in the data-raw folder.

The tables starting JTS01 to JTS03 provide national overview data. The tables JTS0401 to JTS0409 provide data at the Local Authority level. The tables JTS0501 to JTS0509 provide the same data at the LSOA level. The tables beginning JTS09 provide data on accessibility to transport hubs. And the tables beginning JTS10 contain add other variables.

Data is provided every year from 2014 to 2019 in many cases

Examples

1
2
3
4
5
6
7
jts_tables
jts_tables$table_title
get_jts_data(table = "jts0101", year = 2017, skip = 7)
# uncomment on released version
# get_jts_data(table = "jts0401", year = 2017)
# get_jts_data(table = "jts0402", year = 2017)
# get_jts_data(table = "jts0402", year = 2014)

cyipt/acton documentation built on Jan. 29, 2021, 7:30 a.m.