View source: R/getStatBankData.R
getStatBankData | R Documentation |
This function can be used to download data from CSO PxStat.
getStatBankData(table, metadata = TRUE, type = "px")
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. |
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.
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"
.
Graeme Walsh
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.