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