Take a df with a date col, and generate a multiplier corresponding to growth or reduction at a constant percent
1 2 | apply_percentage_growth_multiplier_to_df_col(df, annual_growth, start_date,
col_to_increase, date_col = "date")
|
annual_growth |
annual growth rate, where 0.1 = 10%, -0.05 = -5% etc. |
start_date |
If |
this_date |
The date to compute a multiplier for. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.