set_N: Assign Values to Habitable Cells in a Population

Description Usage Arguments

Description

Provides a method to assign values to the matrix of population sizes in a population object indexed by cells in the underlying Raster* rather than rows the matrix itself, which records only values at habitable locations.

Usage

1
set_N(x, i, j, ..., value)

Arguments

x

The population object.

i

The rows to replace values of, indexed by cells in x$habitat.

j

The columns to replace values of, or names of genotypes.

...

Arguments passed to "[.matrix"

value

The new values.


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