pop_t {purgeR} | R 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
Examples
data(dama)
dama <- pop_t(dama)
tail(dama)
[Package purgeR version 1.8.2 Index]