Learn R Programming

oec (version 2.2)

network_comparison: Creates a network to compare two years

Description

Creates a network to compare two years

Usage

network_comparison(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
# NOT RUN {
network_comparison("chl", "chn", 6, 2010, 2014)
# }

Run the code above in your browser using DataLab