year-week-day-widen {clock} | R Documentation |
Widen: year-week-day
Description
This is a year-week-day method for the calendar_widen()
generic. It
widens a year-week-day vector to the specified precision
.
Usage
## S3 method for class 'clock_year_week_day'
calendar_widen(x, precision)
Arguments
x |
A year-week-day vector. |
precision |
One of:
|
Value
x
widened to the supplied precision
.
Examples
# Week precision
x <- year_week_day(2019, 1, start = clock_weekdays$monday)
x
# Widen to day precision
# In this calendar, the first day of the week is a Monday
calendar_widen(x, "day")
# Or second precision
sec <- calendar_widen(x, "second")
sec
[Package clock version 0.7.1 Index]