Description Usage Arguments Value
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.
1 2 | sdd_set_probs(ncell, lc.df, g.p, edges = "wall", lc.col = 4:9,
verbose = F)
|
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 |
|
lc.col |
|
verbose |
|
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.