get_boundaries: Retrieve Administrative Boundaries

View source: R/get_boundaries.R

get_boundariesR Documentation

Retrieve Administrative Boundaries

Description

This function obtains administrative boundaries for a specific date and type of unit, allowing users to specify the format of the returned object.

Usage

get_boundaries(
  date,
  type = c("magistrate", "bailiwick", "hundred", "court", "municipal", "contract",
    "parish", "county", "pastorship", "diocese", "district_couryt"),
  format = c("sf", "meta"),
  boundary_type = c("polygons", "borders")
)

Arguments

date

A date for which the boundaries should be retrieved.

type

A character vector indicating the type of administrative unit (default options are available). Possible values include: "magistrate", "bailiwick", "hundred", "court", "municipal", "contract", "parish", "county", "pastorship", "diocese", and "district_couryt".

format

A character indicating the format of the returned object (default is "sf").

boundary_type

A character string specifying the type of boundaries to return. Choose between "polygons" (default) for polygon shapes of the administrative units, and "borders" for the multiline border representation of the units.

Examples


county_map <- get_boundaries(1800, "county")

plot(st_geometry(county_map))


junkka/histmaps documentation built on Nov. 11, 2023, 2:11 a.m.