apply_percentage_growth_multiplier_to_df_col: Take a df with a date col, and generate a multiplier...

Description Usage Arguments

Description

Take a df with a date col, and generate a multiplier corresponding to growth or reduction at a constant percent

Usage

1
2
apply_percentage_growth_multiplier_to_df_col(df, annual_growth, start_date,
  col_to_increase, date_col = "date")

Arguments

annual_growth

annual growth rate, where 0.1 = 10%, -0.05 = -5% etc.

start_date

If this_date = start_date, the multiplier will be 1

this_date

The date to compute a multiplier for.


RobinL/costmodelr documentation built on May 9, 2019, 10:30 a.m.