importMetabase: Import a Dataset-Dimension-Code Inventory

View source: R/structure.R

importMetabaseR Documentation

Import a Dataset-Dimension-Code Inventory

Description

Import a Dataset-Dimension-Code Inventory.

Usage

importMetabase(OECDDatasetCode = NULL)

Arguments

OECDDatasetCode

Optional character vector of dataset short codes or canonical references. See oecdDataset for resolution rules. Defaults to the dataset option. With neither supplied, attempts the complete catalogue inventory, which can be very large.

Details

By default, actual marginal availability must be enumerated by a matching SDMX Actual content constraint. A marginal list does not guarantee observations for every combination of the listed codes. Missing metadata or constraints whose conditional exclusions cannot safely be projected cause an explicit error.

Set oecdOptions(availability = "allowed") to request dictionary codes instead. This is an explicit alternate mode, not a claim of observed coverage. The source may return partial dictionaries. Prefer dataset-scoped requests over a global inventory. The no-argument call is retained for compatibility but is expensive and may fail if any selected dataset lacks usable metadata.

Value

A data frame with columns Code, Dim_name, and Dim_val. The Availability attribute records "actual" or "allowed". Time dimensions are excluded.

See Also

describe, compare, oecdStructure

Examples

if (interactive()) {
importMetabase("CLI")
}

OECDdata documentation built on Oct. 31, 2026, 1:07 a.m.