Skip to content

Instantly share code, notes, and snippets.

@statgeek
Created September 20, 2019 19:52
Show Gist options
  • Select an option

  • Save statgeek/8c307d282b05db501c2019197b29c223 to your computer and use it in GitHub Desktop.

Select an option

Save statgeek/8c307d282b05db501c2019197b29c223 to your computer and use it in GitHub Desktop.
R - Increment dates
# 2019-09-20
library(lubridate)
term_start = as.Date("2012-01-01", "%Y-%m-%d")
term_end = term_start + years(5) - days(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment