This is a year-quarter-day method for the calendar_widen()
generic. It
widens a year-quarter-day vector to the specified precision
.
Usage
# S3 method for class 'clock_year_quarter_day'
calendar_widen(x, precision)
Examples
# Quarter precision
x <- year_quarter_day(2019, 1)
x
#> <year_quarter_day<January><quarter>[1]>
#> [1] "2019-Q1"
# Widen to day precision
calendar_widen(x, "day")
#> <year_quarter_day<January><day>[1]>
#> [1] "2019-Q1-01"
# Or second precision
sec <- calendar_widen(x, "second")
sec
#> <year_quarter_day<January><second>[1]>
#> [1] "2019-Q1-01T00:00:00"