Learn R Programming

pct (version 0.9.1)

get_pct_zones: Get zone results from the PCT

Description

Wrapper around [get_pct()] that gets zone data from the PCT.

Usage

get_pct_zones(
  region = NULL,
  purpose = "commute",
  geography = "lsoa",
  extension = ".geojson"
)

Arguments

region

The PCT region or local authority to download data from (e.g. west-yorkshire or Leeds). See View(pct_regions_lookup) for a full list of possible region names.

purpose

Trip purpose (typically school or commute)

geography

Geographic resolution of outputs, msoa or lsoa (the default)

extension

The type of file to download (only .geojson supported at present)

Examples

Run this code
# NOT RUN {
# don't test to reduce build times
z = get_pct_zones("isle-of-wight")
plot(z)
# }

Run the code above in your browser using DataLab