get_va_exgr: Detailed origin and destination of value added in gross...

View source: R/get_va_exgr.R

get_va_exgrR Documentation

Detailed origin and destination of value added in gross exports

Description

Origin of value added in gross exports. It combines a make_exvadir() command and a get_data() command to obtain a result equivalent to the OECD's Origin of Value added in Gross Exports EXGR_BSCI, but with much more flexible geographical and sector options.

Usage

get_va_exgr(
  wio_object,
  va_type = "FC",
  geo_orig = "WLD",
  sec_orig = "TOTAL",
  geo_export,
  sec_export = "TOTAL",
  as_numeric = TRUE
)

Arguments

wio_object

An object of class wio.

va_type

Character string specifying the output as 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.

geo_orig

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

sec_orig

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

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.

as_numeric

Boolean specifying whether to return a numeric value or matrix (TRUE, default) or a data frame (default for get_data()).

Value

A matrix, vector or data frame with export value added data.

Examples

wio <- make_wio("iciotest")
# Exports of manufactures of Spain using foreign VA from France
get_va_exgr(wio, "FC", "FRA", "TOTAL", "ESP", "MANUF")

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