set_proportion_dispersing {steps} | R Documentation |
Set proportions of populations dispersing
Description
This function allows a user to specify what proportions of populations in each life-stage disperse. It operates similarly on all cells and in all timesteps throughout a simulation.
Usage
set_proportion_dispersing(proportions = 1)
Arguments
proportions |
A single value or vector of proportions (between zero and one) of individuals in each life stage that disperse - default is 1. If proportions are specified as a single number, then all life-stages disperse with that proportion, however, a vector of proportions (equal in length to the number of life-stages) can also be specified. To prevent stages from dispersing, set corresponding values to zero. |
Value
An object of class dispersal_proportion_function
Examples
# Example of a proportion function that disperses no population in the first life stage,
# 50% of the second, and 90% of the 3rd.
## Not run:
prop_dispersal <- set_proportion_dispersing(proportions = c(0, 0.5, 0.9))
kb_dispersal <- kernel_dispersal(dispersal_proportion = prop_dispersal,
max_distance = 2000,
dispersal_kernel = exponential_dispersal_kernel(distance_decay = 1000))
ls <- landscape(population = egk_pop, suitability = egk_hab, carrying_capacity = egk_k)
pd <- population_dynamics(change = growth(egk_mat), dispersal = kb_dispersal)
simulation(landscape = ls, population_dynamics = pd, habitat_dynamics = NULL, timesteps = 20)
## End(Not run)
[Package steps version 1.3.0 Index]