Description Usage Arguments See Also
These functions are only to be called from make_history
.
They work by side-effects; modifying the input data.table by reference.
1 2 3 4 5 6 7 | forward_duration(dt, current_year)
forward_vars(dt, carry_vars)
make_lapse(dt_last, dt)
make_R3(dt, yrs)
|
dt |
data.table: current year table |
current_year |
numeric: year of current year table |
carry_vars |
character: additional variables to carry over from previous year (for multi-year and lifetime licenses). |
dt_last |
data.table: previous year table |
yrs |
numeric: Years in sales data (column 'year') from which to create license history |
Other internal license history functions: prep_yrs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.