
Last chance! 50% off unlimited learning
Sale ends in
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
oneDay_Migration_Stochastic_Network
.
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
# NOT RUN {
# to setup for 3 patches
batchMigration = basicBatchMigration(batchProbs = 1e-5, sexProbs = c(0.1, 0.01), numPatches = 3)
# }
Run the code above in your browser using DataLab