Learn R Programming

iotables (version 0.4.5)

output_coefficient_matrix_create: Create an output coefficient matrix

Description

Create an output coefficient matrix from the input flow matrix or a symmetric input-output table. If there are zero values in present, 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.

Usage

output_coefficient_matrix_create(io_table, total = "tfu", digits = NULL)

Arguments

io_table

A symmetric input-output table or use table created with the iotable_get function which contains the 'total' column. In case you use type="tfu" you need to input a full iotable, create by the iotable_get, because you will need the final demand column.

total

The output='total' (or CPA_TOTAL, depending on the names in your table, default) returns the output coefficients for products (intermediates) while the final_demand returns output coefficients for final demand. See Eurostat Manual, p495 and p507.

digits

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

Value

An output coefficient matrix of data.frame class. The column names are ordered, and the row names are in the first, auxiliary metadata column.

Examples

Run this code
# NOT RUN {
io_table <- iotable_get () 

output_coefficient_matrix_create ( io_table  = io_table, 
                                   total = 'tfu',
                                   digits = 4 )
# }

Run the code above in your browser using DataLab