Description Usage Arguments Examples
View source: R/MGDrivE-Releases.R
Sets up a list containing the probability of a batch migration, the fractional
amount of males/females that migrate, and the weighted probabilities for where
to migrate. The default weights for migration are equal for all patches.
These can be changed after running the function. This is only used in
1 2 3 4 5
basicBatchMigration( batchProbs = 1e-05, sexProbs = c(0.01, 0.01), numPatches = 1 )
Probability of a batch migration, either 1 number or a vector of length equal to the number of patches
Population fraction of males and females that migrate. Either a vector c(M,F) or matrix of 2 columns
Number of patches in the simulation
# to setup for 3 patches batchMigration = basicBatchMigration(batchProbs = 1e-5, sexProbs = c(0.1, 0.01), numPatches = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.