powered by
Calculates the Water Use Index, returning NA if the water use is zero.
NA
WUI(response, water)
A numeric containing the response divided by the water, unless water is zero in which case NA is returned.
numeric
A numeric giving the value of the response achieved.
A numeric giving the amount of water used.
Chris Brien
data(exampleData) PSA.WUE <- with(longi.dat, WUI(PSA.AGR, WU))
Run the code above in your browser using DataLab