pop_t: Number of equivalent complete generations

View source: R/generations.R

pop_tR Documentation

Number of equivalent complete generations

Description

Computes the number of equivalent complete generations (t), as defined by Boichard et al (1997).

Usage

pop_t(ped, name_to = "t")

Arguments

ped

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

name_to

A string naming the new output column.

Value

The input dataframe, plus an additional column corresponding to the number of equivalent complete generations of every individual (named "t" by default).

References

  • Boichard D, Maignel L, Verrier E. 1997. The value of using probabilities of gene origin to measure genetic variability in a population. Genet. Sel. Evol., 29: 5-23.

See Also

pop_Ne

Examples

data(dama)
dama <- pop_t(dama)
tail(dama)

purgeR documentation built on Aug. 16, 2023, 9:07 a.m.