Skip to content

Commit 28e22b2

Browse files
committed
rename function
1 parent 3d19676 commit 28e22b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/add_thresholds_transition_risk.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ add_thresholds_transition_risk <- function(emissions_profile_products,
4747
) |>
4848
create_tr_benchmarks_tr_score(.data$profile_ranking, .data$reductions) |>
4949
distinct() |>
50-
add_transition_risk_thresholds(.by = "benchmark_tr_score")
50+
add_low_high_transition_risk_thresholds(.by = "benchmark_tr_score")
5151
}
5252

5353
#' Calulate `transition_risk_score` and `benchmark_tr_score` columns
@@ -73,7 +73,7 @@ create_tr_benchmarks_tr_score <- function(data, profile_ranking, reduction_targe
7373
)
7474
}
7575

76-
add_transition_risk_thresholds <- function(data, .by) {
76+
add_low_high_transition_risk_thresholds <- function(data, .by) {
7777
mutate(data,
7878
transition_risk_low_threshold = quantile(.data$transition_risk_score,
7979
probs = c(1 / 3, 2 / 3),

0 commit comments

Comments
 (0)