make_input | R Documentation |
This function creates a data.frame with columns for each horizon such that it can be added to a data.list and used in a forecast model.
make_input(observations, kseq)
observations |
vector of observations. |
kseq |
vector of integers, respresenting the desired "k-steps ahead". |
Returns a forecast matrix (as a data.frame) with simply the observation vector copied to each column.
# Data for example
D <- subset(Dbuilding, c("2010-12-15","2010-12-20"))
# Generate the input
make_input(D$heatload, 1:4)
# Set is in D, such that it can be used in input expressions (e.g. by model$add_inputs(AR = "Ar0")
D$AR0 <- make_input(D$heatload, 1:36)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.