FortifyPairs | R Documentation |
Convert dataframe Pairs
into a list of integer vectors.
Called only by CalcPairLL
.
FortifyPairs(Pairs, gID, Renamed, LH)
Pairs |
dataframe with columns ID1 - ID2 - Sex1 - Sex2 - AgeDif - focal - k. |
gID |
character vector with IDs of genotyped individuals. |
Renamed |
length-2 list (dams, sires) each with a 2-column dataframe.
matching character IDs to negative numbers, for dummified individuals.
Element of the list returned by |
LH |
lifehistory dataframe, ID - Sex - BirthYear. |
A named list, with elements ID - Sex - AgeDif - focal. The first two are per individual and thus each have length 2*nrow(Pairs), while the last two have length 1*nrow(Pairs).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.