ped_clean {purgeR} | R 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
Examples
data(arrui)
nrow(arrui)
arrui <- ped_clean(arrui, "survival15")
nrow(arrui)
[Package purgeR version 1.8.2 Index]