R: Get id numbers of siblings

gen.sibship {GENLIB} | R Documentation

## Get id numbers of siblings

### Description

Returns the id numbers of the siblings of specified individuals.

### Usage

    gen.sibship( gen, individuals, halfSibling = "T", ...)

### 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="T" (default) then ids of halfsiblings are also returned. halfSibling="F" 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))

[Package GENLIB version 1.0.8 Index]