iav: iav

Description Usage Arguments Value Examples

View source: R/kobe-funcs.R

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

1
iav(x)

Arguments

x

a vector holding a time series

Value

a vector with the inter-annual variation each time step

Examples

1
2
3
4
5
6
## Not run: 
   x=rnorm(2)
   iav(x)
   ## inter-annual average variation
   mean(iav(x),na.rm=T)
## End(Not run)

kobe documentation built on May 30, 2017, 12:15 a.m.