This function gets data generated for the Propensity to Cycle Tool
project and returns objects in the modern sf
class.
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 )
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? |
#> [1] "id" "geo_code1" "geo_code2" "geo_name1" #> [5] "geo_name2" "lad11cd1" "lad11cd2" "lad_name1" #> [9] "lad_name2" "all" "bicycle" "foot" #> [13] "car_driver" "car_passenger" "motorbike" "train_tube" #> [17] "bus" "taxi_other" "govtarget_slc" "govtarget_sic"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)#> Warning: GDAL Message 1: +init=epsg:XXXX syntax is deprecated. It might return a CRS with a non-EPSG compliant axis order.# }