View source: R/flowsToMirror.R
flowsToMirror | R Documentation |
Some countries may be listed as partners, but never show up as reporters, while other may have an incomplete coverage of reported flows (e.g., imports are reported, but not exports and partner report having imports from that country). This function checks when one of these two cases happen and build a table of them.
flowsToMirror(data = NA, names = FALSE)
data |
Trade dataset with ALL reporters included. |
names |
Logical: if TRUE an additional column is
added to the result with country names (see
|
A table with two columns: area
is the country
(that could originally have been a reporter or a partner)
code, and flow
that is an integer representing imports
(1) or exports (2).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.