View source: R/fonctionsBase.R
gen.min | R Documentation |
Returns the minimum number of generations between all probands and the individuals specified. Probands are defined as the individuals without children in the genealogy.
gen.min( gen, individuals)
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. |
returns a vector of integer
gen.genealogy
gen.mean
gen.max
gen.depth
gen.meangendepth
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.