tests/testthat/_snaps/target_sda.md

with fake data outputs known value

Code
  out
Output
  # A tibble: 68 x 6
     sector  year region scenario_source emission_factor_metric
     <chr>  <dbl> <chr>  <chr>           <chr>                 
   1 cement  2020 global demo_2020       projected             
   2 cement  2021 global demo_2020       projected             
   3 cement  2022 global demo_2020       projected             
   4 cement  2020 global demo_2020       corporate_economy     
   5 cement  2021 global demo_2020       corporate_economy     
   6 cement  2022 global demo_2020       corporate_economy     
   7 cement  2020 global demo_2020       target_b2ds           
   8 cement  2021 global demo_2020       target_b2ds           
   9 cement  2022 global demo_2020       target_b2ds           
  10 cement  2023 global demo_2020       target_b2ds           
  # i 58 more rows
  # i 1 more variable: emission_factor_value <dbl>
Code
  out_company
Output
  # A tibble: 68 x 7
     sector  year region scenario_source name_abcd    emission_factor_metric
     <chr>  <dbl> <chr>  <chr>           <chr>        <chr>                 
   1 cement  2020 global demo_2020       shaanxi auto projected             
   2 cement  2021 global demo_2020       shaanxi auto projected             
   3 cement  2022 global demo_2020       shaanxi auto projected             
   4 cement  2020 global demo_2020       market       corporate_economy     
   5 cement  2021 global demo_2020       market       corporate_economy     
   6 cement  2022 global demo_2020       market       corporate_economy     
   7 cement  2020 global demo_2020       shaanxi auto target_b2ds           
   8 cement  2021 global demo_2020       shaanxi auto target_b2ds           
   9 cement  2022 global demo_2020       shaanxi auto target_b2ds           
  10 cement  2023 global demo_2020       shaanxi auto target_b2ds           
  # i 58 more rows
  # i 1 more variable: emission_factor_value <dbl>


Try the r2dii.analysis package in your browser

Any scripts or data that you put into this service are public.

r2dii.analysis documentation built on Oct. 23, 2023, 5:08 p.m.