Transform the WIOD data.table into a flat/long data.table
flatWIOD(wiot, rows = seq_len(dim(wiot)[1]), columns = seq_len(dim(wiot)[2]))
| wiot | WIOD data.table returned by |
|---|---|
| rows |
|
| columns |
|
A data.table where each row corresponds to
a combination of a source (exporting) and destination (importing) sectors
and countries, with ten columns:
ExpSectorNrExporting sector -- WIOD numeric codes for industries (integer vector),
see also sectors
ExpCountryExporting country -- a three-letter ISO country code,
as in the WIOD file (character vector), see also countries
valueAn absolute value of the flow (in US dollars as in the WIOD source file)
ImpSectorNrImporting sector -- WIOD numeric codes for industries and
final use sectors (integer vector), see also sectors
ImpCountryImporting country -- a three-letter ISO country code,
as in the WIOD file (character vector), see also countries