distance | R Documentation |
distance()
computes the distance matrix that
accounts for the weighted proportions of the products connected to
each good that the countries are not exporting.
distance(balassa_index, proximity_product)
balassa_index |
(Type: dgCMatrix) the output from
|
proximity_product |
(Type: dgCMatrix) the output from
|
The current implementation follows \insertCiteatlas2014economiccomplexity to measure the oppotunities implied by a country's position.
A matrix.
For more information on this index see:
\insertRefatlas2014economiccomplexity
and the references therein.
d <- distance(
economiccomplexity_output$balassa_index,
economiccomplexity_output$proximity$proximity_product
)
# partial view of the distance matrix
d[1:5, 1:5]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.