This function gives an indicator value for nitrogen use efficiency calculated by calc_n_efficiency, this function makes use of ind_nretention

ind_n_efficiency(D_NLEACH, leaching_to = "gw")

Arguments

D_NLEACH

(numeric) The value of N leaching calculated by calc_n_efficiency

leaching_to

(character) whether it evaluates N leaching to groundwater ("gw") or to surface water ("sw")

Value

The evaluated score for the soil function to enhance the nitrogen use efficiency. A numeric value between 0 and 1.

Examples

ind_n_efficiency(D_NLEACH = 50, leaching_to = 'gw')
#> [1] 0.006828972
ind_n_efficiency(D_NLEACH = c(5,15,25,75), leaching_to = 'sw')
#> [1] 9.536841e-01 6.972089e-02 3.371577e-04 6.661338e-16