- data$appendHat(time, hat_serie, hat_exo)
- data$append(serie, exo) #in realtime, this call comes hours later
+ exo_hat =
+ if (i < nrow(exo_df))
+ as.data.frame( exo_df[i+1,(1+nb_exos+1):(1+2*nb_exos)] )
+ else
+ NA #exogenous prediction for next day are useless on last day
+ data$append(time, serie, exo, exo_hat)