This function downloads standard input-output table files. Currently only Eurostat files are supported.
You are not likely to use this function, because
iotable_get
will
call this function if necessary and properly filter out an
input-output table.
Arguments
- source
See the available list of sources above in the Description.
- data_directory
Defaults to
NULL
when the files will be temporarily stored in the path retrieved bytempdir
. If it is a different valid directory, it will try to save the pre-processed data file here with labelling.- force_download
Defaults to
FALSE
which will use the existing downloaded file in thedata_directory
or the temporary directory, if it exists.TRUE
will try to download the file from the Eurostat warehouse.
Value
A nested data frame. Each input-output table is in a separate
row of the nested output, where all the metadata are in columns, and the
actual, tidy, ordered input-output table is in the data data
column.
The data is saved into the actual tempdir()
, too.
Details
The data is downloaded in the tempdir()
under the name the statistical product as an
rds file. (For example: naio_10_cp1750.rds
) The temporary directory is emptied at every
normal R session exit.
To save the file for further use (which is necessary in analytical work because
download times are long) set the download_directory
[see parameters].
The function will make a copy of the rds file in this directory.
naio_10_cp1700
Symmetric input-output table at basic prices (product by product)naio_10_pyp1700
Symmetric input-output table at basic prices (product by product) (previous years prices)naio_10_cp1750
Symmetric input-output table at basic prices (industry by industry)naio_10_pyp1750
Symmetric input-output table at basic prices (industry by industry) (previous years prices)naio_10_cp15
Supply table at basic prices incl. transformation into purchasers' pricesnaio_10_cp16
Use table at purchasers' pricesnaio_10_cp1610
Use table at basic pricesnaio_10_pyp1610
Use table at basic prices (previous years prices) (naio_10_pyp1610)naio_10_cp1620
Table of trade and transport margins at basic pricesnaio_10_pyp1620
Table of trade and transport margins at previous years' pricesnaio_10_cp1630
Table of taxes less subsidies on products at basic pricesnaio_10_pyp1630
Table of taxes less subsidies on products at previous years' pricesuk_2010_siot
United Kingdom Input-Output Analytical Tables data
See also
Other import functions:
airpol_get()
,
employment_get()
,
iotables_metadata_get()
,
iotables_read_tempdir()
Examples
# \donttest{
io_tables <- iotables_download(source = "naio_10_pyp1750")
#> Table naio_10_pyp1750 cached at C:\Users\DANIEL~1\AppData\Local\Temp\RtmpQ5Xshv/eurostat/naio_10_pyp1750_date_code_FF.rds
#> Saving 96 input-output tables into the temporary directory.
#> Saved the raw data of this table type in temporary directory C:\Users\DANIEL~1\AppData\Local\Temp\RtmpQ5Xshv/naio_10_pyp1750_processed.rds.
# }