Description Usage Arguments Value Examples
This operates on an ancestry match matrix and uses a simple, divide-by_two relationship between an ancestor and its descendants in the ordering of an ancestry vector to determine which of the matching ancestors are secondary, and then return the ones that are primary.
1 |
M |
an ancestry match matrix (it is a logical matrix) |
A list of pairs. Each pair is the 1-based index of ancestor of ind_1, then ind_2 of the primary shared ancestors.
1 2 | # find primary ancestor pairs of example AMMs
lapply(example_amms, primary_ancestor_pairs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.