Learn R Programming

kobe (version 1.3.2)

iav: iav

Description

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.

Usage

iav(x)

Arguments

x
a vector holding a time series

Value

a vector with the inter-annual variation each time step

Examples

Run this code
## Not run: 
#    x=rnorm(2)
#    iav(x)
#    ## inter-annual average variation
#    mean(iav(x),na.rm=T)## End(Not run)

Run the code above in your browser using DataLab