Learn R Programming

visPedigree (version 1.0.1)

inbreed: Calculate inbreeding coefficients

Description

inbreed function calculates the inbreeding coefficients for all individuals in a tidied pedigree.

Usage

inbreed(ped, ...)

Value

A tidyped object with an additional column f.

Arguments

ped

A tidyped object.

...

Additional arguments (currently ignored).

Details

This function takes a pedigree tidied by the tidyped function and calculates the inbreeding coefficients using optimized C++ code based on the Meuwissen & Luo (1992) algorithm. It is the core engine used by both tidyped(..., inbreed = TRUE) and pedmat(..., method = "f"), ensuring consistent results across the package. It is significantly faster than standard R implementations for large pedigrees.