
Get Statistical Databases for a Theme from TUIK
Source:R/statistical-databases.R
statistical_databases.RdRetrieves interactive database URLs for a specific theme from the TUIK data
portal. Theme IDs can be obtained using statistical_themes.
This is a filtered convenience wrapper around
statistical_resources for "database" resources.
Value
A tibble with 4 columns:
- theme_name
Character. Name of the statistical theme.
- theme_id
Character. Numeric ID of the theme.
- db_name
Character. Name of the interactive database.
- db_url
Character. URL to the database query interface.
Note
Database URLs link to the legacy biruni.tuik.gov.tr interactive
query interface, not direct downloads. For SDMX-backed datasets, use
statistical_tables to discover dataflow_id values,
then use statistical_data. For press releases and reports,
use statistical_resources with type = "press" or
type = "report".
Examples
if (FALSE) { # \dontrun{
# Get databases for Population and Demography (theme 11)
databases <- statistical_databases(11)
# Retrieve press releases for the same theme
press_releases <- statistical_resources(11, type = "press")
# Open a database in the browser
browseURL(databases$db_url[1])
} # }