load_tables_vectors: Load the Input-Output and Final demand tables

Description Usage Arguments Details Value Author(s) Examples

View source: R/load_tables_vectors.R

Description

This function loads the demand tables and defines all variables for the decomposition

Usage

1
load_tables_vectors(x, y, k, i, o, v = NULL, null_inventory = FALSE)

Arguments

x

intermediate demand table, it has dimensions GN x GN (G = no. of country, N = no. of industries), excluding the first row and the first column which contains the country names, and the second row and second column which contain the industry names for each country. In addition, an extra row at the end should contain final demand.

y

final demand table it has dimensions GN x MN, excluding the first row and the first column which contains the country names, the second column which contains the industry names for each country, and second row which contains the five decomposed final demands (M). #' @param k is a vector of country of region names

k

vector or country or region names

i

vector of sector or industry names

o

vector of final outputs

v

vector of value added

null_inventory

when the inventory (last FDC) should be set to zero

Details

Adapted from code by Fei Wang.

Value

a decompr class object

Author(s)

Bastiaan Quast

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# load example data
data(leather)

# create intermediate object (class decompr)
decompr_object <- load_tables_vectors(inter,
                                      final,
                                      countries,
                                      industries,
                                      out)

# examine output object                                    
str(decompr_object)

decompr documentation built on May 29, 2017, 11:18 p.m.