io_tidy_icio_v2: Tidy data from OECD's ICIO v2

View source: R/io_tidy_icio_v2.R

io_tidy_icio_v2R Documentation

Tidy data from OECD's ICIO v2

Description

Function to turn a list of OECD ICIO components, usually obtained from a call to io_load_icio_v2(), into a tibble, i.e. a 'tidy' data frame.

Usage

io_tidy_icio_v2(icio, quiet = FALSE)

Arguments

icio

list containing ICIO years from the 2023 release

quiet

if TRUE will try to avoid printing messages

Value

Returns one tibble combining all components from icio.

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.