Skip to contents

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

if (FALSE) { # \dontrun{
datasets <- statswales_list_datasets()
meta <- statswales_get_metadata(datasets$id[1])
} # }