Adds two columns to the output of get_ipca(): snipc, the SNIPC code that
prefixes each description (1 digit for groups, 2 for subgroups, 4 for items and
7 for sub-items), and group, the hierarchy level as a label ("Geral", "Grupo",
"Subgrupo", "Item" or "Subitem"). The group column is what the core functions
use to pick items (core_ma(), core_ms()) or sub-items (core_p55(),
core_difusao()).
Arguments
- data
Output from
get_ipca()(a tibble, or the list returned withunite = FALSE).
Author
Fernando da Silva <fernando@fortietwo.com>