Creates a geographic region (a polygon) on a given map and gives it a name. This can be used to define objects which can be reused in multiple places in a slendr script (such as region arguments of population) without having to repeatedly define polygon coordinates.

region(name = NULL, map = NULL, center = NULL, radius = NULL, polygon = NULL)

Arguments

name

Name of the geographic region

map

Object of the type sf which defines the map

center

Two-dimensional vector specifying the center of the circular range

radius

Radius of the circular range

polygon

List of vector pairs, defining corners of the polygon range or a geographic region of the class slendr_region from which the polygon coordinates will be extracted (see the region() function)

Value

Object of the class slendr_region