Skip to content

Instantly share code, notes, and snippets.

@xuanlongma
Last active December 29, 2015 05:39
Show Gist options
  • Save xuanlongma/7623701 to your computer and use it in GitHub Desktop.
Save xuanlongma/7623701 to your computer and use it in GitHub Desktop.
covert day-of-year back to date object
strptime('2008201', format = '%Y%j')
## or
as.Date('2008201', format = '%Y%j')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment