Possible Duplicate:
Which R time/date class and package to use?
Hello,
I want to use a time date format for R, but there are so many packages that have their own format that I am a bit lost.
I was thinking of using the POSIXct/POSIXlt format. Is it the best (flexible enough for all use)
Thanks
fRed
DateandPOSIXctare both Base R types and highly recommended.Packages such as zoo or xts use these types for indexing. Other packages like lubridate use them for date computation and parsing.
So your intuition was right: use
DateandPOSIXct.