Learn R Programming

csodata

An R package for downloading CSO data.

The csodata package allows for easily downloading CSO (Central Statistics Office, the statistics agency of Ireland) PxStat data into R. It also includes multiple functions for examining the metadata of CSO tables, as well as a function to download geographic data in the ESRI vector format from the CSO website.

PxStat is the Central Statistics Office’s (CSO) online database of Official Statistics. This database contains current and historical data series compiled from CSO statistical releases and is accessed here . The CSO PxStat Application Programming Interface (API), which is accessed in this package, provides access to PxStat data in JSON-stat format. This dissemination tool allows developers machine to machine access to CSO PxStat data.

References

Graeme Walsh (2018). statbanker R package version 6.2.0. For inspiration and code used for reshaping tables.

Copy Link

Version

Install

install.packages('csodata')

Monthly Downloads

804

Version

1.4.2

License

GPL-3

Maintainer

Conor Crowley

Last Published

August 11th, 2023

Functions in csodata (1.4.2)

cso_get_geo_meta

Returns a data frame with the metadata of a vector shapefile
cso_get_data

Return a CSO table as a data frame
cso_disp_meta

Prints metadata from a PxStat table to the console
cso_get_content

Returns a character vector listing the statistics in a CSO data table
cso_disp_geo_meta

Prints metadata from an ESRI shapefile to console
cso_get_interval

Returns a the time interval used to record data in a CSO table
cso_clear_cache

Clear csodata cache
cso_get_toc

Returns a data frame with all valid CSO PxStat tables listed sequentially by id number, e.g. A0101, A0102, A0103, etc.
cso_get_meta

Returns a data frame with the metadata of a CSO data table
cso_get_geo

Return geographic data as a sf data frame
csodata

csodata: A package for downloading CSO data.
cso_search_toc

Search list of all table descriptions for given string
cso_get_vars

Returns a character vector listing the contents of a CSO data table
cso_get_var_values

Returns a list of the values of variables of a CSO data table