View source: R/vec_permutation_matrices.R
vec_permutation_matrices | R Documentation |
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
vec_permutation_matrices(num.sp, num.sites, num.stages)
num.sp |
integer, number of species |
num.sites |
integer, number of sites |
num.stages |
integer, number of stages |
nested list, of the form 'list[[type]][[sp]]', where 'type' is demography, dispersal, or permutation.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.