coicop.bundles {hicp} | R Documentation |
HICP data follow the COICOP classification system. However, sometimes COICOP ids are merged into bundles, deviating from the usual structure of ids (e.g. 08X, 0531_2). Function is.bundle()
flags if a COICOP id is a bundle or not, while unbundle()
splits the bundles into their original ids. Both functions make use of the bundle dictionary coicop.bundles
.
is.bundle(id)
unbundle(id)
# list of coicop bundles:
coicop.bundles
id |
character vector of COICOP ids. |
For is.bundle()
, a logical vector of the same length as id
. For unbundle()
a vector of ids with length greater or equal to the length of id
.
Sebastian Weinand
ids <- c("011",NA,"08X","112","0531_2")
is.bundle(ids)
unbundle(ids)