This is a year-quarter-day method for the calendar_narrow()
generic. It
narrows a year-quarter-day vector to the specified precision
.
Usage
# S3 method for class 'clock_year_quarter_day'
calendar_narrow(x, precision)
Examples
# Day precision
x <- year_quarter_day(2019, 1, 5)
x
#> <year_quarter_day<January><day>[1]>
#> [1] "2019-Q1-05"
# Narrow to quarter precision
calendar_narrow(x, "quarter")
#> <year_quarter_day<January><quarter>[1]>
#> [1] "2019-Q1"