gen.sibship: Get id numbers of siblings

View source: R/fonctionsBase.R

gen.sibshipR Documentation

Get id numbers of siblings

Description

Returns the id numbers of the siblings of specified individuals.

Usage

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

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.

Value

returns a vector of integer

See Also

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

Examples

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))


GENLIB documentation built on Jan. 17, 2023, 5:16 p.m.

Related to gen.sibship in GENLIB...