peddown: Downward pedigree extraction

View source: R/peddown.R

peddownR Documentation

Downward pedigree extraction

Description

Extracts pedigree downward for one or a group of individuals to find their descendants

Usage

peddown(ped, parents, maxgen = c())

Arguments

ped

: data.frame with integer columns corresponding to ID, SIRE, DAM. Missing value is 0.

parents

: Vector of individual ID(s), from which the new pedigree is being extracted.

maxgen

: (optional) a positive integer for the maximum number of generations to proceed. If no value is provided, there is no limitation on the maximum number of generations to proceed.

Value

Extracted pedigree data.frame

Examples

ped = data.frame(ID=1:6, SIRE=c(0,0,1,3,1,4), DAM=c(0,0,2,2,2,5))
peddown(ped, c(1,4))
peddown(ped, 1, maxgen=1)


ggroups documentation built on March 28, 2022, 1:06 a.m.