statswales_get_metadata: Get metadata for a dataset

View source: R/statswales_get_metadata.R

statswales_get_metadataR Documentation

Get metadata for a dataset

Description

Returns full metadata for a published dataset including revision history, publication dates, and dimension information.

Usage

statswales_get_metadata(dataset_id, lang = "en-gb")

Arguments

dataset_id

A dataset UUID string. Use statswales_list_datasets() to find dataset IDs.

lang

Language for returned text. One of "en-gb" (default), "en", "cy-gb", or "cy".

Value

A list containing dataset metadata. Returns NULL if the request fails or the dataset is not found.

Examples

## Not run: 
datasets <- statswales_list_datasets()
meta <- statswales_get_metadata(datasets$id[1])

## End(Not run)


statswalesr documentation built on July 12, 2026, 5:06 p.m.