yearquarter()
is a constructor for <grates_yearquarter>
objects.
Arguments
- year
[integer]
Vector representing the year associated with quarter
.
double
vectors will be converted via as.integer(floor(x))
.
- quarter
[integer]
Vector representing the quarter associated with `year.
double
vectors will be converted via as.integer(floor(x))
.
Value
A <grates_yearquarter>
object.
Details
<grates_yearquarter>
objects are stored as the number of quarters (starting
at 0) since the Unix Epoch (1970-01-01).
Examples
yearquarter(year = 2000L, quarter = 3L)
#> <grates_yearquarter[1]>
#> [1] "2000-Q3"