Package 'obrotomierz'

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

Help Index


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 [email protected]

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 dataset column of obr_datasets()) to keep only their files.

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 obr_files, either alone ("emisje") or with the dataset ("obligacje/emisje"); a trailing .csv is ignored.

dataset

optional dataset name, needed only when the file name alone is ambiguous.

quiet

passed to download.file.

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() 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).

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")])