Computes core inflation using the double weight method
core_dp(data, change, weight, code, group, date)
data | Dataframe object with inflation index and items data. |
---|---|
change | A string with the column name of the percentage change of the inflation index and items. |
weight | A string with the column name of the weight of the inflation index and items. |
code | A string with the column name of the code of the inflation index and items as provided in |
group | A string with the column name of the group of the inflation index and items as provided in |
date | A string with the name of the date column. |
Calculated core inflation tibble.
Fernando da Silva <fernando@fortietwo.com>
if (FALSE) { library(magrittr) ipca_dp <- get_ipca(period = "all") %>% group_desc() %>% core_dp(., "pct_change", "weight", "code", "group", "date") }