Learn R Programming

GENLIB (version 1.0.4)

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", ...)

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.

Value

returns a list containing the following: Fathers Mothers

See Also

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

Examples

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

# }

Run the code above in your browser using DataLab