Calculates the inter-annual variation in a time series, i.e. (x[t+1]-x[t])/x[t] Used to show how variable a quantity like yield is under different management strategies within a Management Strategy Evaluation.

iav(x)

Arguments

x

a vector holding a time series

Value

a vector with the inter-annual variation each time step

Examples

# NOT RUN {
   x=rnorm(2)
   iav(x)
   ## inter-annual average variation
   mean(iav(x),na.rm=T)
# }