Utility function

Share:

Description

A function to create matrix of lagged time series. Called by various functions.

Usage

1
    mkx(x, lags)

Arguments

x

The univariate time series.

lags

The vector of lags.

Details

If lags is c(1,4), say, then the function returns a matrix that consist of columns x(t-1), x(t-4), x(t).

Value

A matrix of lagged abundances. The last column is the current

Author(s)

Upmanu Lall

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.