View source: R/draw_comm_next_gen.R
draw_comm_next_gen | R Documentation |
From the trait values of the current community, compute the fitness, draw offspring, apply mutations and resolve speciation events.
draw_comm_next_gen(
comm,
growth_rate = default_growth_rate(),
competition_sd = default_competition_sd(),
trait_opt = default_trait_opt(),
carrying_cap_opt = default_carrying_cap_opt(),
carrying_cap_sd = default_carrying_cap_sd(),
mutation_sd = default_mutation_sd(),
trait_dist_sp = default_trait_dist_sp()
)
comm |
a tibble with one row per individual in the community and three columns:
|
growth_rate |
numeric |
competition_sd |
numeric |
trait_opt |
numeric. The optimal trait value, |
carrying_cap_opt |
numeric, value of the carrying capacity at
|
carrying_cap_sd |
numeric |
mutation_sd |
numeric |
trait_dist_sp |
numeric, the minimal trait distance between two clusters of individuals triggering speciation. |
Théo Pannetier
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.