powered by
Ddiff(dte1, dte2, dating=Daily)
# Obtain how many days until the next new year day. dt1 <- Sys.Date() dt2 <- Dsucc(dt1, Yearly, 1) Ddiff(dt1, dt2, Daily)
Run the code above in your browser using DataLab