| Type: | Package |
| Title: | Open Data on Polish Savings Bonds and Retail Government Bonds |
| Version: | 0.1.0 |
| Description: | Reads the open datasets published by 'obrotomierz.pl' under the CC BY 4.0 licence https://obrotomierz.pl/en/data/api/: every Polish retail treasury savings bond issue since 1999 with its interest rates and the realised return of every matured series, retail government bonds in all 195 countries with the amounts held by individuals in 16 of them, annual contribution limits for Polish individual retirement accounts (IKE and IKZE) since 2004, interest earned on cash by Polish local governments, and current account fees and opening bonuses at banks in the 27 European Union countries. Each dataset is also archived on 'Zenodo' with a DOI. |
| License: | MIT + file LICENSE |
| URL: | https://obrotomierz.pl/en/data/api/, https://obrotomierz.pl/dane/ |
| Depends: | R (≥ 3.5.0) |
| Imports: | utils |
| Encoding: | UTF-8 |
| Language: | en-GB |
| NeedsCompilation: | no |
| Packaged: | 2026-11-11 15:39:11 UTC; Lenovo |
| Author: | Rafał Błażewski |
| Maintainer: | Rafał Błażewski <rafal@blazewski.com> |
| Repository: | CRAN |
| Date/Publication: | 2026-12-02 12:50:15 UTC |
Open Data on Polish Savings Bonds and Retail Government Bonds
Description
Reads the open datasets published by ‘obrotomierz.pl’ under the CC BY 4.0 licence. Each function downloads one CSV file from https://obrotomierz.pl/dane/ and returns it as a data frame. Column names are in Polish, as in the published files; every dataset page explains each column.
Use obr_datasets to list the datasets with their DOIs,
obr_files to list the files and obr_read to read
any of them.
Licence of the data
The data are published under CC BY 4.0: cite ‘obrotomierz.pl’ and the dataset (its page or DOI). The package code is under the MIT licence.
Author(s)
Rafał Błażewski rafal@blazewski.com
See Also
https://obrotomierz.pl/en/data/api/
List the Datasets and Files
Description
obr_datasets() lists the open datasets with their pages and DOIs.
obr_files() lists the CSV files that obr_read can read.
Both work offline.
Usage
obr_datasets()
obr_files(dataset = NULL)
Arguments
dataset |
optional character vector of dataset names (see the
|
Value
obr_datasets(): a data frame with columns dataset,
title, page and doi (the DOI of all versions on
Zenodo; NA if the dataset has none).
obr_files(): a data frame with columns dataset, file,
description and url.
Examples
obr_datasets()
obr_files("obligacje")
Read a Dataset File
Description
Downloads one CSV file of an ‘obrotomierz.pl’ dataset and returns it as a data frame. The shortcut functions read the most used files.
Usage
obr_read(file, dataset = NULL, quiet = TRUE)
obr_bond_issues()
obr_bond_rates()
obr_bond_results()
obr_world_countries()
obr_world_outstanding()
obr_world_outstanding_series()
obr_ike_limits()
obr_local_interest()
obr_eu_banks()
Arguments
file |
file name as in |
dataset |
optional dataset name, needed only when the file name alone is ambiguous. |
quiet |
passed to |
Details
The shortcuts read these files:
-
obr_bond_issues():obligacje/emisje, every Polish retail treasury savings bond issue since 1999; -
obr_bond_rates():obligacje/oprocentowanie, the rate of every interest period; -
obr_bond_results():obligacje/wyniki-serii, the realised result of every matured series, before and after tax; -
obr_world_countries():obligacje-na-swiecie/panstwa, all 195 countries and whether individuals can buy government bonds at issuance; -
obr_world_outstanding()andobr_world_outstanding_series():obiegandobieg-szereg, amounts held by individuals and their share of government debt; -
obr_ike_limits():limity-ike-ikze/limity, annual contribution limits with legal acts; -
obr_local_interest():odsetki-samorzadow/odsetki, interest earned on cash by Polish local governments; -
obr_eu_banks():banki-w-europie/banki, personal accounts, fees and opening bonuses at EU banks.
The files always contain the latest version of each dataset. Earlier
versions are archived on Zenodo (see obr_datasets).
Value
A data frame with the columns of the file (names in Polish, explained on
the dataset page) and the attribute "source" holding the URL. If
the file cannot be downloaded, a message is shown and NULL is
returned invisibly.
Examples
issues <- obr_read("obligacje/emisje")
if (!is.null(issues)) head(issues[, c("seria", "rodzina", "marza_pct")])