#' # A simple classification structure
# 1
# |-----+-----|
# 11 12
# |---+---| |
# 111 112 121
split_classification(c("111", "112", "121"), "")
# Useful if there are delimiters in the classification (like COICOP)
split_classification(c("01.1.1", "01.1.2", "01.2.1"), ".", fixed = TRUE)
Run the code above in your browser using DataLab