Date and POSIXct are the basic types of R and are recommended.
Packages such as zoo or xts use these types for indexing. Other packages, such as lubridate , use them to calculate and analyze dates.
So your intuition was correct: use Date and POSIXct .
Dirk eddelbuettel
source share