Learn R Programming

pdfetch (version 0.2.7)

pdfetch_ONS: Fetch data from the UK Office of National Statistics

Description

The ONS maintains multiple data products; this function can be used to retrieve data from the Time Series Explorer, see https://www.ons.gov.uk/timeseriestool

Usage

pdfetch_ONS(identifiers, dataset)

Value

a xts object

Arguments

identifiers

a vector of ONS series codes

dataset

optional ONS dataset name, only used if a time series is available in multiple datasets.

Examples

Run this code
if (FALSE) {
pdfetch_ONS(c("LF24","LF2G"), "lms")
}

Run the code above in your browser using DataLab