
Last chance! 50% off unlimited learning
Sale ends in
ipc()
is a convenience function to deflate nominal Brazilian Reais using the Getulio Vargas Foundation's IPC price index.
ipc(nominal_values, nominal_dates, real_date)
A numeric
vector containing nominal Brazilian Reais to deflate.
A Date
vector with corresponding nominal dates (i.e., when nominal values were measured).
Values are set to the previous month, following the
standard methodology used by the Brazilian Central Bank.
A value indicating the reference date to deflate nominal values in the format 'MM/YYYY' (e.g., '01/2018' for January 2018).
A numeric
vector.
# NOT RUN {
# Use IPC 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")
ipc(reais, actual_dates, "01/2018")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab