mat2bio: Converts event array to Biograph

Description Usage Arguments Examples

Description

This function converts event array to Biograph

Usage

1
mat2bio(evmat, df_ind, df_fam, id = NULL)

Arguments

evmat

An event array

df_ind

A dataframe describing individuals

df_fam

A dataframe describing families

id

Optional vector of IDs to restrict to

Examples

1
2
3
4
5
6
## Not run: 
df_ind$bdate <- sample(seq(as.Date("1774-12-31"), as.Date("1874-12-31"), 100), nrow(df_ind))
df_fam <- data.frame(idf = c(0,unique(df_ind$momid[df_ind$momid>0])), fall = "C")
sample_kh(df_ind, df_fam)

## End(Not run)

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