year-day-group | R Documentation |
This is a year-day method for the calendar_group()
generic.
Grouping for a year-day object can be done at any precision, as
long as x
is at least as precise as precision
.
## S3 method for class 'clock_year_day'
calendar_group(x, precision, ..., n = 1L)
x |
A year-day vector. |
precision |
One of:
|
... |
These dots are for future extensions and must be empty. |
n |
A single positive integer specifying a multiple of |
x
grouped at the specified precision
.
x <- seq(as_naive_time(year_month_day(2019, 1, 1)), by = 5, length.out = 20)
x <- as_year_day(x)
x
# Group by day of the current year
calendar_group(x, "day", n = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.