get_rca: Creates an incidence matrix from a region-unit intensity...

Description Usage Arguments Value

Description

Takes a matrix with regions in rows and units in columns, where elements are intensity. This could be countries as regions, products as units and export value as intensity. Calculates the revealed comparative advantage for each region-unit pair. Returns the incidence matrix.

Usage

1
get_rca(mat, binary = TRUE)

Arguments

mat

Matrix that contains regions on rows, units on columns and intensity value in elements.

binary

logical TRUE returns a binarized RCA matrix, where values of at least 1 = 1, values below 1 = 0.

Value

Matrix that contains the revealed comparative of region (rows) in unit (columns).


sbpdata/compost documentation built on Nov. 5, 2019, 6:17 a.m.