Skip to contents

Lagging is done by supplying the parent forecast cycles. This function will then work out which cycles belong to the parent and return the lagged forecast with members from the child cycles appended to those of the parent cycle.

Usage

lag_forecast(.fcst, fcst_model, parent_cycles, direction = 1)

Arguments

.fcst

A harp_fcst object.

fcst_model

The name of the forecast model in the harp_fcst object to be lagged. Must be quoted.

parent_cycles

A numeric vector of forecast cycles that form the parents for the lagging. Members between parent cycles are the child cycles.

dierction

The direction to do the lagging in. 1 (the default) lags backwards in time from the parent cycles and -1 lags forwards in time.

Value

A harp_fcst object with fcst_model now containing the lagged forecast.