Learn R Programming

onlineforecast (version 0.9.3)

as.data.list: Convert to data.list class

Description

These functions will convert the object into a data.list.

Usage

as.data.list(object)

Arguments

object

The object to be converted into a data.list

Value

a value of class data.list

Details

A data.list is simply a list of vectors and data.frames. For the use in the onlineforecast package the following format must be kept:

- t: A vector of time.

- vectors with same length as t: Holds observations and values synced to time t.

- data.frames with number of rows as time t: Holds forecasts in each column named by kxx where xx is the horizon, e.g. k0 is synced as observations, and k1 is one-step ahead.

See Also

For specific detailed info see the children, e.g. as.data.list.data.frame

Other as.data.list: as.data.list.data.frame()