vec_permutation_matrices {cxr}R Documentation

Generate templates for dispersal, demography, and permutation matrices

Description

this follows the vec-permutation approach as defined in: Hunter and Caswell 2005, doi:10.1016/j.ecolmodel.2005.05.002, Ozgul et al. 2009, doi: 10.1086/597225

Usage

vec_permutation_matrices(num.sp, num.sites, num.stages)

Arguments

num.sp

integer, number of species

num.sites

integer, number of sites

num.stages

integer, number of stages

Value

nested list, of the form 'list[[type]][[sp]]', where 'type' is demography, dispersal, or permutation.

Examples

# number of demographic stages - this should be always fixed to 3 for 
# compatibility with other functions
num.stages <- 3
num.sp <- 4
num.sites <- 5
vpm <- vec_permutation_matrices(num.sp,num.sites,num.stages)

[Package cxr version 1.1.1 Index]