convert_NACErev2_to_tree: Converts a data.frame with NACE rev2 classification to a...

View source: R/eurostat_tools.R

convert_NACErev2_to_treeR Documentation

Converts a data.frame with NACE rev2 classification to a hierarchical data.tree. Currently only supports until 2nd level (e.g. A03, C11, ...)

Description

Converts a data.frame with NACE rev2 classification to a hierarchical data.tree. Currently only supports until 2nd level (e.g. A03, C11, ...)

Usage

convert_NACErev2_to_tree(x, code)

Arguments

x

a data.frame

code

character: column name with NACE rev2 codes (need to be in the form A, B, ..., A01, C13, C10-12, C10_C11, ...)

Value

a data.tree object with all columns of x as attributes


simschul/my.utils documentation built on June 29, 2023, 6:50 a.m.