This function calculates the risk of pesticide leaching from a soil. The risk is calculated by comparing the current leached fraction with a worst case scenario
calc_pesticide_leaching(
  B_SOILTYPE_AGR,
  A_SOM_LOI,
  A_CLAY_MI,
  A_SAND_MI,
  A_SILT_MI,
  D_PSP,
  M_PESTICIDES_DST,
  M_MECHWEEDS
)(character) The agricultural type of soil
(numeric) The percentage organic matter in the soil (%)
(numeric) The clay content of the soil (%)
(numeric) The sand content of the soil (%)
(numeric) The silt content of the soil (%)
(numeric) The precipitation surplus per crop  calculated by calc_psp
(boolean) measure. Use of DST for pesticides (option: TRUE or FALSE)
(boolean) measure. Use of mechanical weed protection (option: TRUE or FALSE)
The risk of pesticide leaching from soils. A numeric value.
calc_pesticide_leaching(B_SOILTYPE_AGR = 'rivierklei', A_SOM_LOI = 4, 
A_CLAY_MI = 20, A_SAND_MI = 45, A_SILT_MI = 35, 
D_PSP = 225, M_PESTICIDES_DST = TRUE,M_MECHWEEDS = TRUE)
#> [1] 0.6321355
calc_pesticide_leaching('rivierklei', 4, 20, 45, 35, 225, TRUE,TRUE)
#> [1] 0.6321355
calc_pesticide_leaching('dekzand', 4.8, 4.2, 85, 10.8, 225, TRUE,TRUE)
#> [1] 0.5993204