inst/doc/gvc.R

## -----------------------------------------------------------------------------
# load the decompr package
library(decompr)

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

## -----------------------------------------------------------------------------
l <- decomp(x = inter,
            y = final,
            k = countries,
            i = industries,
            o = out,
            method = "leontief",
            post = "exports"    )

## -----------------------------------------------------------------------------
library(gvc)

## -----------------------------------------------------------------------------
nrca(l)

## -----------------------------------------------------------------------------
i2e(l)

Try the gvc package in your browser

Any scripts or data that you put into this service are public.

gvc documentation built on June 20, 2022, 1:05 a.m.