Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output names of target_* are not clear #144

Closed
jdhoffa opened this issue Jul 22, 2020 · 3 comments · Fixed by #153
Closed

Output names of target_* are not clear #144

jdhoffa opened this issue Jul 22, 2020 · 3 comments · Fixed by #153
Labels
small Likely finished in under a day

Comments

@jdhoffa
Copy link
Member

jdhoffa commented Jul 22, 2020

Feedback from a bank: the emission_factor_metric name "projected" is unclear.
I think it would be most helpful to have a coherent naming convention across methodology documents & code (and also aim to have the names similar between each type of target_* function).

May need some input from @2diiKlaus or others on the best way to do this.

See reprex below:

library(dplyr)
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union
library(r2dii.data)
library(r2dii.match)
library(r2dii.analysis)

match_result <- match_name(loanbook_demo, ald_demo) %>%
  prioritize()

out_market_share <- match_result %>% 
  target_market_share(
    ald = r2dii.data::ald_demo,
    scenario = r2dii.data::scenario_demo_2020,
    region_isos = r2dii.data::region_isos_demo
  )
#> Joining, by = c("sector", "technology", "green_or_brown")

out_sda <- match_result %>%
  target_sda(
    ald = ald_demo,
    co2_intensity_scenario = co2_intensity_scenario_demo
  )

select(out_market_share,weighted_production_metric) %>% distinct()
#> # A tibble: 5 x 1
#>   weighted_production_metric  
#>   <chr>                       
#> 1 projected                   
#> 2 normalized_corporate_economy
#> 3 target_cps                  
#> 4 target_sds                  
#> 5 target_sps

select(out_sda, emission_factor_metric) %>% distinct()
#> # A tibble: 3 x 1
#>   emission_factor_metric
#>   <chr>                 
#> 1 projected             
#> 2 target                
#> 3 scenario_benchmark

Created on 2020-07-24 by the reprex package (v0.3.0)

@maurolepore
Copy link
Contributor

@jdhoffa, FYI I think the last line of your reprex is unintentionally broken: Where it says out you likely mean out_market_share.

@jdhoffa
Copy link
Member Author

jdhoffa commented Jul 24, 2020

tnx mauro, fixed

@jdhoffa
Copy link
Member Author

jdhoffa commented Jul 24, 2020

Relates to #105

@jdhoffa jdhoffa added the small Likely finished in under a day label Jul 27, 2020
@jdhoffa jdhoffa mentioned this issue Jul 29, 2020
5 tasks
@jdhoffa jdhoffa linked a pull request Jul 31, 2020 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
small Likely finished in under a day
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants