Learn R Programming

oec (version 1.0.3)

network.compare: Creates a network to compare two years

Description

Creates a network to compare two years

Usage

network.compare(ORIGIN, DESTINATION, CLASSIFICATION, YEAR1, YEAR2)

Arguments

ORIGIN
is the country code of origin (e.g. "chl" for Chile)
DESTINATION
is the country code of origin (e.g. "chn" for China)
CLASSIFICATION
refers to the trade classification that can be "6" (HS92 6 characters) or "8" (HS92 8 characters) for the year 1995 and going or "4" (SITC rev.2 4 characters) for the year 1962 and ongoing
YEAR1
is the initial year and the OEC's API ranges from 1962 to 2014
YEAR2
is the final year and the OEC's API ranges from 1962 to 2014

Value

Creates an HTML file with a network visualization that compares two given years.

Examples

Run this code
network.compare("chl", "chn", 6, 2000, 2010)

Run the code above in your browser using DataLab