This is a yearquarterday method for the seq()
generic.
Sequences can only be generated for "year"
and "quarter"
precision
yearquarterday vectors.
When calling seq()
, exactly two of the following must be specified:
to
by
Either length.out
or along.with
# S3 method for clock_year_quarter_day seq(from, to = NULL, by = NULL, length.out = NULL, along.with = NULL, ...)
from 
A


to 
A

by 
The unit to increment the sequence by. If If If If 
length.out 
The length of the resulting sequence. If specified, 
along.with 
A vector who's length determines the length of the resulting sequence. Equivalent to If specified, 
...  These dots are for future extensions and must be empty. 
A sequence with the type of from
.
#> <year_quarter_day<January><quarter>[14]> #> [1] "2020Q1" "2020Q3" "2021Q1" "2021Q3" "2022Q1" "2022Q3" "2023Q1" #> [8] "2023Q3" "2024Q1" "2024Q3" "2025Q1" "2025Q3" "2026Q1" "2026Q3"#> <year_quarter_day<January><day>[14]> #> [1] "2020Q191" "2020Q392" "2021Q190" "2021Q392" "2022Q190" #> [6] "2022Q392" "2023Q190" "2023Q392" "2024Q191" "2024Q392" #> [11] "2025Q190" "2025Q392" "2026Q190" "2026Q392"