iso-year-week-day-group {clock} | R Documentation |
Grouping: iso-year-week-day
Description
This is a iso-year-week-day method for the calendar_group()
generic.
Grouping for a iso-year-week-day object can be done at any precision, as
long as x
is at least as precise as precision
.
Usage
## S3 method for class 'clock_iso_year_week_day'
calendar_group(x, precision, ..., n = 1L)
Arguments
x |
A iso-year-week-day vector. |
precision |
One of:
|
... |
These dots are for future extensions and must be empty. |
n |
A single positive integer specifying a multiple of |
Value
x
grouped at the specified precision
.
Examples
x <- iso_year_week_day(2019, 1:52)
# Group by 3 ISO weeks
calendar_group(x, "week", n = 3)
y <- iso_year_week_day(2000:2020, 1, 1)
# Group by 2 ISO years
calendar_group(y, "year", n = 2)
[Package clock version 0.7.1 Index]