Thursday, July 11, 2013

Let's Make a Date: Date and Time classes in R


5 comments:

  1. Hi Slawa -- this is great. Am just about to get into some survey data where I am going to need to be tidy with my dates so this should be really useful. Thanks for posting! N

    ps - Am viewing this on a Chrome browser and the last 3 lines seem to get cut-off (appeared fine when I opened in IE). Would have missed the Steven Colbert link!

    ReplyDelete
    Replies
    1. Thanks! Glad it's useful :) I'm still getting used to making the knitr seamless with blogger, and it's been a challenge. Does it look better now? Are you on a mac or PC?

      Delete
  2. Well I think lubridate package could help a lot here http://cran.r-project.org/web/packages/lubridate/index.html

    ReplyDelete
    Replies
    1. Yeah there are lots of packages for dates and lubridate has a lot of capabilities but it seemed to me more useful for when you already have date objects. The functions and packages I used here are great for raw data that are not yet in any date format.

      Delete