hicp 1.0.0
Breaking changes:
-
Renamed the functions for downloading HICP data to
datasets(),datafilters()anddata(). -
Added the new functions
aggregate.tree()anddisaggregate(). Moved the functionality ofaggregate()toaggregate.tree()to highlight that this function is used for the gradual index aggregation following the COICOP tree. The functionsaggregate()anddisaggregate()can be used for the calculation of user-defined aggregates. -
Renamed the argument
freqinconvert()totype, which is more in line withrates()andcontrib(). -
The function
rates()now requires a date vector. Before, the argumenttwas optional. This change makes the calculation faster, more robust and better aligned to other package functions. -
Removed the list of COICOP bundles in
coicop.bundles, which are now added to the global package options viaoptions("hicp.coicop.bundles"). This allows users to adjust the list of COICOP bundles. -
The function
tree()now returns a list with the full COICOP tree at each level. For backward compatibility, the new argumentflag=TRUEcan be used to still return a logical vector.
New features and other changes:
-
The function
contrib()now allows to derive contributions to monthly, quarterly and annual change rates. This can now also be done for quarterly and annual indices. -
The function
convert()now allows the calculation of a 12-month moving average. -
The function
rebase()now allows for multiple index reference periods int.refor setting this dynamically to thefirstorlastperiod. -
The functions
child()andparent()now allow checking against the full COICOP code dictionary. Moreover, the closest parents/children or the$k$ -th parents/children can be derived. -
The function
aggregate.tree()relies onparent()andlevel(), which makes it more robust but slightly slower. -
Added
settings$na.rmfor dealing withNAs when quarterly or yearly averages are computed. Forna.rm=TRUE, averages are now also calculated if there areNAs or less than 12 observations. -
Added
settings$freqto set the frequency of the index series manually. Otherwise, the frequency is auto-detected. -
Added
settings$chattyfor printing package specific warnings and messages. This behavior can also be changed globally byoptions("hicp.chatty"). -
Removed
settings$unbundle. COICOP codes are now always unbundled internally by the respective functions. If that is not wanted by the user, the bundle codes can be set toNAor an empty list can be defined inoptions(hicp.coicop.bundles). -
Years and months are now extracted using the functions
data.table::year()anddata.table::month(), which is much faster. -
All functions using dates now check internally for duplicates to avoid daily or weekly data.
-
Added the argument
pattern="^prc_hicp"to the functiondatasets(). -
Added the codes of the new ECOICOP version 2.
Bug fixes:
-
Fixed a bug in the functions
chain()andunchain()when there was a gap of only one year and the index value was set to 100 in December of this year. A break in the time series is now assumed if the calendar year is missing/NAor if only one index value is present in December (forby=NULL) or in the month specified withby. -
Fixed a bug in
child()for the derivation of children.