on_iots: Run over a list of International Input-Output Tables (IOTs)

Description Usage Arguments Details Value Examples

View source: R/on_iots.R

Description

[oniots()] executes the same function on a list of international input-output tables (IOTs)

Usage

1
on_iots(fun, iots, ...)

Arguments

fun:

The function to run over.

iots:

the list of IOTs

...:

Any other arguments needed for function in fun,

Details

fun should be a function that appends its output to the IOT.

Value

List of international input-output tables with the output of the function call added to each IOT.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
iots <- load_iots("WIOD2013", 2000:2001)
iots <- on_iots(gii, iots)
 
## Not run: Example with extra arguments
NAFTA <- c("USA", "MEX", "CAN")
BENELUX <- c("BEL", "LUX", "NLD") 
regions <- countrycat(list(NAFTA, BENELUX), iots)
primary <- c("AtB", "C") 
transport <- c("60", "61", "62", "63")
industries <- industrycat(list(primary, transport), iots)

iots <- on_iots(gii, iots, regions = regions, industries = industries)
df_gii <- export_dataframe("gii", iots)

sybrendeuzeman/WIOD_package documentation built on Jan. 29, 2020, 9:07 p.m.