Comprehensive sustainability score with categorization based on user-defined thresholds.
Numeric vector. Water dimension score (0 to 1).
Numeric vector. Energy dimension score (0 to 1).
Numeric vector. Food dimension score (0 to 1).
Numeric vector. Nutrient dimension score (0 to 1).
Numeric vector. Carbon dimension score (0 to 1).
Numeric vector of length 5. Default equal weights.
Numeric vector of length 3. Breakpoints for sustainability categories: c(low, medium, high). Default c(0.4, 0.6, 0.8).
Logical. If TRUE, prints informational messages.
Default TRUE.
A data frame with columns:
Numeric. Composite sustainability score (0 to 1)
Character. Sustainability category: Unsustainable, Low Sustainability, Moderately Sustainable, or Highly Sustainable
Numeric. Water dimension input score
Numeric. Energy dimension input score
Numeric. Food dimension input score
Numeric. Nutrient dimension input score
Numeric. Carbon dimension input score
Formula: $$NSS = \frac{1}{n} \sum_{i=1}^{n} S_i$$ where S_i are normalized sub-dimension scores.
# \donttest{
nexus_sustainability_score(
water_score = c(0.85, 0.60, 0.45),
energy_score = c(0.70, 0.55, 0.35),
food_score = c(0.90, 0.80, 0.50),
nutrient_score = c(0.65, 0.70, 0.40),
carbon_score = c(0.80, 0.50, 0.30)
)
#> Sustainability scores with categories computed.
#> WEFNC Sustainability Assessment
#> ----------------------------------------
#> Score: 0.7800 -> Moderately Sustainable
#> Score: 0.6300 -> Moderately Sustainable
#> Score: 0.4000 -> Low Sustainability
#>
#> nexus_score category water energy food nutrient carbon
#> 0.78 Moderately Sustainable 0.85 0.70 0.9 0.65 0.8
#> 0.63 Moderately Sustainable 0.60 0.55 0.8 0.70 0.5
#> 0.40 Low Sustainability 0.45 0.35 0.5 0.40 0.3
# }