Description Usage Arguments Value Examples
Return the date of the last day of the period (week, month, quarter, year). Weekly dates are indexed to Friday.
1 | end_of_period(dates, period = c("month", "week", "quarter", "year"), shift = 0)
|
dates |
Date values formatted as.Date() |
period |
One of ''month'‘, '’week'‘, '’quarter'‘, '’year''. |
shift |
Integer, shift date forward (positive values) or backwards (negative values) by the number of periods. |
Last day of period in as.Date() format
1 | end_of_period(as.Date("2019-09-15")) ## 2019-09-30
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.