population: Construct a 'population' Object.

Description Usage Arguments Value

Description

This puts together the parameters necessary to specify a population object, specifying the reference map (as a Raster), accessible and habitable locations, the genotypes, and the census at each habitable location.

Usage

1
2
3
4
population(habitat, accessible = !is.na(raster::values(habitat)),
  habitable = !is.na(raster::values(habitat)), genotypes = colnames(N),
  N = matrix(0, nrow = sum(habitable), ncol = length(genotypes)),
  description = "", ...)

Arguments

habitat

RasterLayer with values that can be used in other computations.

accessible

Logical vector indicating which cells in 'habitat' that migrants will attempt to go to.

habitable

Locgical vector indicating which cells in 'habitat' that may have positive population.

genotypes

Character vector of the genotypes.

N

Matrix indexed by (habitable cells) x (genotypes) giving the number of each genotype in each habitable cell.

description

A description of this object.

...

Other parameters that are included verbatim in the output object.

Value

A population S3 object (just a named list).


petrelharp/landsim documentation built on May 25, 2019, 2:53 a.m.