iav | R Documentation |
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)
x |
a vector holding a time series |
a vector
with the inter-annual variation each time step
## Not run:
x=rnorm(2)
iav(x)
## inter-annual average variation
mean(iav(x),na.rm=T)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.