ped_clean: Remove individuals not used for purging analyses

View source: R/clean.R

ped_cleanR Documentation

Remove individuals not used for purging analyses

Description

Remove individuals that are not necessary for purging analyses involving fitness. This will reduce the size of the pedigree, and speed up the computation of inbreeding parameters. Individuals removed include those with unknown (NA) values of a given parameter, as long as they do not have any descendant in the pedigree with known values of that parameter. Cleaned pedigrees will automatically have individual identities renamed (see ped_rename).

Usage

ped_clean(ped, value_from)

Arguments

ped

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

value_from

Name of the column of interest.

Value

A dataframe with the pedigree cleaned for the specificed parameter (column) provided.

See Also

ped_rename

Examples

data(arrui)
nrow(arrui)
arrui <- ped_clean(arrui, "survival15")
nrow(arrui)

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