Learn R Programming

AGHmatrix (version 2.1.4)

filterpedigree: Filter the pedigree to keep only the genealogy of a subset of individuals

Description

Filter the pedigree to keep only the genealogy of a subset of individuals

Usage

filterpedigree(inds, data)

Value

a data frame with pedigree containing the genealogy of the selected individuals

Arguments

inds

vector with strings of individuals to keep their genealogy in the matrix

data

name of the pedigree data frame. Default=NULL.

Author

Rodrigo R Amadeu, rramadeu@gmail.com

Examples

Run this code
data(ped.sol)
new.ped.sol = filterpedigree(inds = c("MSW168-2","W14090-3","W14090-4"),data=ped.sol)

Run the code above in your browser using DataLab