Download standard input–output (IO) and related tables. At the moment,
only Eurostat products are supported. You usually do not need to call
this directly; iotable_get() will invoke it as needed and return a
filtered, tidy table.
iotables_download(
source = "naio_10_cp1700",
data_directory = NULL,
force_download = FALSE
)A nested
data.frame (one row per IO table) with metadata columns
(geo, unit, year, stk_flow, etc.) and a list-column data
containing the tidy table for each combination.
Character. The Eurostat product code (see above) or "uk_2010".
Optional directory path where the processed nested
tables will be saved as "<source>_processed.rds". If NULL (default),
results are saved to tempdir().
Logical. If FALSE (default), reuse a cached file
in data_directory or tempdir() when available. If TRUE, force a
fresh download from Eurostat.
Files are cached under tempdir() as RDS (e.g., "naio_10_cp1750.rds").
The temporary directory is cleared when the R session ends. To persist
downloads across sessions (recommended for analytics), supply
data_directory and the processed, nested output will also be
written there as "<source>_processed.rds".
Supported Eurostat products include (non-exhaustive):
naio_10_cp1700 — Symmetric IO table, basic prices (product × product)
naio_10_pyp1700 — Same, previous years’ prices
naio_10_cp1750 — Symmetric IO table, basic prices (industry × industry)
naio_10_pyp1750 — Same, previous years’ prices
naio_10_cp15 — Supply table at basic prices incl. margins/taxes
naio_10_cp16 — Use table at purchasers’ prices
naio_10_cp1610 — Use table at basic prices
naio_10_pyp1610 — Use table at basic prices (previous years’ prices)
naio_10_cp1620 — Trade and transport margins at basic prices
naio_10_pyp1620 — Trade and transport margins at previous years’ prices
naio_10_cp1630 — Taxes less subsidies on products at basic prices
naio_10_pyp1630 — Taxes less subsidies on products, prev. years’ prices
uk_2010 — United Kingdom IO Analytical Tables (handled internally)
Eurostat API/format changes (e.g., TIME_PERIOD vs time) are handled
for backward compatibility.
Other import functions:
airpol_get(),
employment_get(),
iotables_metadata_get(),
iotables_read_tempdir()
# \donttest{
io_tables <- iotables_download(source = "naio_10_pyp1750")
# }
Run the code above in your browser using DataLab