Relative yield performance compared to a check or control treatment.

crop_yield_index(yield, check_yield, verbose = TRUE)

Arguments

yield

Numeric vector. Treatment yields (kg/ha).

check_yield

Numeric. Control or check yield (kg/ha).

verbose

Logical. If TRUE, prints informational messages. Default TRUE.

Value

Numeric vector. Yield index where 1.0 equals the check yield. Values above 1 indicate superiority over check.

Details

Formula: $$CYI = \frac{Yield}{Maximum Yield} \times 100$$

Examples

crop_yield_index(yield = c(4500, 4200, 3800), check_yield = 4000)
#> Crop yield index computed.
#> [1] 1.125 1.050 0.950