Re: [R] How to speed up the simulation when processing time and date

2015-01-15 Thread MacQueen, Don
I don't have time to look at your example in detail, but there are couple of things that caught my eye. Use as.POSIXct() instead of as.POSIXlt() I don't see anything that requires POSIXlt, and POSIXct is simpler. If everything in Total_Zone1 is numeric, then leave it as a matrix, do not convert

[R] How to speed up the simulation when processing time and date

2015-01-15 Thread Faranak Golestaneh
Dear Friends, I am trying to program a forecasting method in R. The predictors are weather variables in addition to lag measured Power values. The accuracy of data is one minute and their corresponding time and date are available. To add lag values of power to the predictors list, I am aiming to