Creates a scoring rule object for indicators where higher values indicate
better soil quality. The rule will normalize values using min-max
normalization: (x - min) / (max - min).
Usage
higher_better(min_value = NULL, max_value = NULL)
Arguments
- min_value
Optional minimum value for normalization. If NULL,
the minimum will be calculated from the data.
- max_value
Optional maximum value for normalization. If NULL,
the maximum will be calculated from the data.
Value
A scoring_rule object of class c("scoring_rule", "higher_better")
Examples
# Create a rule for organic matter (higher is better)
om_rule <- higher_better()
# With custom min/max values
om_rule <- higher_better(min_value = 0, max_value = 5)