Learn R Programming

GENLIB (version 1.1.10)

gen.sibship: Get id numbers of siblings

Description

Returns the id numbers of the siblings of specified individuals.

Usage

gen.sibship( gen, individuals, halfSibling = TRUE, ...)

Value

returns a vector of integer

Arguments

gen

An object of class GLgen obtained with gen.genealogy, gen.lineages or gen.branching. Required.

individuals

Vector of individual id numbers. Required.

halfSibling

If halfSibling=TRUE (default) then ids of halfsiblings are also returned. halfSibling=FALSE returns only full sibling ids.

...

Option to pass additionnal arguments automaticaly between methods. Internal use only.

See Also

gen.genealogy gen.pro gen.founder gen.children gen.parent

Examples

Run this code
data(geneaJi) 
genJi<-gen.genealogy(geneaJi) 
gen.sibship(genJi, individuals=21,halfSibling=TRUE) 


data(genea140) 
gen140<-gen.genealogy(genea140) 
sibs<-gen.sibship(gen140,individuals=10174, halfSibling=FALSE)
gen.graph(gen140, pro=c(10174,sibs))

Run the code above in your browser using DataLab