fill_transition_matrix {cxr}R Documentation

Fill a transition matrix

Description

Calculates the elements of a site-specific transition matrix for a given sp. Note that here, and through all functions, we fix three life stages. Also note that 'param' and 'env' must match, as for the 'vital_rate' function.

Usage

fill_transition_matrix(focal.sp, site, param, env = NULL, current.densities)

Arguments

focal.sp

integer, species

site

integer, site

param

param structure (see 'build_param' function)

env

optional numeric, environmental forcing for a given timestep

current.densities

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

Value

3x3 transition matrix


[Package cxr version 1.1.1 Index]