Learn R Programming

lmForc (version 1.0.0)

forc<-: Set forecast slot of a Forecast object

Description

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

Usage

forc(Forecast) <- value

Value

Forecast object that contains the new forecast vector.

Arguments

Forecast

Forecast object.

value

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

Examples

Run this code
if (FALSE) {

forc(Forecast) <- c(2.45, 2.76, 3.31)

}

Run the code above in your browser using DataLab