Get the connections between two hierarchies
GetEBXHierarchy.Rd
Using the EBX5 metadata, calculates the grouping from parent to child group,
based on codelist Identifier; as defined in 'EBXGroup.to' and 'EBXGroup.from'.
This is a basic function of this package, it is exposed primarily for troubleshooting.
Users will normally use ReadEBXHierarchy
or ReadDatasetCodelists
.
Arguments
- sdmx_parent_codelist
parent codelist name, in SDMX style.
- sdmx_child_codelist
child codelist name, in SDMX style. Available code lists are shown by function
GetEBXGroups
in the field "Acronym". The actual group ID and location in EBX5 (branch, instance, code-list-name) are resolved using the Metadata structure.
Details
The solution may invaolve several steps (a list of group ID's), and may involve multiple step groupings, which have to be merged for the final result: MAJOR(306)->ODER(307)->FAMILY(302)->SPECIES(301) MAJOR(306)->ODER(307)->SPECIES(301) In the simplest case, if a matching group exists, list(ebx_parent_ID, ebx_child_ID) is returned
Author
Thomas Berger, thomas.berger@fao.org