get_pct {pct} | R Documentation |
Generic function to get regional data from the PCT
Description
This function gets data generated for the Propensity to Cycle Tool
project and returns objects in the modern sf
class.
Usage
get_pct(
base_url = "https://github.com/npct/pct-outputs-regional-notR/raw/master",
purpose = "commute",
geography = "lsoa",
region = NULL,
layer = NULL,
extension = ".geojson",
national = FALSE
)
Arguments
base_url |
Where the data is stored. |
purpose |
Trip purpose (typically |
geography |
Geographic resolution of outputs, |
region |
The PCT region or local authority to download data from (e.g. |
layer |
The PCT layer of interest, |
extension |
The type of file to download (only |
national |
Download nationwide data? |
Examples
## Not run:
rf = get_pct(region = "isle-of-wight", layer = "rf")
names(rf)[1:20]
vars_to_plot = 10:13
plot(rf[vars_to_plot])
z = get_pct(region = "isle-of-wight", layer = "z")
rf = get_pct(region = "west-yorkshire", layer = "rf")
z_all = get_pct(layer = "z", national = TRUE)
## End(Not run)
[Package pct version 0.9.9 Index]