sdd_set_probs: Set short distance dispersal probabilities

Description Usage Arguments Value

View source: R/fn_dispersal.R

Description

Assign base dispersal probabilities from each cell. Each layer k in [1:i, 1:j, k, source.id] is the SDD neighborhood for cell n. k=1 contains pr(SDD | source.id,i,j); k=2 contains the grid id for each cell in the neighborhood.

Usage

1
2
sdd_set_probs(ncell, lc.df, g.p, edges = "wall", lc.col = 4:9,
  verbose = F)

Arguments

ncell

Number of inbound grid cells

lc.df

Dataframe or tibble with xy coords, land cover proportions, and cell id info

g.p

Named list of global parameters

edges

"wall" Boundary behavior

lc.col

4:9 Column indexes for land cover proportions

verbose

FALSE Give updates for number of cells completed?

Value

List with full neighborhoods,i, sparse representation, sp, and sparse dataframe sp.df. The full array has dim(disp.rows, disp.cols, 2, ncell) where the third dimension contains grid id's for the neighborhood or probabilities to each target cell. The sparse representation contains a list with containing the cells dispersing into each cell and a list with the associated probabilities. The sparse dataframe is a dataframe with a row for each non-zero i-j pair with columns for i, j, and dispersal probability


Sz-Tim/gbPopMod documentation built on Dec. 7, 2020, 1:07 p.m.