gen.nochildren {GENLIB} | R Documentation |
Number of children
Description
Returns the number of children for specified individuals
Usage
gen.nochildren( gen, individuals)
Arguments
gen |
An object of class GLgen obtained with gen.genealogy, gen.lineages or gen.branching. Required. |
individuals |
A vector of ids of the individuals on each of whom the number of chidren is to be returned. Required. |
Value
A vector containing the number of children for each individual sepcified.
See Also
gen.genealogy
gen.nowomen
gen.noind
gen.nomen
gen.children
Examples
data(geneaJi)
genJi<-gen.genealogy(geneaJi)
gen.children(genJi,14)
gen.nochildren(genJi,individuals=c(1,12,14,20))
data(genea140)
gen140<-gen.genealogy(genea140)
children51052<-gen.children(gen140,51052)
gen.nochildren(gen140,51052)
gen.graph(gen140, pro=children51052)
[Package GENLIB version 1.1.10 Index]