samadb-package | R Documentation |
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 and data providing information about the available data
sm_datasources()
sm_datasets()
sm_series()
Function to retrieve the data from the database
sm_data()
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
sm_write_excel()
Helper functions to convert inputs to R dates and transpose the data
sm_as_date()
sm_transpose()
Global Macros with core ID variables in the database
.SAMADB_ID
.SAMADB_T
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.