FortifyPairs: Make Pairs Fortran Compatible

View source: R/CalcPairLL.R

FortifyPairsR Documentation

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 documentation built on Sept. 8, 2023, 5:29 p.m.