gen.parent: Get id numbers of parents

View source: R/fonctionsBase.R

gen.parentR Documentation

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

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


GENLIB documentation built on Jan. 17, 2023, 5:16 p.m.

Related to gen.parent in GENLIB...