Read a complete group hierarchy, for use with applications
ReadDatasetCodelists.Rd
This function will read all codelists and hierarchies
Arguments
- metadata
FishStat metadata; obtained using
ReadMetadata
- timeseries_ID
timeseries identifier obtained using
GetTimeseries
- folder
where the RData file is saved
Details
It first calls GetDatasetDimensions
to obtain the dimensions for
the dataset. For each of the dimensions, calls GetDimensionGroups
to
obtain the hierarchies for this dimension. Finally calls ReadEBXHierarchy
to obtain the grouping from the bottom hierarchy (as specified in GetDatasetDimensions) to the
top (as specified in GetDimensionGroups).
It saves all objects into an RData file with the name of the dataset.
Author
Thomas Berger, thomas.berger@fao.org