Uses a verified catalogue; latest means the latest verified vintage in the installed catalogue, not an unrecorded live change. Boundaries are BGC (20 m generalised, coast clipped). Region polygons cover England. Census hierarchy and current administrative lookups are attached with separate vintages.
Usage
sl_boundaries(
type,
vintage = "latest",
dir = sl_cache_dir(),
codes = NULL,
lookups = TRUE
)Value
An sf object with geography_code, geography_name, source metadata
and lookups, or NULL with a message when the source is unavailable.
See also
sl_assign_geography(), sl_population()
Other ingest:
sl_archive_download(),
sl_archive_index(),
sl_archive_snapshot(),
sl_assign_geography(),
sl_cache_clear(),
sl_cache_dir(),
sl_contract(),
sl_exposure(),
sl_list_versions(),
sl_population(),
sl_population_crosstab(),
sl_read_records(),
sl_sample(),
sl_select_version()
Examples
boundaries <- readRDS(system.file("extdata", "sample-boundaries.rds",
package = "searchlight"
))
boundaries$lsoa21[1, "geography_code"]
#> Simple feature collection with 1 feature and 1 field
#> Geometry type: POLYGON
#> Dimension: XY
#> Bounding box: xmin: -1.764669 ymin: 53.84234 xmax: -1.746633 ymax: 53.85079
#> Geodetic CRS: WGS 84
#> geography_code geometry
#> 1 E01010568 POLYGON ((-1.749345 53.8490...