reproductive_value: Reproductive value

View source: R/RcppExports.R

reproductive_valueR Documentation

Reproductive value

Description

Computes the reproductive value

Usage

reproductive_value(
  ped,
  reference,
  name_to,
  target = NULL,
  enable_correction = TRUE
)

Arguments

ped

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

reference

A string naming a column indicating whether individuals belong to the reference population or not. Column must be boolean or coercible to boolean type.

name_to

A string naming the new output column.

target

A string naming a column indicating whether individuals belong to the target population or not. Column must be boolean or coercible to boolean type. By default, all descendants of the reference population are used.

enable_correction

Correct reproductive values.

Value

The input dataframe, plus an additional column with reproductive values for the reference and target populations assumed.

References

Hunter DC et al. 2019. Pedigree-based estimation of reproductive value. Journal of Heredity 110 (4): 433-444


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