Imagine you have one date and want the first or last day of this date's
For example, you have the date 2018-02-01 and want the last day of its month.
You have to check whether or not its year is a leap year, and this sounds a
getdate helps with returning specific dates according to a reference
than can be another date, a month or an year.
getdate(expr, ref, cal = bizdays.options$get("default.calendar"))
a character string specifying the date to be returned (see Details)
a reference which represents a month or year, where the date has to be found.
the calendar's name
getdate("10th wed", 2018, "Brazil/ANBIMA") getdate("last bizday", 2010:2018, "Brazil/ANBIMA") dts <- seq(as.Date("2018-01-01"), as.Date("2018-12-01"), "month") getdate("first bizday", format(dts, "%Y-%m"), "Brazil/ANBIMA")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.