View source: R/module.migration.R
migration | R Documentation |
Module function for migrations between two populations
migration(dat, at)
dat |
Master list object containing a |
at |
Current time step. |
New migrations from both directions (from population 1 to 2; and from population 2 to 1) will happen based on migration rates and population size for each population stocastically determined with with draws from Poisson distributions. For each new entry, a set of attributes is added for that node, and the nodes are added onto the network objects. Only attributes that are a part of the network model formulae are updated as vertex attributes on the network objects.
This function updates the attr
list with new attributes for each new
population member, and the nw
objects with new vertices.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.