Skip to content

Commit

Permalink
feat: in tech mix, distinguish similarly named scenarios by prependin…
Browse files Browse the repository at this point in the history
…g source (#75)
  • Loading branch information
jdhoffa authored May 9, 2024
1 parent a3010b7 commit 5f0d2f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/prep_techexposure_future.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ prep_techexposure_future <-
scen_alloc_wt_sec_prod = sum(.data$scen_alloc_wt_tech_prod)) %>%
mutate(plan = if_else(.data$plan_alloc_wt_tech_prod > 0, .data$plan_alloc_wt_tech_prod / .data$plan_alloc_wt_sec_prod, 0),
scen = if_else(.data$scen_alloc_wt_tech_prod > 0, .data$scen_alloc_wt_tech_prod / .data$scen_alloc_wt_sec_prod, 0)) %>%
mutate(scenario = paste0(.data$scenario_source, ": ", .data$scenario)) %>%
select("asset_class", "investor_name", "portfolio_name", "scenario",
"allocation", "equity_market", "scenario_geography", "year",
"ald_sector", "technology", "plan", "scen") %>%
Expand Down

0 comments on commit 5f0d2f2

Please sign in to comment.