Converts yields from a cropping system to a common crop-equivalent yield based on economic value.
system_productivity_index(yields, prices, base_price, verbose = TRUE)Numeric vector. Yields of individual crops in the system (kg/ha).
Numeric vector. Market prices of individual crops
(currency/kg). Must be the same length as yields.
Numeric. Price of the base or reference crop (currency/kg).
Logical. If TRUE, prints informational messages.
Default TRUE.
Numeric. System productivity expressed as base crop equivalent yield (kg/ha).
$$SPI = \frac{\sum(Y_i \times P_i)}{P_{base}}$$