Skip to content

Instantly share code, notes, and snippets.

@bfatemi
Created March 27, 2016 20:16
Show Gist options
  • Save bfatemi/b3856fb378146c52f22b to your computer and use it in GitHub Desktop.
Save bfatemi/b3856fb378146c52f22b to your computer and use it in GitHub Desktop.
Get a vector containing the sequence of days beginning with today, and ending with year end.
today <- Sys.Date()
yearEnd <- as.Date(paste0(year(today), "-12-31"))
daysVec <- seq(today, yearEnd, by=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment