Create a dispersal kernel
dispersal_kernel(
formula,
coefs,
habitat = NULL,
other.vars = NULL,
start,
max.dist,
init.dir = amt::as_rad(45),
standardize = TRUE,
raster = TRUE,
stop = 0
)
A list with the following entries
formula
: The formula used to construct the dispersal kernel.
coefs
: The selection coefficients.
habitat
: Habitat covariates used to construct the dispersal kernel.
other.var
: Other (time) varying covariates used to construct the dispersal kernel.
start
: The start position.
max.dist
: The maximum distance of the dispersal kernel.
init.dir
: The initial direction of the dispersal kernel.
standardize
: Whether or not the dispersal kernel was standardized.
raster
: Should a RasterLayer
be returned.
stop
: What happens when the animal steps outside the landscape.
prep_dk
: Metrics for each cell in the dispersal kernel (e.g., step length, direction, ...)
dispersal_kernel
: A RasterLayer if raster = TRUE
or a tibble
of the dispersal kernel.
[formula]
The formula for the dispersal kernel.
[named numeric]{>1}
Coefficients for the terms in the formula. Names of the coefficients must match the name of the terms.
[RasterLayer]
The habitat matrix / landscape.
[data.frame = NULL]
Possible other covariates.
[numeric(2)]
Coordinates of the start position.
[numeric(1)]
The maximum distance of the dispersal kernel.
[numeric(1)]
The initial direction in rad.
[logical(1) = TRUE]
Should the result be standardized.
[logical(1) = TRUE]
Should a RasterLayer
be returned.
[integer(1)=1]{0,1}
What happens when the animal steps out of the landscape.