get_va_exgry: Detailed origin and final absorption of value added in gross...

View source: R/get_va_exgry.R

get_va_exgryR Documentation

Detailed origin and final absorption of value added in gross exports

Description

Get exports in terms of final absorption by origin of value added and final destination. It combines a make_exvadir() command and a get_data() command to obtain a result equivalent to that of the OECD's Gross Exports by Origin of Value Added and Final destination (FD_EXGR_VA, FD_EXGRFNL_VA and FD_EXGRINT_VA), but with much more flexible geographical and sector options.

Usage

get_va_exgry(
  wio_object,
  va_type = "TC",
  flow_type = "EXGRY",
  geo_orig = "WLD",
  geo_export,
  sec_export = "TOTAL",
  geo_fd = "WLD",
  as_numeric = TRUE
)

Arguments

wio_object

An object of class wio.

va_type

String for domestic content ("DC"), foreign content ("FC") or total content ("TC") from the perspective of the exporter. As origin of value added is specified, this is normally redundant, but in the case of exporter "WLD", the domestic and foreign content is considered as the sum of domestic/foreign contents of all individual countries. For groups (such as "EU27") domestic/foreign means value added from within/outside the group.

flow_type

String specifying the type of flow in terms of absorption. It can be total gross exports ("EXGRY"), exports of final products ("EXGRY_FIN") or exports of intermediates ("EXGRY_INT").

geo_orig

Character string with code of country or country group of origin of value added.

geo_export

Character string with code of exporting country or country group.

sec_export

Character string with code of exporting sector or sector group. Combinations (with "|") and exceptions (with "x") are allowed.

geo_fd

String character with code of country or country group of final destination of exports

as_numeric

Boolean. If TRUE (default), returns a numeric value, vector or matrix instead of a data frame (default for get_data()).

Value

A matrix, vector or data frame with data of exports

Examples

# What part of French value added exported as US final intermediate
# manufactures ends up absorbed by Spain?
wio <- make_wio("iciotest")
get_va_exgry(wio, flow_type = "EXGRY_INT", geo_orig = "FRA",
             geo_export = "USA", sec_export = "MANUF", geo_fd = "ESP")

exvatools documentation built on Sept. 17, 2024, 1:07 a.m.