get_boundaries_areaname {sgapi}R Documentation

Get Boundaries Using Area Names

Description

Extract a geojson shapefile of the chosen areas at the user-selected resolution.

Usage

get_boundaries_areaname(boundary,col_name_var,chosen_constituency_list)

Arguments

boundary

The resolution of constituencies, e.g. Census Output Areas or Westminster Constituencies. Available boundaries can be found here: https://geoportal.statistics.gov.uk/

col_name_var

The name of the datafield where the constituency name is held, e.g. PCON22NM for 2022 Parliamentary Constituencies.

chosen_constituency_list

List of chosen constituencies.

Value

An sf object of the constituencies submitted to the function. If there are no constituencies, return is NULL.

Examples

get_boundaries_areaname(boundary="Local_Authority_Districts_December_2022_UK_BGC_V2",
col_name_var="LAD22NM",chosen_constituency_list=c("Westminster","Tower Hamlets","County Durham"))


[Package sgapi version 1.0.2 Index]