fill_dispersal_matrix {cxr}R Documentation

Fill the vec-permutation dispersal matrix

Description

Fill for a given species, all sites

Usage

fill_dispersal_matrix(
  focal.sp,
  num.sites,
  param,
  vpm,
  env = NULL,
  current.densities
)

Arguments

focal.sp

integer, focal species

num.sites

integer, how many sites

param

param nested list,see 'build_param' function

vpm

data structure holding all vector-permutation matrices; see 'vec_permutation_matrices'

env

optional numeric, environmental forcing for a given timestep

current.densities

list of length sp, each element is a matrix sites*stages

Value

dispersal matrix, stages*sites


[Package cxr version 1.1.1 Index]