A cyclical time representation for days within a week using the ISO 8601 standard where weeks start on Monday.
Usage
day_of_week(.data, tz = NULL, discrete = TRUE)
week_of_year(.data, tz = NULL, discrete = TRUE)Arguments
- .data
A vector to be coerced into day of week. This can be a date, date-time, or numeric vector.
- tz
Timezone, defaults to "UTC".
- discrete
If
TRUE, the number of chronons since Unix epoch that.datafalls into is returned as an integer. IfFALSE, a fractional number of chronons is returned (analagous to time using a continuous time model).
See also
yearweek() for ISO 8601 year-week representation,
cyclical_time() for creating custom cyclical time representations