Learn R Programming

GENLIB (version 1.1.10)

gen.half.founder: Get half-founder id numbers

Description

Returns the id numbers of the half-founders. Half-founders are defined as the individuals with only one known parent in the genealogy (i.e., either mother id=0 or father id=0).

Usage

gen.half.founder( gen, ...)

Value

returns a vector of integer

Arguments

gen

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

...

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

See Also

gen.genealogy gen.pro gen.founder gen.parent

Examples

Run this code
data(geneaJi) 
genJi<-gen.genealogy(geneaJi) 
# There are 2 half-founders
gen.half.founder(genJi)

Run the code above in your browser using DataLab