Learn R Programming

samadb (version 0.3.1)

South Africa Macroeconomic Database API

Description

An R API providing access to a relational database with macroeconomic time series data for South Africa, obtained from the South African Reserve Bank (SARB) and Statistics South Africa (STATSSA), and updated on a weekly basis via the EconData platform and automated scraping of the SARB and STATSSA websites. The database is maintained at the Department of Economics at Stellenbosch University.

Copy Link

Version

Install

install.packages('samadb')

Monthly Downloads

11,988

Version

0.3.1

License

GPL-3

Maintainer

Sebastian Krantz

Last Published

August 19th, 2025

Functions in samadb (0.3.1)

sm_pivot_longer

Reshape Column-Based Data to Long Format
sm_expand_date

Generate Temporal Identifiers from a Date Column
sm_datasets

Retrieve Datasets Table
sm_series

Retrieve Series Table
sm_pivot_wider

Reshape Long API Data to Column-Based Format
sm_as_date

Coerce Vectors to Dates
sm_data

Retrieve Data from the Database
sm_datasources

Retrieve Data Sources Table
samadb-package

South Africa Macroeconomic Database API
.SAMADB_ID

Global Identifier Macros
sm_write_excel

Export Wide Data to Excel
sm_transpose

Transpose a Wide Dataset to a Row-Based Format