grap_kin: Add iteratively IDs of related family members

Description Usage Arguments Examples

Description

This function returns a vector of family members IDs for a given individual by iteratively adding IDs of offspring and parents and vice versa for a given times.

Usage

1
grap_kin(x, df_ind, max_size, max_cycles = 8)

Arguments

x

ID of individual for which a pedigree should be composed.

df_ind

A dataframe for genealogical relations providing the variables 'id', 'momid' and 'dadid'

max_size

Maximum size of pedigree of interest (Default is 300).

max_cycles

Maximum number of iterations (adding further relatives).

Examples

1
2
3
4
## Not run: 
grap_kin(1067, df_ped)

## End(Not run)

johow/kinlab documentation built on July 5, 2019, 4:23 p.m.