io_tidy_icio: Tidy data from OECD's ICIO

View source: R/io_tidy_icio.R

io_tidy_icioR Documentation

Tidy data from OECD's ICIO

Description

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

Usage

io_tidy_icio(icio, quiet = FALSE)

Arguments

icio

list containing ICIO components

quiet

if TRUE will try to avoid printing messages

Value

Returns one tibble combining all components from icio.

References

OECD (2021), OECD Inter-Country Input-Output Database, 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_raw <- io_load_icio(cache_dir,
                         years = 2010:2012,
                         components = c("Z", "CONS", "GFCF", "INVNT", "NONRES"))

icio <- io_tidy_icio(icio_raw)

## End(Not run)

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