[R-sig-finance] Date calculations

David Kane dave at kanecap.com
Wed Mar 22 13:09:55 CET 2006


> I'm a rank beginner in R and R-metrics, but experienced in matlab and
> other languages. I'm strugling with date arithmetics in R. I'm doing
> statistical analysis on financial time series, using its, which uses
> POSIXct objects to measure time. What is the best way to perform simple
> date arithmetic with these objects? I do not care about h/m/s, nor do I
> care about daylight saving time. Example of a problem I faced:

Perhaps date() is what you want. That's what we use for financial
applications in which h/m/s does not matter.

Dave Kane



More information about the R-sig-finance mailing list