Description Usage Arguments Value Examples
View source: R/expand_time_at_risk.R
Using a time at risk dataframe generated by create_time_at_risk
,
generate an "expanded" version with one row for each person-day combination
1 2 | expand_time_at_risk(time_at_risk, start_date = "2002-01-01",
end_date = Sys.Date())
|
time_at_risk |
A dataframe generated by |
A data.frame
with one row for each person's
uninterrupted period of residency
1 2 3 4 5 | 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)
#' expanded_time_at_risk <- expand_time_at_risk(time_at_risk = time_at_risk)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.