a quick rcpp based implementation because the abind in the R implementation gobbles up a lot of time. For this you just pass in a vector for pop1 and a vector for pop2 that says where each individual goes. That way we can do the individual selection outside of this function.

1 | ```
rcpp_dispersal_placement(P1, P2, d1, d2, a1, a2)
``` |

`P1` |
first pop struct, indexed by indiv, locus, gene copy |

`P2` |
second pop struct |

`d1` |
dim of first pop struct |

`d2` |
dim of second pop struct |

`a1` |
assignments of individuals in pop 1 to either pop 1 or 2 |

`a2` |
assignments of individuals in pop 2 to either pop 1 or 2 |

eriqande/gids documentation built on May 13, 2017, 8:21 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.