Learn R Programming

oec (version 2.5.2)

oec-package: The Observatory of Economic Complexity

Description

Package's details.

Arguments

Details

This package was created to simplify user interaction with the OEC's API. It will download trade data from MIT Media Lab servers and it will save that both in CSV and JSON formats.

You can use this package just to download information but it also creates D3Plus visualizations that are suitable for presentations or a context where you need to show data. These visualizations do not need internet connection after you obtain the data.

All of the datasets provided within this package provide data that cannot be obtained from the API and do help creating better visualizations.

The functions provided within this package are:

install_d3plus Installs D3 and D3Plus.

demos Copies the demo file.

getdata Downloads and processes the data from the API for a certain year.

getdata_interval Downloads and processes the data from the API for an interval of years.

network Creates a network for a given year.

network_interval Creates a network for an interval of years.

treemap Creates a treemap for a given year.

treemap_interval Creates a treemap for an interval of years.

The datasets provided within this package are:

countries_list A list of all the countries in the world and its respective country code.

hs92 HS92 products and groups (4 and 6 characters codes).

sitc SITC rev.2 products and groups (4 characters codes).

The additional files provided within this package are:

treemap_template.html Template to display a treemap of the imports, exports or trade balance of a country for a certain year using HS92 or SITC (rev.2) product classification.

network_template.html Template to display a network of exports of a country for a certain year using HS92 or SITC (rev.2) product classification.

nodes_hs92_4.json Part of a pre-drawn network to create network visualizations using HS92 product classification.

edges_hs92_4.json Part of a pre-drawn network to create network visualizations using HS92 product classification.

nodes_sitc_4.json Part of a pre-drawn network to create network visualizations using SITC (rev.2) product classification.

edges_sitc_4.json Part of a pre-drawn network to create network visualizations using SITC (rev.2) product classification.

d3plus-1.9.8.zip Contains D3Plus and D3 to display the visualization.