View source: R/helpfunctions.R
get.last.monthday.of.year | R Documentation |
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 = "-")
d |
An exemplar date. |
sep |
Separator to use. |
This is a utility function necessitated by 360-day calendars. Works on PCICt objects.
A string (like "12-30", or "12-31")
library(PCICt) last.mday <- get.last.monthday.of.year(as.PCICt("2011-01-01", cal="360"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.