Learn R Programming

GENLIB (version 1.1.9)

gen.parent: Get id numbers of parents

Description

Returns the id numbers of the parents of specified individuals.

Usage

gen.parent( gen, individuals, output = "FaMo", ...)

Value

returns a list containing the following: Fathers

Mothers

Arguments

gen

An object of class GLgen obtained with gen.genealogy, gen.lineages or gen.branching. Required.

individuals

Vector of individual id numbers. Required.

output

If output="FaMo" (default) then both mothers and fathers are included. "Mo" outputs mothers only and "Fa", fathers only.

...

Option to pass additionnal arguments automaticaly between methods. Internal use only.

See Also

gen.genealogy gen.pro gen.founder gen.children gen.sibship

Examples

Run this code
data(geneaJi) 
genJi<-gen.genealogy(geneaJi) 
gen.parent(genJi, individuals=c(3,21,29)) 

Run the code above in your browser using DataLab