read_sf: Get UK boundary shapefiles

View source: R/read_sf.R

read_sfR Documentation

Get UK boundary shapefiles

Description

read_sf downloads boundaries from the ONS Open Geography Portal.

Usage

read_sf(
  geog,
  year = 2021,
  nations = c("E", "S", "W", "N"),
  type = "BGC",
  crs = 4326
)

Arguments

geog

Type of boundaries

Administrative Boundaries available:

- Countries/Nations ("NAT")

- Regions (England ONLY) ("GOR")

- Upper Tier Local Authorities ("UTLA")

- Lower Tier Local Authorities ("LAD")

Census Boundaries available:

- Output Area ("OA")

- Lower Super Output Area ("LSOA")

- Middle Super Output Area ("MSOA")

Electoral Boundaries available:

- Westminster Parliamentary Constituencies ("WM")

- European Union Parliamentary Constituencies ("EU")

- Welsh Assembly Constituencies ("WAC")

- Welsh Assembly Regions ("WAR")

Eurostat NUTS Boundaries available:

- NUTS Level 1 (NUTS1)

- NUTS Level 2 (NUTS2)

- NUTS Level 3 (NUTS3)

year

Year (use available_sf() to see available years for each set of boundaries)

nations

For which UK nations (c("E","W","S","N"))

type

Boundary clipping

- "BFE": Full Resolution Extent of the Realm (Low Tide)

- "BFC": Full Resolution Clipped (High Tide)

- "BGC": Generalised (20m) Clipped (High Tide)

- "BUC": Ultra Generalised (500m) Clipped (High Tide)

crs

Coordinate Reference System (ESPG).

It is recommend to use 4326 (World Geodetic System) or potentially 27700 (UK OS British National Grid)

Value

Output is a simple feature sf object containing the relevant boundaries.

Examples

read_sf("NAT")
read_sf("MSOA", year = 2011)
read_sf("EU", year = 2018, type = "BFC")
read_sf("NUTS1", year = 2018, nations = "E")

## Not run: 
read_sf("UTLA", nations = c("E","W"))
read_elec("WM")

## End(Not run)


l-hodge/uk-geog documentation built on Sept. 5, 2022, 5:28 p.m.