rcpp_recombo_segregate | R Documentation |

Note that this is hard-wired for diploidy.

rcpp_recombo_segregate(G, dims, rf)

`G` |
the structure giving the genotypes of the indviduals. Actually a 3-D array indexed by indiv, locus, gene copy |

`dims` |
the dimensions of the 3-D array G for internal use. |

`rf` |
vector of recombination fractions. There should be one minus the number of loci. The first one corresponds to recombination between the first and the second marker. These are the probabilities of a recombination between the markers during a meiosis. |

The return value is a long vector that can be squished into a matrix as appropriate to put it into the genotype struct.

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.