Given a named list of scenarios returns a cleaner scenarios
dataframe
Source: R/sector_profile_any_prepare_scenario.R
sector_profile_any_prepare_scenario.Rd
Given a named list of scenarios returns a cleaner scenarios
dataframe
Value
A single, cleaner dataframe with an additional column to identify which rows come from which scenario.
See also
Other pre-processing helpers:
sector_profile_any_pivot_type_sector_subsector()
,
sector_profile_any_prune_companies()
Examples
library(dplyr, warn.conflicts = FALSE)
library(readr, warn.conflicts = FALSE)
raw_weo <- example_raw_weo()
raw_ipr <- example_raw_ipr()
raw_scenarios <- list(weo = raw_weo, ipr = raw_ipr)
sector_profile_any_prepare_scenario(raw_scenarios)
#> # A tibble: 4 × 6
#> scenario sector subsector year reductions type
#> <chr> <chr> <chr> <dbl> <dbl> <chr>
#> 1 stated policies scenario total biofuels production … 2020 0 weo
#> 2 announced pledges scenario total biofuels production … 2020 0 weo
#> 3 1.5c rps power NA 2030 0.58 ipr
#> 4 1.5c rps power NA 2050 1.06 ipr