Skip to contents

This helper function creates you a named vector that conforms your analytical objects, such as the use table, the Leontief-matrix, etc. With 60x60 matrixes it is easy to make mistakes with manual definition. The empty effects vector can be used in .csv format as a sample to import scenarios from a spreadsheet application.

Usage

conforming_vector_create(data_table)

Arguments

data_table

A use table, Leontief-matrix, Leontief-inverse, a coefficient matrix or other named matrix / vector.

Value

A wide-format conforming vector of data frame class, with column names matching the metadata of the data_table.

Examples

de_input_flow <- input_flow_get(data_table = iotable_get())

conforming_vector_create (data_table = de_input_flow)
#>   iotables_row agriculture_group industry_group construction trade_group
#> 1            0                 0              0            0           0
#>   business_services_group other_services_group final_consumption_households
#> 1                       0                    0                            0