kin_crawler: Add IDs of 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
kin_crawler(x, df_ped)

Arguments

x

ID of individual for which a pedigree should be composed.

df_ped

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

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.