Learn R Programming

lmForc (version 1.0.0)

origin<-,Forecast-method: Set origin slot of a Forecast object

Description

origin takes a Forecast object and sets the origin vector of the forecast.

Usage

# S4 method for Forecast
origin(Forecast) <- value

Value

Forecast object that contains the new origin vector.

Arguments

Forecast

Forecast object.

value

Vector of values assigned to the origin slot of the Forecast.

Examples

Run this code
if (FALSE) {

origin(Forecast) <- c("2015-01-01", "2015-01-02", "2015-01-03")

}

Run the code above in your browser using DataLab