View source: R/exposure_functions.R
addExposures | R Documentation |
This function takes a records file with unique policy identifiers in the column "key", exposure start dates in column "start" and exposure end dates in column "end". The output is a data frame with exposures and durations for time intervals.
addExposures(records, type = "PY", lower_year = NULL, upper_year = NULL)
records |
File containing a unique policy key with start and end dates. |
type |
Creates policy year rows for the default type = "PY". Creates policy month rows for type = "PM". |
lower_year |
A lower year for truncation to reduce calculation time and output size. |
upper_year |
An upper year for truncation to reduce calculation time and output size. |
A data frame with multiple rows for each unique policy key. Each row represents a policy interval.
addExposures(records)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.