R: Get id numbers of parents

gen.parent {GENLIB} | R Documentation

## Get id numbers of parents

### Description

Returns the id numbers of the parents of specified individuals.

### Usage

    gen.parent( gen, individuals, output = "FaMo", ...)

### Arguments

`gen` | An object of class GLgen obtained with gen.genealogy, gen.lineages or gen.branching. Required.
`individuals` | Vector of individual id numbers. Required.
`output` | If output="FaMo" (default) then both mothers and fathers are included. "Mo" outputs mothers only and "Fa", fathers only.
`...` | Option to pass additionnal arguments automaticaly between methods. Internal use only.

### Value

returns a list containing the following: Fathers Mothers

### See Also

`gen.genealogy` `gen.pro` `gen.founder` `gen.children` `gen.sibship`

### Examples

    data(geneaJi)
    genJi<-gen.genealogy(geneaJi)
    gen.parent(genJi, individuals=c(3,21,29))

[Package GENLIB version 1.0.8 Index]