This function calculates the indicator for the the Magnesium content of the soil by using the Mg-availability calculated by calc_magnesium_availability

ind_magnesium(D_MG, B_LU_BRP, B_SOILTYPE_AGR)

Arguments

D_MG

(numeric) The value of Mg calculated by calc_magnesium_availability

B_LU_BRP

(numeric) The crop code (gewascode) from the BRP

B_SOILTYPE_AGR

(character) The type of soil

Value

The evaluated score for the soil function to supply magnesium for crop uptake. A numeric value.

Examples

ind_magnesium(D_MG = 125, B_LU_BRP = 265, B_SOILTYPE_AGR = 'dekzand')
#> [1] 0.9833179
ind_magnesium(D_MG = c(125,35), B_LU_BRP = c(265,256), B_SOILTYPE_AGR = rep('dekzand',2))
#> [1] 0.9833179 0.4016726