census_neighborhoods: Construct Census Functions for a Set of Neighborhoods

Description Usage Arguments Value

Description

Given a population object and a set of neighborhoods as returned by sample_neighborhoods, construct a list of functions, the k-th of which, applied to a matrix of genotype counts form a population object, will return the vector of total numbers of the k-th genotype occurring in each neighborhood.

Usage

1
census_neighborhoods(pop, neighborhoods)

Arguments

pop

A population object.

neighborhoods

A list whose element "neighborhoods" is a SpatialPolygons object.

Value

A list of functions, one for each genotype.


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