prunePed: Subsets a pedigree for a specified vector of individuals up...

View source: R/pedigree.R

prunePedR 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)

pedigreeTools documentation built on Oct. 12, 2024, 9:07 a.m.