Returns the cumulative or annualised inflation rate between two years, using bundled CPI data sourced from the World Bank Development Indicators.
Arguments
- from_year
Integer. The starting year.
- to_year
Integer. The ending year. Defaults to the latest available year in the data.
- currency
Character. A currency code or country name (case-insensitive). See
adjust_inflationfor accepted values.- annualise
Logical. If
TRUE, returns the annualised (compound annual) rate. IfFALSE(default), returns the cumulative rate.