| Title: | Tools for Romania's National Institute of Statistics Tempo Data |
|---|---|
| Description: | Download table metadata and data from the Romanian National Institute of Statistics' TEMPO Online database. Tables can be listed in Romanian or English and downloaded as CSV files. |
| Authors: | Marian Necula [aut, cre], Bogdan Oancea [aut], Ana Maria Tiru [aut] |
| Maintainer: | Marian Necula <[email protected]> |
| License: | GPL-3 | EUPL-1.1 |
| Version: | 0.1.0 |
| Built: | 2026-10-03 10:51:23 UTC |
| Source: | https://github.com/rprojectromania/tempo |
Downloads one or more complete tables from the Romanian National Institute of Statistics TEMPO Online database as CSV files.
tempo_bulk(codes, language = "ro", directory)tempo_bulk(codes, language = "ro", directory)
codes |
A character vector (or list) of TEMPO matrix codes, such as
|
language |
A single string: |
directory |
A single path for the downloaded CSV files. The directory is created when needed. |
Large dimensions are requested in sequential chunks to avoid
exceeding the TEMPO service's query limit. The function writes only to
directory and needs an internet connection.
The paths of newly downloaded files, invisibly. Existing requested files are skipped when their modification date is at least as recent as the matrix's published update date.
## Not run: data_directory <- file.path(tempdir(), "tempo-data") files <- tempo_bulk("ACC101B", language = "en", directory = data_directory) ## End(Not run)## Not run: data_directory <- file.path(tempdir(), "tempo-data") files <- tempo_bulk("ACC101B", language = "en", directory = data_directory) ## End(Not run)
Retrieves the table of contents for the Romanian National Institute of Statistics TEMPO Online database.
tempo_toc(full_description = FALSE, language = "ro")tempo_toc(full_description = FALSE, language = "ro")
full_description |
A single logical value. If |
language |
A single string: |
The function needs an internet connection. It reports an informative error when the TEMPO Online service cannot be reached or returns an unexpected response.
A data frame with name and code columns. With
full_description = TRUE, it additionally contains Statistical_domain,
Statistical_sub_domain, Survey_name, and Last_update.
## Not run: tables <- tempo_toc(language = "en") head(tables) ## End(Not run)## Not run: tables <- tempo_toc(language = "en") head(tables) ## End(Not run)