Provides a method to read and store population configuration.
1 2 | make_population(habitat, inaccessible.value, uninhabitable.value, genotypes,
N = 0, extent)
|
habitat |
A RasterLayer, or the path to the file where the raster is stored. |
inaccessible.value |
The values in the raster that should be marked as inaccessible. |
uninhabitable.value |
The values in the raster that should be marked as not habitable. |
genotypes |
A character vector of genotypes. |
N |
Numerical value(s) to initialize the matrix of genotype counts with. |
extent |
A raster::extent object (or a vector of xmin,xmax,ymin,ymax) to crop the habitat with. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.