The habitat membership matrix,
Value
the habitat membership matrix, denoted
Details
Information about the patch location of each habitat
is passed as the membership vector, an ordered list of patch locations. If
the
Since
nHabitats
, the number of habitats;nPatches
, the number of patches.
If
See also
create_habitat matrix is called by make_xds_template()
and setup_EGG_LAYING()
Examples
create_habitat_matrix(3, c(1,1,2,2,2))
#> [,1] [,2] [,3] [,4] [,5]
#> [1,] 1 1 0 0 0
#> [2,] 0 0 1 1 1
#> [3,] 0 0 0 0 0