inb: Individual's inbreeding coefficient

View source: R/inb.R

inbR Documentation

Individual's inbreeding coefficient

Description

Calculates inbreeding coefficient for an individual.

Usage

inb(ped, id)

Arguments

ped

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

id

: Numeric ID of an individual

Value

Inbreeding coefficient of the individual

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))
inb(ped, 7)


nilforooshan/ggroups documentation built on Sept. 17, 2024, 12:20 p.m.