Learn R Programming

oec (version 1.0.3)

oec-package: oec: The Observatory of Economic Complexity

Description

Use The Observatory of Economic Complexity's API from R console to obtain international trade data to create spreadsheets (csv format) and D3Plus visualizations.

Arguments

Details

The functions provided within this package are:

d3plus Install D3 and D3plus in your working directory.

demos Copies demo file with examples.

getdata Download trade data from OEC's API.

network Create an animated network with nodes and edges.

network.compare Creates a network that compares the exporting opportunities of a country in two different years.

treemap Creates an animated treemap.

The datasets provided within this package are:

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

hs92_2char This file contains the HS92 groups. This file is used to create spreadsheets and visualizations with trade data.

hs92_6char This file contains the HS92 products (6 characters codes). This file is used to create spreadsheets and visualizations with trade data.

hs92_8char This file contains the HS92 products (8 characters codes). This file is used to create spreadsheets and visualizations with trade data.

hs_colors This file contains the HS92 colors. This file is used to create spreadsheets and visualizations based on trade data.

sitc_rev2_2char This file contains the SITC (rev. 2) groups. This file is used to create spreadsheets and visualizations with trade data.

sitc_rev2_4char This file contains the SITC (rev. 2) products (4 characters codes). This file is used to create spreadsheets and visualizations with trade data.

sitc_colors This file contains the SITC (rev. 2) colors. This file is used to create spreadsheets and visualizations with trade data.