View source: R/module-helpers.R
write_to_all_regions | R Documentation |
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
)
data |
Base tibble to start from |
names |
Character vector indicating the column names of the returned tibble |
GCAM_region_names |
Tibble with GCAM region names and ID numbers |
has_traded |
Logical indicating whether any rows in the base table have "traded" goods; if true,
|
apply_selected_only |
Logical indicating whether |
set_market |
Logical indicating whether to create a |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.