It looks like you need to handle irregularly spaced time series, so ts is not an option. Use one of the other time series libraries. The zoo is the most widely used, but some other options are timeSeries, xts, fts and it. Take a look at the CRAN view: http://cran.r-project.org/web/views/TimeSeries.html .
One call that I am seeing right now is the date format. I suggest either reformatting the date first in your data, or using the format () function in R, but you will need to convert them to a Date or POSIX object in R to use it with the time series package.
You can use the read.zoo () function to read the time series in your file. Also look at the vignette. For EWMA, I think there are several options. Rmetrics and TTR have versions.
I will send an example when I get to the computer. By the way, there are many resources on this subject. Take a look at this book: http://www.rmetrics.org/ebooks/TimeSeriesFAQ.pdf .
source share