Description Usage Arguments Details Examples
View source: R/accessibility.R
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).
1 | get_jts_data(table, year = NULL, u_csv = NULL, skip = 6)
|
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) |
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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.