Learn R Programming

purgeR (version 1.8.2)

check_Fcol: Check columns with inbreeding values

Description

Takes a column name, and checks its use as inbreeding coefficient. It should name a numeric vector, with values in the range [0,1]

Usage

check_Fcol(ped, Fcol, compute = TRUE)

Value

Vector of inbreeding values (if checks are successful)

Arguments

ped

A dataframe containing the pedigree. Individual (id), maternal (dam), and paternal (sire) identities are mandatory columns.

Fcol

Name of column with inbreeding coefficient values. If none is used, inbreeding will be computed.

compute

Compute inbreeding if Fcol is NULL