getStatBankData: Download Data From CSO PxStat

View source: R/getStatBankData.R

getStatBankDataR Documentation

Download Data From CSO PxStat

Description

This function can be used to download data from CSO PxStat.

Usage

getStatBankData(table, metadata = TRUE, type = "px")

Arguments

table

A character string naming the StatBank table to be downloaded.

metadata

If TRUE, metadata is displayed.

type

A character string specifiying the type of data to be returned.

Details

The function getStatBankData can be used to download a table from CSO PxStat.

The function parses PC-AXIS files located on CSO PxStat unless type="jstat", in which case the function parses JSON-stat files from the Statbank API.

Value

An object of the class px, which is essentially a list comprising the fields of a PC-AXIS file (see pxR package for more details). A list is returned if type="jstat".

Author(s)

Graeme Walsh

References

CSO PxStat Statbank API


xprimexinverse/statbanker documentation built on April 11, 2024, 2:24 a.m.