Skip to content

Instantly share code, notes, and snippets.

@nassimhaddad
Created October 15, 2014 11:40
Show Gist options
  • Save nassimhaddad/af8d0072d24ba18b7ae4 to your computer and use it in GitHub Desktop.
Save nassimhaddad/af8d0072d24ba18b7ae4 to your computer and use it in GitHub Desktop.
frequently used translation of a date to a yearweek
yearweek <- format(as.Date("2010-09-01"), format = "%G%V")
@rebordao
Copy link

Nice. I was searching for something like this. Thanks for sharing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment