Learn R Programming

GENLIB (version 1.1.9)

gen.pro: Get proband id numbers

Description

Returns the id numbers of the probands. Probands are defined as the individuals without children in the genealogy.

Usage

gen.pro( 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.founder gen.half.founder gen.parent gen.children

Examples

Run this code
data(geneaJi) 
genJi<-gen.genealogy(geneaJi) 
# There are 3 probands
gen.pro(genJi)


data(genea140) 
gen140<-gen.genealogy(genea140)
gen.pro(gen140)
# There are 140 probands

Run the code above in your browser using DataLab