| Title: | 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 <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. |
| Authors: | Rafał Błażewski [aut, cre] (ORCID: <https://orcid.org/0009-0003-7680-1154>) |
| Maintainer: | Rafał Błażewski <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.0 |
| Built: | 2026-12-02 21:02:13 UTC |
| Source: | https://github.com/cran/obrotomierz |
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.
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.
Rafał Błażewski [email protected]
https://obrotomierz.pl/en/data/api/
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.
obr_datasets() obr_files(dataset = NULL)obr_datasets() obr_files(dataset = NULL)
dataset |
optional character vector of dataset names (see the
|
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.
obr_datasets() obr_files("obligacje")obr_datasets() obr_files("obligacje")
Downloads one CSV file of an ‘obrotomierz.pl’ dataset and returns it as a data frame. The shortcut functions read the most used files.
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()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()
file |
file name as in |
dataset |
optional dataset name, needed only when the file name alone is ambiguous. |
quiet |
passed to |
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() and
obr_world_outstanding_series(): obieg and
obieg-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).
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.
issues <- obr_read("obligacje/emisje") if (!is.null(issues)) head(issues[, c("seria", "rodzina", "marza_pct")])issues <- obr_read("obligacje/emisje") if (!is.null(issues)) head(issues[, c("seria", "rodzina", "marza_pct")])