Created
September 20, 2019 19:52
-
-
Save statgeek/8c307d282b05db501c2019197b29c223 to your computer and use it in GitHub Desktop.
R - Increment dates
This file contains hidden or 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
| # 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