load_iots: Load a time-series of International Input-Output Table.

Description Usage Arguments Details Examples

View source: R/load_iots.R

Description

Function loads a time-series of internation Input-Output Tables (IOTs).

Usage

1
2
3
4
5
load_iots(
  version_database,
  years = NULL,
  directory = get("dir_data", envir = paramEnv)
)

Arguments

version:

version of IOTs

year:

years for which you want the IOT. Default is all years.

directory:

directory to where the input-output tables are stored. Most often preferable to change using change_dir_data().

Details

Versions currently supported are WIOD2013 (World Input Output Database, version 2013), WIOD2016 (World Input Output Database, version 2013) and ICIOT (Inter-Country Input Output Tables, version 2018).

If directory is changed using change_dir_data, the function will download the requested data prior to loading. One can also download data using download_iots.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: Using online data:
iots <- load_iots("WIOD2013")

## Not run: Using online data, only some years:
iots <- load_iots("WIOD2013", 2000:2002)

## Not run: Using local data:
change_dir_data("D:/Data")
iots <- load_iots("WIOD2013")
## End(Not run)

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