iav: Compute the inter-annual variability of a time series

View source: R/FLQuant.R

iavR Documentation

Compute the inter-annual variability of a time series

Description

The inter-annual variability of a time series stored in an FLQuant object, is computed as |x_y - x_{y-1}) / x_{y-1}|. The resulting object will be one year shorter than the input. The first year will be missing as values are assigned to the final year of each pair.

Usage

iav(object)

Value

An object of the same class as object.

Author(s)

The FLR Team

Examples

data(ple4)
# Compute inter-annual variability in catch
iav(catch(ple4))

flr/FLCore documentation built on May 4, 2024, midnight