Description Usage Arguments Value Examples
View source: R/speedestimates.R
Expected disperal speed for migration model, allowing dispersal to occur before fixation
1 2 |
r1 |
birth rate of cells in the destination deme, relative to reference birth rate |
r2 |
birth rate of migrating cells, relative to r1 |
K |
deme carrying capacity |
m |
migration rate per cell, relative to birth rate |
migration_type |
0 or 1 (see details) |
symmetric |
whether migration occurs in both directions |
two_dim |
whether to adjust for two-dimensional growth |
d |
migration distance relative to 1/sqrt(K) |
approx |
if TRUE, return the approximate value when r2 -> r1 (weak selection) and r1 = 1 |
The growth rate of the radius, measured in cells (not demes).
1 2 3 4 5 6 7 8 9 | disp_rate(1, 1.01, 2, 0.1, 0)
disp_rate(1, 1.01, 2, 0.1, 0, approx = TRUE)
disp_rate(1, 1.01, 2, 0.1, 1)
# no difference between migration_type = 0 and migration_type = 1 when r1*r2 = 1:
sapply(0:1, disp_rate, r1 = 0.5, r2 = 2, K = 32, m = 0.1)
# otherwise expect a difference:
sapply(0:1, disp_rate, r1 = 0.5, r2 = 3, K = 32, m = 0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.