View source: R/join_abcd_scenario.R
join_abcd_scenario | R Documentation |
join_abcd_scenario()
is a simple wrapper of several calls to
dplyr::join_*()
, forming the master dataset to be used in later steps of
the analysis.
join_abcd_scenario(
data,
abcd,
scenario,
region_isos = r2dii.data::region_isos,
add_green_technologies = FALSE
)
data |
A data frame like the output of
|
abcd |
An asset level data frame like r2dii.data::abcd_demo. |
scenario |
A scenario data frame like r2dii.data::scenario_demo_2020. |
region_isos |
A data frame like r2dii.data::region_isos (default). |
add_green_technologies |
Logical vector of length 1. |
Returns a fully joined data frame, linking portfolio, abcd and scenario.
Other utility functions:
summarize_weighted_production()
library(r2dii.data)
library(r2dii.match)
valid_matches <- match_name(loanbook_demo, abcd_demo) %>%
# WARNING: Remember to validate matches (see `?prioritize`)
prioritize()
valid_matches %>%
join_abcd_scenario(
abcd = abcd_demo,
scenario = scenario_demo_2020,
region_isos = region_isos_demo
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.