This function determines crop classes given crop response to P, K and S fertilizers

calc_cropclass(B_LU_BRP, B_SOILTYPE_AGR, nutrient)

Arguments

B_LU_BRP

(numeric) The crop code from the BRP

B_SOILTYPE_AGR

(character) The agricultural type of soil

nutrient

(character) The nutrient for which crop classification is needed. Options include P, K and S.

Value

The crop class representing its sensitivity for P, K or S deficiency. A character value.

References

CBAV (2022) Handboek Bodem en Bemesting,https://www.handboekbodemenbemesting.nl/

Examples

calc_cropclass(B_LU_BRP = 256, B_SOILTYPE_AGR = 'dekzand', nutrient = 'P')
#> [1] "class2"
calc_cropclass(B_LU_BRP = c(256,1027), B_SOILTYPE_AGR = c('dekzand','rivierklei'),nutrient = 'P')
#> [1] "class2" "bkw"