This function calculates the indicator for the pH of the soil by the difference with the optimum pH. This is calculated in calc_ph_delta.

ind_ph(D_PH_DELTA)

Arguments

D_PH_DELTA

(numeric) The pH difference with the optimal pH.

Value

The evaluated score for the soil function to buffer pH within optimum range for crop growth. A numeric value between 0 and 1.

Examples

ind_ph(D_PH_DELTA = 0.8)
#> [1] 0.02724143
ind_ph(D_PH_DELTA = c(0.2,0.6,0.8,1.5))
#> [1] 9.550806e-01 1.500765e-01 2.724143e-02 5.099694e-05