gen.founder {GENLIB} | R Documentation |
Get founder id numbers
Description
Returns the id numbers of the founders. Founders are defined as the individuals without parents in the genealogy (i.e., mother id=0, father id=0).
Usage
gen.founder( gen, ...)
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. |
Value
A vector of integer
See Also
gen.genealogy
gen.pro
gen.half.founder
gen.parent
Examples
data(geneaJi)
genJi<-gen.genealogy(geneaJi)
# There are 6 founders
gen.founder(genJi)
data(genea140)
gen140<-gen.genealogy(genea140)
founder140<-gen.founder(gen140)
# There are 7399 founders
length(founder140)
[Package GENLIB version 1.1.10 Index]