CalcRped: Calculate Pedigree Relatedness

View source: R/CalcRped.R

CalcRpedR Documentation

Calculate Pedigree Relatedness

Description

Morph pedigree into a kinship2 compatible format and use kinship to calculate kinship coefficients; relatedness = 2*kinship.

Usage

CalcRped(Pedigree, OUT = "DF")

Arguments

Pedigree

dataframe with columns id-dam-sire.

OUT

desired output format, 'M' for matrix or 'DF' for dataframe with columns IID1 - IID2 - R.ped.

Value

A matrix or dataframe.


sequoia documentation built on Sept. 8, 2023, 5:29 p.m.