Created
March 27, 2016 20:16
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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