expSize: Estimate size of exposure data frame
Description
This function takes a records file and the same arguments as the addExposures function to
estimate the size of the output created. The upper bound is pretty reasonable. The idea with this function
is that it enables users to determine if they can reasonably perform an operation on their computer.
Usage
expSize(records, type = "PY", lower_year = NULL, upper_year = NULL)
Arguments
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". Many other variations on this.
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.
Value
An upper bound for the number of rows used in the calculation of an exposure frame.
Examples
Run this code# NOT RUN {
addExposures(records)
# }
Run the code above in your browser using DataLab