io_load_icio_v2: Download IO tables from the OECD ICIO v2

View source: R/io_load_icio_v2.R

io_load_icio_v2R Documentation

Download IO tables from the OECD ICIO v2

Description

Function to download the set of inter country input output (icio) tables made available by the OECD's 2023 release.

Usage

io_load_icio_v2(cache_dir = NULL, years = 1995:2020, quiet = FALSE)

Arguments

cache_dir

path to cache the ICIO data. If the full content of the ICIO data zip file is found under this location it will not be downloaded again.

years

which year(s) to load. Must be a single value or vector of values between 1995 and 2020. Can be used to reduce memory needs and speed up loading.

quiet

if TRUE will try to avoid printing messages

Value

Returns one data.frame combining all years and requested components from the ICIOs from the OECD's 2023 release.

References

OECD. (2023) OECD Inter-Country Input-Output Tables, http://oe.cd/icio

Examples

## Not run: 

  library(iotr)

  # set cache_dir for ICIO to avoid (very) long download times on every run !!!
  cache_dir <- NULL

  icio_v2_raw <- io_load_icio_v2(cache_dir, years = 2010:2012)

  icio_v2 <- io_tidy_icio_v2(icio_v2_raw)

## End(Not run)

okrebs/iotr documentation built on Dec. 12, 2024, 6:20 p.m.