calc_imports_by_product: Calculates total imports by product, for each country, for...

View source: R/transform_helpers.R

calc_imports_by_productR Documentation

Calculates total imports by product, for each country, for each year.

Description

The function calculates total imports by product, for each country, for each year.

Usage

calc_imports_by_product(
  .tidy_iea_df,
  flow = IEATools::iea_cols$flow,
  e_dot = IEATools::iea_cols$e_dot,
  imports = IEATools::interface_industries$imports
)

Arguments

.tidy_iea_df

The .tidy_iea_df for which total imports need to be calculated.

flow, e_dot

See IEATools::iea_cols.

imports

The name of the column containing the quantity (in energy terms) of imported products. Default is IEATools::interface_industries$imports.

Value

A data frame returning the value of imported energy by product, for each country and year.

Examples

tidy_AB_data %>%
calc_imports_by_product() %>%
print()

earamendia/ECCTools documentation built on May 12, 2023, 2:12 a.m.