# Example of a growth function that changes the populations based on a transition matrix that
# is subject to global stochasticity.
if (FALSE) {
stoch_growth <- growth(transition_matrix = egk_mat, global_stochasticity = egk_mat_stoch)
ls <- landscape(population = egk_pop, suitability = NULL, carrying_capacity = NULL)
pd <- population_dynamics(change = stoch_growth)
simulation(landscape = ls, population_dynamics = pd, habitat_dynamics = NULL, timesteps = 20)
}
Run the code above in your browser using DataLab