coicop.bundles {hicp}R Documentation

COICOP bundle codes

Description

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.

Usage

is.bundle(id)

unbundle(id)

# list of coicop bundles:
coicop.bundles

Arguments

id

character vector of COICOP ids.

Value

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.

Author(s)

Sebastian Weinand

Examples

ids <- c("011",NA,"08X","112","0531_2")
is.bundle(ids)
unbundle(ids)

[Package hicp version 0.6.1 Index]