find_const: Find constituency from latitude and longitude.

View source: R/geography.R

find_constR Documentation

Find constituency from latitude and longitude.

Description

Finds the constituency (Vision of Britian G_NAME) of a latitude and longitude location.

Usage

find_const(
  lat,
  lon,
  boundary_label,
  constituencies_shapes_list = durhamevp::const_shape_list,
  col_to_return = "G_NAME"
)

Arguments

lat

the latitude to check.

lon

the longitude to check.

boundary_label

The name in the list of the Simple Feature dataframe to use.In the default list the options are: 1832, 1862, 1868, 1870, 1885 (also the values returned by the date_to_boundary_year function).

constituencies_shapes_list

The constituencies. A named list of Simple Features dataframes. The names identify which Simple Features Dataframe to use.


gidonc/durhamevp documentation built on April 8, 2022, 10:31 a.m.