Skip to contents

This function calculates the descriptive analysis of transition risk scores for all tilt_subsectors per scenario-year-tilt_subsector benchmark using product-level output of Transition risk profile indicator.

Usage

calculate_trs_descriptive_analysis_per_tr_benchmark(
  transition_risk_product,
  transition_risk_benchmark
)

Arguments

transition_risk_product

A dataframe. Product-level output of Transition risk profile

transition_risk_benchmark

A string. Benchmark of Transition risk profile

Value

A dataframe

Examples

transition_risk_product_example <-
  example_transition_risk_product_trs_des_analysis()
transition_risk_product_example
#> # A tibble: 16 × 3
#>    tilt_subsector grouping_transition_risk     transition_risk_score
#>    <chr>          <chr>                                        <dbl>
#>  1 chemicals      1.5C RPS_2030_tilt_subsector                     1
#>  2 chemicals      1.5C RPS_2030_tilt_subsector                     2
#>  3 chemicals      1.5C RPS_2050_tilt_subsector                     3
#>  4 chemicals      1.5C RPS_2050_tilt_subsector                     4
#>  5 chemicals      NZ 2050_2030_tilt_subsector                      5
#>  6 chemicals      NZ 2050_2030_tilt_subsector                      6
#>  7 chemicals      NZ 2050_2050_tilt_subsector                      7
#>  8 chemicals      NZ 2050_2050_tilt_subsector                      8
#>  9 iron & steel   1.5C RPS_2030_tilt_subsector                     9
#> 10 iron & steel   1.5C RPS_2030_tilt_subsector                    10
#> 11 iron & steel   1.5C RPS_2050_tilt_subsector                    11
#> 12 iron & steel   1.5C RPS_2050_tilt_subsector                    12
#> 13 iron & steel   NZ 2050_2030_tilt_subsector                     13
#> 14 iron & steel   NZ 2050_2030_tilt_subsector                     14
#> 15 iron & steel   NZ 2050_2050_tilt_subsector                     15
#> 16 iron & steel   NZ 2050_2050_tilt_subsector                     NA

# Calculates the descriptive analysis for benchmark "1.5C RPS_2030_tilt_subsector"
calculate_trs_descriptive_analysis_per_tr_benchmark(
  transition_risk_product_example,
  "1.5C RPS_2030_tilt_subsector"
)
#> # A tibble: 2 × 6
#>   tilt_subsector grouping_transition_risk   tr_average tr_median tr_25th tr_75th
#>   <chr>          <chr>                           <dbl>     <dbl>   <dbl>   <dbl>
#> 1 chemicals      1.5C RPS_2030_tilt_subsec…        1.5       1.5    1.25    1.75
#> 2 iron & steel   1.5C RPS_2030_tilt_subsec…        9.5       9.5    9.25    9.75