Get the available years from bulk downloaded input-output tables
Source:R/iotable_year_get.R
iotable_year_get.Rd
The function selects the available tables by year or time as a date for a specific country and currency unit in the Eurostat bulk file.
Usage
iotable_year_get(
labelled_io_data = NULL,
source = "germany_1995",
geo = "DE",
unit = "MIO_EUR",
time_unit = "year",
stk_flow = "TOTAL",
data_directory = NULL,
force_download = TRUE
)
Arguments
- labelled_io_data
If you have downloaded a bulk data file with
iotables_download
, it is faster to work with the data in the memory. Defaults toNULL
when the data will be retrieved from the hard disk or from the Eurostat website invoking the same function.- source
A data source, for example
naio_10_cp1700
. Symmetric input-output table at basic prices (product by product) (naio_10_cp1700) Symmetric input-output table at basic prices (industry by industry) (naio_10_cp1750) Symmetric input-output table at basic prices (product by product) (previous years prices) (naio_10_pyp1700) Symmetric input-output table at basic prices (industry by industry) (previous years prices) (naio_10_pyp1750) Table of trade and transport margins at basic prices (naio_10_cp1620) and at previous' years prices (naio_10_pyp1620) Table of taxes less subsidies on products at basic prices (naio_10_cp1630) and at previous' years prices (naio_10_pyp1630) For further information consult the Eurostat Symmetric Input-Output Tables page.- geo
A country code or a country name. For example,
SK
or asSlovakia
.- unit
A character string containing the currency unit, defaults to
MIO_NAC
(million national currency unit). The alternative isMIO_EUR
.- time_unit
Defaults to
'year'
and years are returned as numbers. Alternative is to return'time'
as vector of dates.- stk_flow
Defaults to
DOM
as domestic output, alternativeIMP
for imports andTOTAL
for total output. Forsource = 'naio_10_cp1620'
and trade and transport margins andsource = 'naio_10_cp1630'
taxes less subsidies onlyTOTAL
is not used.- data_directory
Defaults to
NULL
. Use if it you used a data_directory parameter withiotable_get
oriotables_download
.- force_download
Defaults to
TRUE
. IfFALSE
it will use the existing downloaded file in thedata_directory
or the temporary directory, if it exists. Will force download only in a new session.
Details
Unless you want to work with bulk data files, you should not invoke iotables_download
directly, rather via this function, if and when it is necessary.
See also
Other iotables processing functions:
conforming_vector_create()
,
household_column_get()
,
key_column_create()
,
matrix_round()
,
output_get()
,
primary_input_get()
,
rows_add()
,
supplementary_add()
,
total_tax_add()
,
vector_transpose_longer()
,
vector_transpose_wider()