Learn R Programming

oec (version 2.5.2)

network_interval: Creates a network of exports for a given period of years

Description

Creates a network of exports for a given period of years

Usage

network_interval(origin, dest, initial_year, final_year, classification,
  interval)

Arguments

origin

is the country code of origin (e.g. "chl" for Chile)

dest

is the country code of destination (e.g. "chn" for China)

initial_year

is the initial year and the OEC's API ranges from 1942 to 2014

final_year

is the final year and the OEC's API ranges from 1942 to 2014

classification

Trade classification that can be "1" (HS92 4 characters since year 1995) or "2" (SITC rev.2 4 characters since year 1962)

interval

is an optional parameter to define the distance between years (by default set to 1) #' @examples # Run countries_list() to display the full list of countries # For the example Chile is "chl" and China is "chn"

# What are the export opportunities of Chile? # Years 2010-2015, trade with China (HS92 4 characters) # network_interval("chl", "chn", 2010, 2015) # network_interval("chl", "chn", 2010, 2015, 1, 1) # equivalent to last command

Value

Creates an HTML file with a network visualization for a given given period of years.