I am currently developing a model to forecasts some data.
I am using the following process to output data from the process but I do not want to create excessive amounts of new data frames.
for (i in 1:10) {
print(i)
assign(paste("run", i, sep = ""), d.frame)
d.frame <- data.frame(seq(from = 0 + i, to = 2015 + i, by = 1))
}
I would like to export the data to 1 dataframe/table, but with multiple columns
Thanks in advance for any pointers
Edited to add.
I am training a model with 1 week + 1 Day of data (2016 + 288 data points) I am forecasting the results for the next so the next 288 points in the time series.
I am retraining the model for each time step so loop 1 uses data points 1 to 2016 and outputs 3 time steps forward loop 2 uses data points 2 to 2017 and outputs 3 time steps forward .. .. I would like to export the Model Paramaters for each loop into a dataframe
Loop, Alpha, Beta, Gamma
1 0.04 0 0.50
2 0.1 0 0.45
3
4
My second issue the same as above, to export the data from the time series forecasts
Forecast step H1 H2 H3
1 72 87 88
2 84 90 95
3 88 84 76