ons_dataset_by_id: Dataset By Id

View source: R/ons.R

ons_dataset_by_idR Documentation

Dataset By Id

Description

Retrieve the metadata for the given dataset.

Usage

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(...)

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

Value

a dataframe describing the dataset.

Author(s)

Neale Swinnerton neale@mastodonc.com


HFAnalyticsLab/monstR documentation built on Sept. 13, 2022, 2:19 a.m.