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 (character).

end_date

End date in the 'MM/YYYY' format (character).

index

One of the following options: ipca, inpc, igpm, igpdi, and ipc. Each one of these options uses the following price indexes, respectively: IPCA and INPC indexes maintained by Brazilian Institute of Geography and Statistics (IBGE); and IGP-M, IGP-DI, and IPC maintained by Getulio Vargas Foundation (FGV). For an overview of the indexes' methodologies and covered periods, check the Brazilian Central Bank official FAQ.

Value

The inflation rate, in percent, between initial_date and end_date.

See Also

deflate.

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]