Learn R Programming

lmForc (version 1.0.0)

forc2df: Collect a Forecast object to a data frame

Description

forc2df takes one or more objects of the Forecast class and collects them into a data frame. Returns a data frame with all of the information that was stored in the Forecast objects. If multiple forecasts are being collected, all forecasts must have identical future and realized values.

Usage

forc2df(...)

Value

data.frame object that contains forecast information.

Arguments

...

One or multiple forecasts of the class Forecast.

See Also

For a detailed example see the help vignette: vignette("lmForc", package = "lmForc")

Examples

Run this code
if (FALSE) {

forc2df(x1_forecast)

forc2df(x1_forecast, x2_forecast)

}

Run the code above in your browser using DataLab