count_kids8: Number of living children being younger than 8 years of a...

Description Usage Arguments Examples

Description

This function returns the number of living children being younger than 8 years of a given individual at a given date

Usage

1
count_kids8(id, evdat, df_ped)

Arguments

id

The ID of the individual parent (if any children exist) of interest (will be zero if no living children under age 8 alive)

evdat

Date of interest in the Year-month-day format (e.g. "1850-01-01")

df_ped

A dataframe

Examples

1
2
3
4
## Not run: 
count_kids8(1067, paste(as.Date(evmat["1067", 4, 1], origin = "1970-01-01")), df_ped)

## End(Not run)

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