开发者

best time date format for R [duplicate]

This question already has answers here: Closed 12 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜