Learn R Programming

purgeR (version 1.8.2)

ped_clean: 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)

Value

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

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.

See Also

ped_rename

Examples

Run this code
data(arrui)
nrow(arrui)
arrui <- ped_clean(arrui, "survival15")
nrow(arrui)

Run the code above in your browser using DataLab