From be29e4fcb385ae5be14cb63009134044f8eab39a Mon Sep 17 00:00:00 2001 From: DimitraVeropoulou Date: Thu, 12 Feb 2026 15:44:41 +0100 Subject: [PATCH] round to 2 decimals the gap score --- r_app/80_utils_cane_supply.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r_app/80_utils_cane_supply.R b/r_app/80_utils_cane_supply.R index bd06aa8..b8ef588 100644 --- a/r_app/80_utils_cane_supply.R +++ b/r_app/80_utils_cane_supply.R @@ -206,7 +206,7 @@ calculate_gap_filling_kpi <- function(ci_raster, field_boundaries) { outlier_threshold <- median_ci - (2 * sd_ci) low_ci_pixels <- sum(valid_values < outlier_threshold) total_pixels <- length(valid_values) - gap_score <- (low_ci_pixels / total_pixels) * 100 + gap_score <- round((low_ci_pixels / total_pixels) * 100, 2) # Classify gap severity gap_level <- dplyr::case_when(