Defines a spatial range of a population and its most important parameters.

population(
  name,
  time,
  N,
  parent,
  map = NULL,
  center = NULL,
  radius = NULL,
  coords = NULL,
  region = NULL,
  remove = NULL,
  intersect = TRUE
)

Arguments

name

Name of the population

time

Time of the population's first appearance

N

Number of individuals at the time of first appearance

parent

Parent population object or "ancestor" (indicating that the population does not have an ancestor, and that it is the first population in its "lineage")

map

Object of the type spannr_map which defines the world context (created using the world function)

center

Two-dimensional vector specifying the center of the circular range

radius

Radius of the circular range

coords

List of vector pairs, defining corners of the polygon range (see also the region argument)

region

Geographic region of the class spannr_region

remove

Time at which the population should be removed

intersect

Intersect the population's boundaries with landscape features?

Value

Object of the class spannr_pop

Details

There are three ways to specify a spatial boundary: i) circular range specified using a center coordinate and a radisu, ii) polygon specified as a list of two-dimensional vector coordinates, iii) polygon as in ii), but defined (and named) using the region function.