get_grasen: Get family's grasen value for a given ID of a parent

Description Usage Arguments Examples

Description

This function returns a family's value of 'grasen' (a measure of land size) for a given ID of a parent.

Usage

1
get_grasen(x = NULL, df_fam = NULL)

Arguments

x

ID of a parent

df_fam

A dataframe containing ID and grasen values

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.