export_dataframe: Make a dataframe from measures in IOTs

Description Usage Arguments Details Examples

View source: R/export_dataframe.R

Description

Function to extract measures from IOTs into a dataframe.

Usage

1
export_dataframe(measures, iots, years = NULL, long = FALSE)

Arguments

measures:

vector with the names of the measures.

iots:

list of input-output tables for which measures are already calculated.

years:

vector with years for which to export data

long:

Whether data is in long or wide format.

Details

First element in vector will be used to find the description of the data Make sure the output of the measures are of the same length. (i.e. all need to be on e.g. country-industry, country or industry level)

Examples

1
2
3
4
iots <- load_iots("WIOD2013", 2000:2001)
iots <- on_iots(gii, iots)
df_wide <- export_dataframe("gii", iots)
df_long <- export_dataframe("gii", iots, long = TRUE)

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