GENLIB (version 1.1.10)

gen.min: Minimum number of generations

Description

Returns the minimum number of generations between all probands and the individuals specified. Probands are defined as the individuals without children in the genealogy.

Usage

gen.min( gen, individuals)

Value

returns a vector of integer

Arguments

gen

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

individuals

A vector of ids specifying the individuals to include in the calculation. Required.

See Also

gen.genealogy gen.mean gen.max gen.depth gen.meangendepth

Examples

Run this code
data(geneaJi) 
genJi<-gen.genealogy(geneaJi) 
gen.min(genJi,c(17,26))
gen.mean(genJi,c(17,26))
gen.max(genJi,c(17,26))


data(genea140) 
gen140<-gen.genealogy(genea140) 
gen.min(gen140,c(18311,18430))
gen.mean(gen140,c(18311,18430))
gen.max(gen140,c(18311,18430))

Run the code above in your browser using DataLab