Skip to contents

This function will read all codelists and hierarchies

Usage

ReadDatasetCodelists(metadata, timeseries_ID, folder = ".")

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