powered by
Get the last month and day of the year as a character sting, separated by the specified separator.
get.last.monthday.of.year(d, sep = "-")
An exemplar date.
Separator to use.
A string (like "12-30", or "12-31")
This is a utility function necessitated by 360-day calendars. Works on PCICt objects.
# NOT RUN { library(PCICt) last.mday <- get.last.monthday.of.year(as.PCICt("2011-01-01", cal="360")) # }
Run the code above in your browser using DataLab