Skip to contents

Reads base_financials_<country>.dta, trade_RAW_<country>.dta and (if present) plants_RAW_<country>.dta, exchange_rates.dta and tl3_typology.dta (else the package's exchange_rates and tl3_typology) from config$input_dir; runs build_trade_accounts_indicators() and compute_trade_characteristics(); writes trade_accounts_indicators_<country>.dta to config$input_dir and n16_trade_characteristics_p1_<country>.csv / ..._p2_... to config$output_dir. The second package (run_scaleup_pipeline()) is not needed first: the trade package builds its own panel.

Usage

run_trade_pipeline(config)

Arguments

config

A scaleup_config from config_scaleup().

Value

Invisibly, a list with the p1 and p2 tables.