rg: Genetic relationship coefficient

View source: R/rg.R

rgR Documentation

Genetic relationship coefficient

Description

Calculates genetic relationship coefficient between two individuals.

Usage

rg(ped, id1, id2)

Arguments

ped

: data.frame with integer columns corresponding to ID, SIRE, DAM. Missing value is 0.

id1

: Numeric ID of an individual

id2

: Numeric ID of an individual

Value

Genetic relationship coefficient between the two individuals

Examples

ped = data.frame(ID=1:7, SIRE=c(0,0,1,1,3,1,5), DAM=c(0,0,0,2,4,4,6))
rg(ped, 5, 6)


ggroups documentation built on March 28, 2022, 1:06 a.m.