View source: R/gta trade value bilateral.R
gta_trade_value_bilateral | R Documentation |
Computes a data frame with the bilateral trade values in the GTA base period for the given importer-exporter-product combinations.
gta_trade_value_bilateral(
importing.country = NULL,
keep.importer = NULL,
exporting.country = NULL,
keep.exporter = NULL,
cpc.sectors = NULL,
keep.cpc = TRUE,
hs.codes = NULL,
keep.hs = TRUE,
trade.data = "base",
trade.data.path = "data/support tables/Goods support table for gtalibrary.Rdata",
df.name = "trade.base.bilateral",
pc.name = "parameter.choice.trade.base"
)
importing.country |
Specify the importing countries for your analysis. Default is 'any'. Permissible values are country names or UN codes. |
keep.importer |
Specify whether to focus on ('TRUE') or exclude ('FALSE') trade with the stated importing country. |
exporting.country |
Specify the exporting countries for your analysis. Default is 'any'. Permissible values are country names or UN codes. |
keep.exporter |
Specify whether to focus on ('TRUE') or exclude ('FALSE') trade with the stated exporting country. |
cpc.sectors |
Provide a vector of CPC codes that you are interested in (version 2.1, 3-digit level). |
keep.cpc |
Specify whether to focus on ('TRUE') or exclude ('FALSE') interventions with the stated CPC codes. |
hs.codes |
Provide a vector of HS codes that you are interested in (2012 vintage, any digit level). |
keep.hs |
Specify whether to focus on ('TRUE') or exclude ('FALSE') interventions with the stated HS codes. |
trade.data |
Choose the trade data underlying these calulations. Choices are individual years between 2007 and 2020, the GTA base period data ('base', averages for 2005-2007) as well as moving trade data as a function of coverage year ('prior year' and 'current year'). Default is 'base'. |
trade.data.path |
Set path of trade data file (default is 'data/support tables/Goods support table for gtalibrary.Rdata'). |
df.name |
Set the name of the generated result data frame. Default is trade.base. |
pc.name |
Set the name of the generated parameter choice data frame. Default is parameter.choice.trade.base. |
Output is two data frames. First data frame includes the trade values for the given importer-exporter-product combinations. Second data frame states parameter choices.
Global Trade Alert
www.globaltradealert.org
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.