Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

FortifyPairs

Make Pairs Fortran Compatible


Description

Convert dataframe Pairs into a list of integer vectors. Called only by CalcPairLL.

Usage

FortifyPairs(Pairs, gID, Renamed, LH)

Arguments

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 PedToNum.

LH

lifehistory dataframe, ID - Sex - BirthYear.

Value

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).


sequoia

Pedigree Inference from SNPs

v2.3.3
GPL-2
Authors
Jisca Huisman [aut, cre]
Initial release
2021-04-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.