prunePed | R Documentation |
Subsets a pedigree for a specified vector of individuals up to a specified number of previous generations using recursion.
prunePed(ped, selectVector, ngen = 2)
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. |
Returns Subsetted pedigree as a DataFrame.
ped <- pedigree(sire = c(NA, NA, 1, 1, 4, 5),
dam = c(NA, NA, 2, NA, 3, 2),
label = 1:6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.