This functions calculates the difference between the measured pH and the optimal pH according to the Bemestingsadvies
calc_ph_delta(
B_LU_BRP,
B_SOILTYPE_AGR,
A_SOM_LOI,
A_CLAY_MI,
A_PH_CC,
D_CP_STARCH,
D_CP_POTATO,
D_CP_SUGARBEET,
D_CP_GRASS,
D_CP_MAIS,
D_CP_OTHER
)
(numeric) The crop code from the BRP
(character) The agricultural type of soil
(numeric) The organic matter content of soil in percentage
(numeric) The percentage A_CLAY_MI present in the soil
(numeric) The pH-CaCl2 of the soil
(numeric) The fraction of starch potatoes in the crop plan
(numeric) The fraction of potatoes (excluding starch potatoes) in the crop plan
(numeric) The fraction of sugar beets in the crop plan
(numeric) The fraction of grass in the crop plan
(numeric) The fraction of mais in the crop plan
(numeric) The fraction of other crops in the crop plan
The difference between the actual and desired optimum soil pH. A numeric value.
Handboek Bodem en Bemesting tabel 5.1, 5.2 en 5.3
calc_ph_delta(B_LU_BRP = 265, B_SOILTYPE_AGR = "rivierklei", A_SOM_LOI = 5,
A_CLAY_MI = 20,A_PH_CC = 6, D_CP_STARCH = 0,D_CP_POTATO = 0.3,D_CP_SUGARBEET = 0.2,
D_CP_GRASS = 0,D_CP_MAIS = 0.2,D_CP_OTHER = 0.3)
#> [1] 0.3
calc_ph_delta(265, "rivierklei", 5,20,6, 0,0.3,0.2,0,0.2,0.3)
#> [1] 0.3