set_traded_names: set_traded_names

View source: R/module-helpers.R

set_traded_namesR Documentation

set_traded_names

Description

Re-set region names in tables with traded secondary goods so that the traded secondary goods are all contained within one specified region, with the (actual) region name prepended to the subsector and technology names (where applicable)

Usage

set_traded_names(data, GCAM_region_names, apply_selected_only = TRUE)

Arguments

data

Tibble to operate on

GCAM_region_names

Tibble with GCAM region names and ID numbers

apply_selected_only

Logical indicating whether region/subsector/technology re-assignment is applied to the whole tibble, or only selected rows

Value

Tibble returned with modified region, subsector, and/or technology information.


JGCRI/gcamdata documentation built on March 21, 2023, 2:19 a.m.