Learn R Programming

GENLIB (version 1.0.3)

gen.rec: Ancestors coverage

Description

Returns the number of specified probands genealogically related to specified ancestors (i.e., ancestor occurs in the proband's genealogy).

Usage

gen.rec( gen, pro = "0", ancestors = "0", ...)

Arguments

Value

A matrix with number of lines equal to the number of ancestors specified and one column.

See Also

gen.genealogy gen.occ gen.implex gen.meangendepth gen.gc

Examples

Run this code
data(geneaJi) 
genJi<-gen.genealogy(geneaJi) 
Number of probands which are descendants of an ancestor
gen.rec(genJi)


data(genea140) 
gen140<-gen.genealogy(genea140) 
gen.rec(gen140, ancestors=c(18305, 18528, 31114, 18325))

Run the code above in your browser using DataLab