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.
WITSclean(CSVfile, YEAR, threshold, cutoff)
International Trade Network - igraph object
WITS csv file
Year
Apply a threshold - TRUE, Extract the backbone - FALSE
Threshold - cutoff level, Backbone - significance level