powered by
This is a iso-year-week-day method for the calendar_narrow() generic. It narrows a iso-year-week-day vector to the specified precision.
calendar_narrow()
precision
# S3 method for clock_iso_year_week_day calendar_narrow(x, precision)
x narrowed to the supplied precision.
x
[clock_iso_year_week_day]
A iso-year-week-day vector.
[character(1)]
One of:
"year"
"week"
"day"
"hour"
"minute"
"second"
"millisecond"
"microsecond"
"nanosecond"
# Day precision x <- iso_year_week_day(2019, 1, 5) x # Narrowed to week precision calendar_narrow(x, "week")
Run the code above in your browser using DataLab