Skip to contents

Diffusion

Usage

sit_diffusion(
  x,
  pool = FALSE,
  spatial_adjustment = TRUE,
  following_releases,
  following_days,
  species = NULL
)

Arguments

x

A sit object or a sit_adult_surveys object (in which case, following_releases, following_days and species are ignored).

pool

Logical. Whether to aggregate data from released populations.

spatial_adjustment

Logical. Whether to adjust observations to account for a irregular spatial arrangement of traps.

following_releases

A sit_release object with a subset of release events or missing (default) for all release events. Use in combination with following_days to filter surveys of the target populations within a given number of days after release. Note that counts of wild populations will always be included in the results with a value of NA in pop_col.

following_days

Integer or missing (default). Number of days after releases to return, if following_releases is not missing.

species

a character vector of species to be returned. Defaults to NULL, which ignores the species variable.

Value

A named numeric vector with one value for each requested level.

Examples

(diff_prototype <- sit_diffusion(sit_prototype))
#> 
#> ── Diffusion coefficient ───────────────────────────────────────────────
#> 
#> 
#> population      Dest
#> -----------  -------
#> blue          860.72
#> red           139.33
#> yellow        173.71
#> 
plot(diff_prototype)