inpc {deflateBR} | R Documentation |
Deflate Nominal Brazilian Reais Using INPC
Description
inpc()
is a convenience function to deflate nominal Brazilian Reais using the Brazilian Institute of Geography and Statistics' INPC price index.
Usage
inpc(nominal_values, nominal_dates, real_date)
Arguments
nominal_values |
A |
nominal_dates |
A |
real_date |
A value indicating the reference date to deflate nominal values in the format 'MM/YYYY' (e.g., '01/2018' for January 2018). |
Value
A numeric
vector.
See Also
Examples
## Not run:
# Use INPC index to deflate a vector of nominal Brazilian Reais
reais <- rep(100, 5)
actual_dates <- seq.Date(from = as.Date("2001-01-01"), to = as.Date("2001-05-01"), by = "month")
inpc(reais, actual_dates, "01/2018")
## End(Not run)
[Package deflateBR version 1.1.2 Index]