lm_ons_dataset_latest_version: Return the ID of the latest version of a dataset in the ONS...

Description Usage Arguments Value Examples

View source: R/lm_ons_dataset_latest_version.R

Description

lm_ons_dataset_latest_version returns the ID of the latest version of a dataset available on the ONS API.

Usage

1
lm_ons_dataset_latest_version(base_uri, dataset_id)

Arguments

base_uri

string. The base URI to connect to ('datasets/' + id is appended in the function).

dataset_id

string. An ID of an existing dataset in the ONS API. See lm_ons_datasets.

Value

string.

Examples

1
2
3
4
## Not run: 
lm_ons_dataset_latest_version(base_uri = "https://api.beta.ons.gov.uk/v1/", dataset_id = "labour-market")

## End(Not run)

thomascrines/labourmarketreports documentation built on Jan. 28, 2021, 9:47 a.m.