I need to run rolling window function on a xts data which contains about 7,000 rows and 11,000 columns. I did the following:
require(PerformanceAnalytics)
ssd60<-rollapply(wddxts,width=60,FUN=function(x) SemiDeviation(x),by.column=TRUE)
I waited till 12 hours but the computation did not finish. However, when I tried with small dataset as follows:
sample<-wddxts[,1:5]
ssd60<-rollapply(sample,width=60,FUN=function(x) SemiDeviation(x),by.column=TRUE)
the computation was done within 60 seconds. I ran them on computer with Intel i5-2450M CPU, Windows 7 OS and 12 GB RAM.
Can anyone please suggest me if there is any faster way to perform the above computation on a large xts data-set?