define_sector_from_list | R Documentation |
Append sector information from a tibble to tibble output from
import_vd()
or prep_data()
. The function joins the sector
information based on a joining variable
define_sector_from_list( dat, join_variable_name, sector_dat, sector_info_column, sector_dat_join_variable_col )
dat |
A tibble of veda data from import_vd or prep_data |
join_variable_name |
A string column name in dat for joining to sector_dat |
sector_dat |
A tibble containing the sector information for variables |
sector_info_col |
Column in sector_dat containing sector information |
sector_dat_variable_col |
Column in sector_dat for joining to dat |
test_dat <- tibble::tibble(attribute = "var_fout", commodity = "adistelc00", process = "adistelc00" , period = NA, vintage = NA, timeslice = "annual", region = "reg1", userconstraint = "-", pv = 10, commodity_description = NA, process_description = NA, usercostraint_description = NA, commodity_set = NA, process_set = NA, usercostraint_set = NA) sector_dat <- tibble::tibble(major_sector = "agr", process = "adistlec00") t <- define_sector_from_list(test_dat, "process", sector_dat, major_sector, process)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.