calendar_eow | R Documentation |
Returns the last day of the week from a Date given a choice of week days.
calendar_eow(date, day = 7, ...)
date |
a Date vector |
day |
a value between 1 (Monday) and 7 (Sunday). |
... |
not used |
Given a Date (such as 2019-01-02) and a day of 7, will return the Date for the Sunday at or immediately after that. The week starting day is Monday (1). A simple use case is when one wants to aggregate daily data to a regular weekly sequence.
Date object
Alexios Galanos
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.