These functions will convert the object into a data.list.
as.data.list(object)
The object to be converted into a data.list
a value of class data.list
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.
For specific detailed info see the children, e.g. as.data.list.data.frame
Other as.data.list:
as.data.list.data.frame()