Skip to contents

Downloads the monthly percentage change (variable 63) and the monthly weight (variable 66) of every IPCA component (headline, groups, subgroups, items and sub-items) from IBGE's SIDRA API. Table 1419 covers the weighting structure in force from January 2012 to December 2019 (POF 2008-2009) and table 7060 the structure in force since January 2020 (POF 2017-2018). Fetching both tables is needed for cores that use a price history (core_ms() and core_dp()).

Usage

get_ipca(table = c(1419, 7060), period = "all", unite = TRUE)

Arguments

table

One or both of the SIDRA tables 1419 and 7060.

period

Period of data: "all", "first" or "last".

unite

Logical, whether or not to join the data on percentage change and monthly weight into a single tibble.

Value

Tibble with monthly IPCA percent change and weight.

Author

Fernando da Silva <fernando@fortietwo.com>

Examples

if (FALSE) { # \dontrun{
my_df <- get_ipca(table = 7060, period = "last")
} # }