Learn R Programming

gvc (version 6.4.0)

i2e: Importing to Export

Description

Importing to Export

Vertical Specialization

Vertical Specialisation

Usage

i2e(x, by = NULL, subset = NULL)

vertical_specialisation(x, by = NULL, subset = NULL)

vertical_specialization(x, by = NULL, subset = NULL)

Arguments

x

A Leontief decomposed Inter-Country Input Output table as created by decompr

by

variable to subset by

subset

value(s) of the subset variable to select

Examples

Run this code
# NOT RUN {
# load the decompr package
library(decompr)

# load the example data set
data(leather)
attach(leather)

# create a leontief decomposed data set
l <- decomp(x = inter,
            y = final,
            k = countries,
            i = industries,
            o = out)
 
 # apply the Import to Exports analysis
 i2e( l )
# }

Run the code above in your browser using DataLab