WITSclean: WITS data clean

Description Usage Arguments Value Examples

View source: R/WITSclean_function.R

Description

This function takes (import) trade data downloaded from WITS, cleans it and transforms it into a network. Adding a number of country level attributes to nodes in the network, including: regional partition, GDP, GDP per capita, GDP growth and FDI.

Usage

1
WITSclean(CSVfile, YEAR, threshold, cutoff)

Arguments

CSVfile

WITS csv file

YEAR

Year

threshold

Apply a threshold - TRUE, Extract the backbone - FALSE

cutoff

Threshold - cutoff level, Backbone - significance level

Value

International Trade Network - igraph object

Examples

1
2
3
4
5
6
7
8
##Create an igraph object from international
##trade data downloaded from WITS

##Applies a threhold
##only retains ties that are at least
## 0.01% of total trade

ITN<-WITSclean("WITS_CSV_FILE_NAME.csv",2015,TRUE,0.01)

ITNr documentation built on March 13, 2020, 1:48 a.m.

Related to WITSclean in ITNr...