Description Usage Arguments Examples
View source: R/inflation_adjust_costs_custom.R
Inflation adjust a cost to present value
1 | inflation_adjust_cost_custom(from_year, to_year, from_cost, inflation_df)
|
from_year |
base year to inflate from |
to_year |
destination year to inflate to |
from_cost |
base year cost |
inflation_df |
inflation annual rate data. dataframe of annual inflation data, in the format "year" = year (yyyy), "rate" = annual inflation rate (1/100th fraction) |
1 2 3 | inflation_df <- data.frame("year" = 2008:2010, "rate" = c(0.02, 0.03, 0.025))
inflation_adjust_cost_custom(2008, 2009, 100, inflation_df)
100*1.02 # 102
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.