create_time_at_risk: Create time at risk

Description Usage Arguments Value Examples

View source: R/create_time_at_risk.R

Description

Using census migration data, create a dataframe of "time at risk", ie the time during which someone lived in Manhi<c3><a7>a.

Usage

1
create_time_at_risk(residency, individual, location)

Arguments

residency

A residency table of identical format to the residency table in the openhds database

individual

A individual table of identical format to the individual table in the openhds database

location

A location table of identical format to the location table in the openhds database

Value

A data.frame with one row for each person's uninterrupted period of residency

Examples

1
2
3
4
residency <- get_data(tab = 'residency', dbname = 'openhds')
individual <- get_data(tab = 'individual', dbname = 'openhds')
location <- get_data(tab = 'location', dbname = 'openhds')
time_at_risk <- create_time_at_risk(residency = residency, individual = individual, location = location)

joebrew/cism documentation built on Sept. 20, 2017, 4:11 a.m.