Copy data table to all regions, selecting which columns to keep.
write_to_all_regions(
data,
names,
GCAM_region_names,
has_traded = FALSE,
apply_selected_only = TRUE,
set_market = FALSE
)
Base tibble to start from
Character vector indicating the column names of the returned tibble
Tibble with GCAM region names and ID numbers
Logical indicating whether any rows in the base table have "traded" goods; if true,
set_traded_names
will be called
Logical indicating whether set_traded_names
is applied to
the whole tibble, or only selected rows
Logical indicating whether to create a market.name
column whose values are equal
to region
prior to set_traded_names
re-setting region
names
Tibble with data written out to all GCAM regions.
Used for data that GCAM contains within each region, but whose values are not actually differentiated by region.