best time date format for R [duplicate]
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
Date
and POSIXct
are 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 Date
and POSIXct
.
The R News 4/1 Help Desk article is about how to choose the appropriate class.
精彩评论