subsetPedigree: Subset a pedigree

View source: R/quantgen.R

subsetPedigreeR Documentation

Subset a pedigree

Description

From a pedigree, extract a subset of individuals.

Usage

subsetPedigree(ped, inds)

Arguments

ped

data frame containing the input pedigree with three columns named "parent1", "parent2" and "child"; if "parent1" is different than "parent2", it is an allofecundation; if "parent1" is the same as "parent2" it is an autofecundation; if "parent2" is missing it is a haplodiploidization

inds

vector of individual names (present in the "child" column of "ped") for which their ancestors will be retrieved, up to the founders

Value

data frame

Author(s)

Julien Diot [cre,aut], Timothee Flutre [ctb]

See Also

plotPedigree


timflutre/rutilstimflutre documentation built on Feb. 7, 2024, 8:17 a.m.