inflation {deflateBR} | R Documentation |
Calculate Inflation Between Two Dates
Description
inflation()
is a convenience function used to calculate the inflation rate between two periods
Usage
inflation(initial_date, end_date, index = c("ipca", "inpc", "igpm",
"igpdi", "ipc"))
Arguments
initial_date |
Initial date in the 'MM/YYYY' format ( |
end_date |
End date in the 'MM/YYYY' format ( |
index |
One of the following options: |
Value
The inflation rate, in percent, between initial_date
and end_date
.
See Also
Examples
## Not run:
# Inflation rate between January 2010 to January 2018 calculated using IPCA price index
inflation("01/2010", "01/2018", "ipca")
# Inflation rate between January 2014 to December 2014 calculated using IGP-M price index
inflation("01/2014", "12/2014", "igpm")
## End(Not run)
[Package deflateBR version 1.1.2 Index]