prunePed {pedigreeTools} | R Documentation |
Subsets a pedigree for a specified vector of individuals up to a specified number of previous generations using recursion.
Description
Subsets a pedigree for a specified vector of individuals up to a specified number of previous generations using recursion.
Usage
prunePed(ped, selectVector, ngen = 2)
Arguments
ped |
Data Frame pedigree to be subset |
selectVector |
Vector of individuals to select from pedigree |
ngen |
Number of previous generations of parents to select starting from selectVector. |
Value
Returns Subsetted pedigree as a DataFrame.
Examples
ped <- pedigree(sire = c(NA, NA, 1, 1, 4, 5),
dam = c(NA, NA, 2, NA, 3, 2),
label = 1:6)
[Package pedigreeTools version 0.2 Index]