gen.min: Minimum number of generations

Description Usage Arguments Value See Also Examples

View source: R/fonctionsBase.R

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

1
gen.min( gen, individuals)

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.

Value

returns a vector of integer

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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))

Example output

Loading required package: Rcpp
17 26 
 4  3 
      17       26 
4.285714 6.052632 
17 26 
 5  7 
18311 18430 
    8     9 
   18311    18430 
12.00297 12.47853 
18311 18430 
   15    16 

GENLIB documentation built on May 29, 2017, 4:44 p.m.

Related to gen.min in GENLIB...