Learn R Programming

iotables (version 0.3.4)

input_coefficient_matrix_create: Create an input coefficient matrix

Description

Create an input coefficient matrix from the input flow matrix and the output vector. The two input vectors must have consistent labelling, i.e the same column names must be found in the use table (input flow) and the output vector.

Usage

input_coefficient_matrix_create(input_flow, output, digits = NULL)

Arguments

input_flow

An input flow matrix created with the use_table_get function.

output

An output vector with a key column, created by output_get.

digits

An integer showing the precision of the technology matrix in digits. Default is NULL when no rounding is applied.

Details

If there are zero values in the output vector, they will be changed to 0.000001 and you will get a warning. Some analytical equations cannot be solved with zero elements. You either have faulty input data, or you have to use some sort of data modification to carry on your analysis.

An alternative that is not implemented here, because it requires analytical judgment, is the aggregation of elements into larger ones that are no longer equal to zero, i.e. merging an industry or product class that has a positive value with another industry or product class that is zero.

Examples

Run this code
# NOT RUN {
de_use <- use_table_get ( source = "germany_1990", geo = "DE",
                          year = 1990, unit = "MIO_EUR", 
                          households = FALSE, labelling = "iotables")

de_output <- output_get ( source = "germany_1990", geo = "DE",
                          year = 1990, unit = "MIO_EUR", 
                          households = FALSE, labelling = "iotables")
# }

Run the code above in your browser using DataLab