Learn R Programming

iotables (version 0.3.4)

primary_input_get: Get primary inputs

Description

This function will retrieve any primary input from the input-output table. You can use the iotables or the original (Eurostat) short labels to select the primary input. If you work with the original Eurostat labels, you can review the codes of variables with View(metadata).

Usage

primary_input_get(labelled_io_table = NULL,
  input = "compensation_employees", source = "germany_1990",
  geo = "DE", year = 1990, unit = "MIO_EUR", households = FALSE,
  stk_flow = "DOM", labelling = "iotables", keep_total = FALSE)

Arguments

labelled_io_table

If you have created the IO table earlier with iotable_get, it is faster to work with the data in the memory. Defaults to NULL when the data will be retrieved from the hard disk or from the Eurostat website invoking iotables_download and iotable_get.

input

A character string or a character vector containing the indicator names. Any of compensation_employees, wages_salaries, mixed_income_gross, gva (for gross value added), surplus_mixed_gross, surplus_mixed_net, net_tax_production, import_goods_services (and its breakup ..._MU, _non_MU, ..._EU, ...non_EU). If the indicator is not found in the table, you will get an error. The input parameter is case sensitive.

source

A data source, for example naio_10_cp1700. Possible codes are naio_10_cp1700, naio_10_cp1750, naio_10_pyp1700, naio_10_pyp1750, naio_cp17_r2, naio_17_agg_60_r2, naio_17_agg_10_r2, croatia_2010_1700, croatia_2010_1800, croatia_2010_1900. For further information consult the Eurostat Symmetric Input-Output Tables page.

geo

A country code or a country name, defaults to SK that could be written as Slovakia, too.

year

A numeric variable containing the year.

unit

A character string containing the currency unit, defaults to MIO_NAC (million national currency unit). The alternative is MIO_EUR.

households

If the household are included in your model (adds final household expenditure column). Defaults to FALSE.

stk_flow

Defaults to DOM, alternative IMP.

labelling

Defaults to iotables which gives standard row and column names regardless of the source of the table, or if it is a product x product, industry x industry or product x industry table. The alternative is short which is the original short row or column code of Eurostat or OECD.

keep_total

Logical variable. Defaults to FALSE and removes the totalling row and column from the matrix.

Examples

Run this code
# NOT RUN {
comp_employees_de <- primary_input_get(
                            input = "compensation_employees", 
                            source = "germany_1990", geo = "DE", 
                            unit = "MIO_EUR", 
                            year = 1990, labelling = "iotables" ) 
# }

Run the code above in your browser using DataLab