samadb-package {samadb} | R Documentation |
South Africa Macroeconomic Database API
Description
An R API providing access to a relational database with public macroeconomic data for South Africa, obtained from from the South African Reserve Bank (SARB) and Statistics South Africa (STATSSA), and updated on a regular basis via the EconData (https://www.econdata.co.za/) platform and automated scraping of the SARB and STATSSA websites. The database is maintained at the Department of Economics at Stellenbosch University.
Functions
Functions and data providing information about the available data
sm_datasources()
sm_datasets()
sm_series()
Function to retrieve the data from the database
Functions to reshape data and add temporal identifiers
sm_pivot_wider()
sm_pivot_longer()
sm_expand_date()
Function to export wide format data to Excel
Helper functions to convert inputs to R dates and transpose the data
Global Macros with core ID variables in the database