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

See Also

pop_Ne

Examples

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

[Package purgeR version 1.8.2 Index]