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