Retrieve the metadata for the given dataset.

ons_dataset_by_id(metadata, id, edition, version)

Arguments

metadata

data describing the dataset

id

the identifier of the dataset. Valid values from ons_available_datasets()

edition

the edition of the dataset (if empty, select latest). Valid values from ons_available_editions(...)

version

the version of the dataset (if empty, select latest). Valid values from ons_available_available(...)

Value

a dataframe describing the dataset.

Details

Makes calls to the ONS API and retrieves the metadata for the datasets. The dataset selection can be refined via the edition and version parameters

Author

Neale Swinnerton neale@mastodonc.com