disperse: Simulate dispersal across a spatial grid

View source: R/RcppExports.R

disperseR Documentation

Simulate dispersal across a spatial grid

Description

Simulate dispersal across a spatial grid

Usage

disperse(S, N, reflect = TRUE, rand = TRUE, seed = 1L)

Arguments

S

A matrix of seed counts across a spatial grid.

N

A neighbor matrix, e.g. produced by neighborhood().

reflect

Should dispersers exit the domain (FALSE) or bounce off the domain boundary (TRUE, default)?

rand

Randomize dispersal? (default = TRUE)

seed

Integer to seed random number generator.

Value

A matrix of post-dispersal seed counts of the same dimension as S.


matthewkling/stranger documentation built on Feb. 25, 2024, 2:31 p.m.